Skip to content

Commit

Permalink
hostname_ignore test
Browse files Browse the repository at this point in the history
  • Loading branch information
ak1ra24 committed Feb 6, 2020
1 parent 4c551b6 commit 1b61a0a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions internal/pkg/shell/shell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,23 @@ func TestNode_CreateNode(t *testing.T) {
},
want: []string{"docker run -td --net none --name T1 --rm --privileged --hostname T1 -v /tmp/ak1ra24:/tinet slankdev/frr"},
},
{
name: "create node with hostname_ignore",
fields: fields{
Name: "T1",
Image: "slankdev/frr",
VolumeBase: "/tmp/ak1ra24",
Interfaces: []Interface{
Interface{
Name: "net0",
Type: "direct",
Args: "T2#net0",
},
},
HostNameIgnore: true,
},
want: []string{"docker run -td --net none --name T1 --rm --privileged -v /tmp/ak1ra24:/tinet slankdev/frr"},
},
{
name: "create node with entrypoint",
fields: fields{
Expand Down

0 comments on commit 1b61a0a

Please sign in to comment.