Move --install-addons toggle to tests that do not use addons
parent
4ba0f52f57
commit
caf4c62943
|
@ -37,7 +37,7 @@ func TestDockerFlags(t *testing.T) {
|
||||||
defer CleanupWithLogs(t, profile, cancel)
|
defer CleanupWithLogs(t, profile, cancel)
|
||||||
|
|
||||||
// Use the most verbose logging for the simplest test. If it fails, something is very wrong.
|
// Use the most verbose logging for the simplest test. If it fails, something is very wrong.
|
||||||
args := append([]string{"start", "-p", profile, "--cache-images=false", "--wait=false", "--docker-env=FOO=BAR", "--docker-env=BAZ=BAT", "--docker-opt=debug", "--docker-opt=icc=true", "--alsologtostderr", "-v=5"}, StartArgs()...)
|
args := append([]string{"start", "-p", profile, "--cache-images=false", "--install-addons=false", "--wait=false", "--docker-env=FOO=BAR", "--docker-env=BAZ=BAT", "--docker-opt=debug", "--docker-opt=icc=true", "--alsologtostderr", "-v=5"}, StartArgs()...)
|
||||||
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
|
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("%s failed: %v", rr.Args, err)
|
t.Errorf("%s failed: %v", rr.Args, err)
|
||||||
|
|
|
@ -33,7 +33,7 @@ func TestGuestEnvironment(t *testing.T) {
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute)
|
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute)
|
||||||
defer CleanupWithLogs(t, profile, cancel)
|
defer CleanupWithLogs(t, profile, cancel)
|
||||||
|
|
||||||
args := append([]string{"start", "-p", profile, "--wait=false"}, StartArgs()...)
|
args := append([]string{"start", "-p", profile, "--install-addons=false", "--wait=false"}, StartArgs()...)
|
||||||
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
|
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("%s failed: %v", rr.Args, err)
|
t.Errorf("%s failed: %v", rr.Args, err)
|
||||||
|
|
|
@ -53,7 +53,6 @@ func TestStartStop(t *testing.T) {
|
||||||
"--disable-driver-mounts",
|
"--disable-driver-mounts",
|
||||||
"--keep-context=false",
|
"--keep-context=false",
|
||||||
"--container-runtime=docker",
|
"--container-runtime=docker",
|
||||||
"--install-addons=false",
|
|
||||||
}},
|
}},
|
||||||
{"newest-cni", constants.NewestKubernetesVersion, []string{
|
{"newest-cni", constants.NewestKubernetesVersion, []string{
|
||||||
"--feature-gates",
|
"--feature-gates",
|
||||||
|
|
Loading…
Reference in New Issue