run simple test for cloud shell

pull/12237/head
Sharif Elgamal 2021-08-12 14:40:42 -07:00
parent 72c5ee1e32
commit cf10ce5663
1 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,7 @@ import (
"github.com/google/go-cmp/cmp"
"k8s.io/minikube/pkg/minikube/bootstrapper/images"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/detect"
)
// TestStartStop tests starting, stopping and restarting a minikube clusters with various Kubernetes versions and configurations
@ -76,6 +77,16 @@ func TestStartStop(t *testing.T) {
}},
}
if detect.IsCloudShell() {
tests = []struct {
name string
version string
args []string
}{
{"cloud-shell", constants.DefaultKubernetesVersion, []string{}},
}
}
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {