Removing one last spurious TunnelerDisabled and updating test

Signed-off-by: gberl002 <geoff.berl@netfoundry.io>
This commit is contained in:
gberl002
2022-11-07 14:20:38 -05:00
parent c2fb961048
commit 5d18a8be49
2 changed files with 5 additions and 9 deletions
+5 -6
View File
@@ -34,12 +34,11 @@ const (
type CreateConfigRouterOptions struct {
CreateConfigOptions
RouterName string
WssEnabled bool
IsPrivate bool
TunnelerDisabled bool
TunnelerMode string
LanInterface string
RouterName string
WssEnabled bool
IsPrivate bool
TunnelerMode string
LanInterface string
}
var routerOptions = CreateConfigRouterOptions{}
@@ -75,9 +75,6 @@ func TestTunnelerEnabledByDefault(t *testing.T) {
// Create and run the CLI command without the tunnel flag
config := createRouterConfig([]string{"edge", "--routerName", "myRouter"})
// Expect disabled flag to be false
assert.False(t, data.Router.TunnelerDisabled, "Expected tunneler disabled flag to be false")
// Confirm tunneler is enabled in config output
foundTunnel := false
for i := 0; i < len(config.Listeners); i++ {