mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-25 01:07:52 +00:00
Fix node cli integration test
This commit is contained in:
parent
59aeaa8476
commit
d96b681c83
@ -639,7 +639,7 @@ func (s *IntegrationCLITestSuite) TestNodeCommand() {
|
|||||||
"--name",
|
"--name",
|
||||||
fmt.Sprintf("shared-machine-%d", index+1),
|
fmt.Sprintf("shared-machine-%d", index+1),
|
||||||
"--namespace",
|
"--namespace",
|
||||||
namespace.Name,
|
sharedNamespace.Name,
|
||||||
"--key",
|
"--key",
|
||||||
machineKey,
|
machineKey,
|
||||||
"--output",
|
"--output",
|
||||||
@ -720,7 +720,6 @@ func (s *IntegrationCLITestSuite) TestNodeCommand() {
|
|||||||
[]string{},
|
[]string{},
|
||||||
)
|
)
|
||||||
assert.Nil(s.T(), err)
|
assert.Nil(s.T(), err)
|
||||||
fmt.Println("Error: ", err)
|
|
||||||
|
|
||||||
var listOnlySharedMachineNamespace []v1.Machine
|
var listOnlySharedMachineNamespace []v1.Machine
|
||||||
err = json.Unmarshal(
|
err = json.Unmarshal(
|
||||||
@ -729,8 +728,6 @@ func (s *IntegrationCLITestSuite) TestNodeCommand() {
|
|||||||
)
|
)
|
||||||
assert.Nil(s.T(), err)
|
assert.Nil(s.T(), err)
|
||||||
|
|
||||||
fmt.Println("List: ", listOnlySharedMachineNamespaceResult)
|
|
||||||
fmt.Println("List2: ", listOnlySharedMachineNamespace)
|
|
||||||
assert.Len(s.T(), listOnlySharedMachineNamespace, 2)
|
assert.Len(s.T(), listOnlySharedMachineNamespace, 2)
|
||||||
|
|
||||||
assert.Equal(s.T(), uint64(6), listOnlySharedMachineNamespace[0].Id)
|
assert.Equal(s.T(), uint64(6), listOnlySharedMachineNamespace[0].Id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user