Generalise the registration method to DRY stuff up

This commit is contained in:
Kristoffer Dalby 2022-02-27 18:40:10 +01:00
parent b1bd17f316
commit c58ce6f60c
2 changed files with 41 additions and 36 deletions

View file

@ -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)