Skip to content

Commit

Permalink
update comment, only skip on missing resource if provider is not gce
Browse files Browse the repository at this point in the history
  • Loading branch information
j3ffml committed Sep 14, 2016
1 parent 915e735 commit 1631c6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/e2e/petset.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,13 @@ var _ = framework.KubeDescribe("PetSet [Slow] [Feature:PetSet]", func() {
var c *client.Client

BeforeEach(func() {
// PetSet is in alpha, so it's disabled on all platforms except GCE.
// PetSet is in alpha, so it's disabled on some platforms. We skip this
// test if a resource get fails on non-GCE platforms.
// In theory, tests that restart pets should pass on any platform with a
// dynamic volume provisioner.
framework.SkipIfMissingResource(f.ClientPool, unversioned.GroupVersionResource{Group: apps.GroupName, Version: "v1alpha1", Resource: "petsets"}, f.Namespace.Name)
if !framework.ProviderIs("gce") {
framework.SkipIfMissingResource(f.ClientPool, unversioned.GroupVersionResource{Group: apps.GroupName, Version: "v1alpha1", Resource: "petsets"}, f.Namespace.Name)
}

c = f.Client
ns = f.Namespace.Name
Expand Down

0 comments on commit 1631c6d

Please sign in to comment.