Skip to content

Commit

Permalink
broker: shim to support migration from v0.82 (missing test update)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraettinger committed Oct 4, 2019
1 parent a05c9d7 commit 40d4a4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion broker/protocol/rpc_extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ func (s *RPCSuite) TestReplicateRequestValidationCases(c *gc.C) {
req.Acknowledge = true
c.Check(req.Validate(), gc.ErrorMatches, `Proposal.Journal: cannot begin with '/' \(/bad/name\)`)
req.Proposal.Journal = "journal"
c.Check(req.Validate(), gc.ErrorMatches, `expected Registers with Proposal`)
// TODO(johnny): Re-enable when Registers are required, post v0.83.
// c.Check(req.Validate(), gc.ErrorMatches, `expected Registers with Proposal`)
req.Registers = &LabelSet{Labels: []Label{{Name: "in valid"}}}
c.Check(req.Validate(), gc.ErrorMatches, `Registers.Labels\[0\].Name: not a valid token \(in valid\)`)
req.Registers.Labels[0].Name = "valid"
Expand Down

0 comments on commit 40d4a4c

Please sign in to comment.