mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Only skip petset test if resource is missing
This commit is contained in:
parent
115855bbd2
commit
915e735d21
@ -59,7 +59,10 @@ const (
|
|||||||
// GCE Quota requirements: 3 pds, one per pet manifest declared above.
|
// GCE Quota requirements: 3 pds, one per pet manifest declared above.
|
||||||
// GCE Api requirements: nodes and master need storage r/w permissions.
|
// GCE Api requirements: nodes and master need storage r/w permissions.
|
||||||
var _ = framework.KubeDescribe("PetSet [Slow] [Feature:PetSet]", func() {
|
var _ = framework.KubeDescribe("PetSet [Slow] [Feature:PetSet]", func() {
|
||||||
f := framework.NewDefaultFramework("petset")
|
options := framework.FrameworkOptions{
|
||||||
|
GroupVersion: &unversioned.GroupVersion{Group: apps.GroupName, Version: "v1alpha1"},
|
||||||
|
}
|
||||||
|
f := framework.NewFramework("petset", options, nil)
|
||||||
var ns string
|
var ns string
|
||||||
var c *client.Client
|
var c *client.Client
|
||||||
|
|
||||||
@ -67,7 +70,7 @@ var _ = framework.KubeDescribe("PetSet [Slow] [Feature:PetSet]", func() {
|
|||||||
// PetSet is in alpha, so it's disabled on all platforms except GCE.
|
// PetSet is in alpha, so it's disabled on all platforms except GCE.
|
||||||
// In theory, tests that restart pets should pass on any platform with a
|
// In theory, tests that restart pets should pass on any platform with a
|
||||||
// dynamic volume provisioner.
|
// dynamic volume provisioner.
|
||||||
framework.SkipUnlessProviderIs("gce")
|
framework.SkipIfMissingResource(f.ClientPool, unversioned.GroupVersionResource{Group: apps.GroupName, Version: "v1alpha1", Resource: "petsets"}, f.Namespace.Name)
|
||||||
|
|
||||||
c = f.Client
|
c = f.Client
|
||||||
ns = f.Namespace.Name
|
ns = f.Namespace.Name
|
||||||
@ -166,10 +169,6 @@ var _ = framework.KubeDescribe("PetSet [Slow] [Feature:PetSet]", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
framework.KubeDescribe("Deploy clustered applications [Slow] [Feature:PetSet]", func() {
|
framework.KubeDescribe("Deploy clustered applications [Slow] [Feature:PetSet]", func() {
|
||||||
BeforeEach(func() {
|
|
||||||
framework.SkipUnlessProviderIs("gce")
|
|
||||||
})
|
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
if CurrentGinkgoTestDescription().Failed {
|
if CurrentGinkgoTestDescription().Failed {
|
||||||
dumpDebugInfo(c, ns)
|
dumpDebugInfo(c, ns)
|
||||||
|
Loading…
Reference in New Issue
Block a user