Skip to content

Commit

Permalink
Merge pull request cert-manager#6981 from erikgb/additional-formats-beta
Browse files Browse the repository at this point in the history
Revert removal of required feature gate gating e2e-tests
  • Loading branch information
cert-manager-prow[bot] authored May 2, 2024
2 parents 7e0ce13 + 111768f commit 5ec485d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/suite/certificates/additionaloutputformats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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-",
Expand Down
6 changes: 6 additions & 0 deletions test/e2e/suite/issuers/ca/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 5ec485d

Please sign in to comment.