Add test to ensure addon state is mutable for stopped clusters

pull/5653/head
Thomas Stromberg 2019-10-17 14:48:41 -07:00
parent acec7e5971
commit 3cf2830705
1 changed files with 14 additions and 0 deletions

View File

@ -65,6 +65,20 @@ func TestAddons(t *testing.T) {
})
}
})
// Assert that disable/enable works offline
rr, err = Run(t, exec.CommandContext(ctx, Target(), "stop", "-p", profile))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
rr, err = Run(t, exec.CommandContext(ctx, Target(), "addons", "enable", "dashboard", "-p", profile))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
rr, err = Run(t, exec.CommandContext(ctx, Target(), "addons", "disable", "dashboard", "-p", profile))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
}
func validateIngressAddon(ctx context.Context, t *testing.T, profile string) {