mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Replace framework.Failf with ExpectNoError
This commit is contained in:
parent
6dbb92de3d
commit
0ebaae88b1
@ -673,10 +673,10 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
|
|||||||
// Modifying the default storage class can be disruptive to other tests that depend on it
|
// Modifying the default storage class can be disruptive to other tests that depend on it
|
||||||
ginkgo.It("should be disabled by changing the default annotation [Serial] [Disruptive]", func() {
|
ginkgo.It("should be disabled by changing the default annotation [Serial] [Disruptive]", func() {
|
||||||
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
||||||
|
|
||||||
scName, scErr := e2epv.GetDefaultStorageClassName(c)
|
scName, scErr := e2epv.GetDefaultStorageClassName(c)
|
||||||
if scErr != nil {
|
framework.ExpectNoError(scErr)
|
||||||
framework.Failf(scErr.Error())
|
|
||||||
}
|
|
||||||
test := testsuites.StorageClassTest{
|
test := testsuites.StorageClassTest{
|
||||||
Name: "default",
|
Name: "default",
|
||||||
ClaimSize: "2Gi",
|
ClaimSize: "2Gi",
|
||||||
@ -710,10 +710,10 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
|
|||||||
// Modifying the default storage class can be disruptive to other tests that depend on it
|
// Modifying the default storage class can be disruptive to other tests that depend on it
|
||||||
ginkgo.It("should be disabled by removing the default annotation [Serial] [Disruptive]", func() {
|
ginkgo.It("should be disabled by removing the default annotation [Serial] [Disruptive]", func() {
|
||||||
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
||||||
|
|
||||||
scName, scErr := e2epv.GetDefaultStorageClassName(c)
|
scName, scErr := e2epv.GetDefaultStorageClassName(c)
|
||||||
if scErr != nil {
|
framework.ExpectNoError(scErr)
|
||||||
framework.Failf(scErr.Error())
|
|
||||||
}
|
|
||||||
test := testsuites.StorageClassTest{
|
test := testsuites.StorageClassTest{
|
||||||
Name: "default",
|
Name: "default",
|
||||||
ClaimSize: "2Gi",
|
ClaimSize: "2Gi",
|
||||||
|
Loading…
Reference in New Issue
Block a user