Generalise the registration method to DRY stuff up
This commit is contained in:
parent
b1bd17f316
commit
c58ce6f60c
2 changed files with 41 additions and 36 deletions
|
@ -32,6 +32,8 @@ func (s *Suite) TestRegisterMachine(c *check.C) {
|
|||
machineAfterRegistering, err := app.RegisterMachine(
|
||||
machine.MachineKey,
|
||||
namespace.Name,
|
||||
RegisterMethodCLI,
|
||||
nil, nil, nil, nil,
|
||||
)
|
||||
c.Assert(err, check.IsNil)
|
||||
c.Assert(machineAfterRegistering.Registered, check.Equals, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue