Revert removal of required feature gate gating e2e-tests
Signed-off-by: Erik Godding Boye <egboye@gmail.com>
This commit is contained in:
parent
7e0ce13005
commit
111768ffb7
@ -51,6 +51,8 @@ var _ = framework.CertManagerDescribe("Certificate AdditionalCertificateOutputFo
|
||||
)
|
||||
|
||||
createCertificate := func(f *framework.Framework, aof []cmapi.CertificateAdditionalOutputFormat) (string, *cmapi.Certificate) {
|
||||
framework.RequireFeatureGate(f, utilfeature.DefaultFeatureGate, feature.AdditionalCertificateOutputFormats)
|
||||
|
||||
crt := &cmapi.Certificate{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
GenerateName: "test-additional-output-formats-",
|
||||
|
||||
@ -24,8 +24,10 @@ import (
|
||||
|
||||
"github.com/cert-manager/cert-manager/e2e-tests/framework"
|
||||
"github.com/cert-manager/cert-manager/e2e-tests/util"
|
||||
"github.com/cert-manager/cert-manager/internal/controller/feature"
|
||||
v1 "github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1"
|
||||
cmmeta "github.com/cert-manager/cert-manager/pkg/apis/meta/v1"
|
||||
utilfeature "github.com/cert-manager/cert-manager/pkg/util/feature"
|
||||
"github.com/cert-manager/cert-manager/test/unit/gen"
|
||||
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
@ -152,6 +154,10 @@ var _ = framework.CertManagerDescribe("CA Certificate", func() {
|
||||
})
|
||||
|
||||
It("should be able to create a certificate with additional output formats", func() {
|
||||
// Output formats is only enabled via this feature gate being enabled.
|
||||
// Don't run test if the gate isn't enabled.
|
||||
framework.RequireFeatureGate(f, utilfeature.DefaultFeatureGate, feature.AdditionalCertificateOutputFormats)
|
||||
|
||||
certClient := f.CertManagerClientSet.CertmanagerV1().Certificates(f.Namespace.Name)
|
||||
|
||||
By("Creating a Certificate")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user