Make "authKey" a constant
This commit is contained in:
parent
35c3fe9608
commit
a8a8f01429
9 changed files with 36 additions and 33 deletions
|
|
@ -100,7 +100,7 @@ func (s *Suite) TestPortNamespace(c *check.C) {
|
|||
Name: "testmachine",
|
||||
NamespaceID: namespace.ID,
|
||||
Registered: true,
|
||||
RegisterMethod: "authKey",
|
||||
RegisterMethod: RegisterMethodAuthKey,
|
||||
IPAddress: ip.String(),
|
||||
AuthKeyID: uint(pak.ID),
|
||||
}
|
||||
|
|
@ -142,7 +142,7 @@ func (s *Suite) TestPortGroup(c *check.C) {
|
|||
Name: "testmachine",
|
||||
NamespaceID: namespace.ID,
|
||||
Registered: true,
|
||||
RegisterMethod: "authKey",
|
||||
RegisterMethod: RegisterMethodAuthKey,
|
||||
IPAddress: ip.String(),
|
||||
AuthKeyID: uint(pak.ID),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue