mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
Ensure that e2e tests run on gce|gke and are appropriately
skipped for other cloud providers.
This commit is contained in:
@@ -32,7 +32,7 @@ var _ = Describe("MasterCerts", func() {
|
||||
})
|
||||
|
||||
It("should have all expected certs on the master", func() {
|
||||
if testContext.Provider != "gce" && testContext.Provider != "gke" {
|
||||
if !providerIs("gce", "gke") {
|
||||
By(fmt.Sprintf("Skipping MasterCerts test for cloud provider %s (only supported for gce and gke)", testContext.Provider))
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user