changes from pair programming sesh
Signed-off-by: Arsh Sharma <arshsharma461@gmail.com>
This commit is contained in:
parent
58410f5deb
commit
89bf0022d6
@ -129,7 +129,6 @@ func runACMEIssuerTests(eab *cmacme.ACMEExternalAccountBinding) {
|
||||
CreateIssuerFunc: provisionerPACMEHTTP01.createPublicACMEServerStagingHTTP01Issuer,
|
||||
DeleteIssuerFunc: provisionerPACMEHTTP01.delete,
|
||||
UnsupportedFeatures: unsupportedHTTP01Features.Copy().Add(unsupportedPublicACMEServerFeatures.List()...),
|
||||
Skip: true,
|
||||
}).Define()
|
||||
}
|
||||
|
||||
|
||||
@ -68,9 +68,6 @@ type Suite struct {
|
||||
|
||||
// completed is used internally to track whether Complete() has been called
|
||||
completed bool
|
||||
|
||||
// Skip if set to true allows skipping the suite. Default value is false.
|
||||
Skip bool
|
||||
}
|
||||
|
||||
// complete will validate configuration and set default values.
|
||||
@ -96,10 +93,6 @@ func (s *Suite) complete(f *framework.Framework) {
|
||||
|
||||
// it is called by the tests to in Define() to setup and run the test
|
||||
func (s *Suite) it(f *framework.Framework, name string, fn func(cmmeta.ObjectReference), requiredFeatures ...featureset.Feature) {
|
||||
if s.Skip {
|
||||
fmt.Fprintln(GinkgoWriter, "skipping cause suite.Skip was set to true")
|
||||
return
|
||||
}
|
||||
if !s.checkFeatures(requiredFeatures...) {
|
||||
fmt.Fprintln(GinkgoWriter, "skipping case due to unsupported features")
|
||||
return
|
||||
|
||||
@ -18,6 +18,7 @@ package certificates
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
@ -52,10 +53,15 @@ func (s *Suite) Define() {
|
||||
// Wrap this in a BeforeEach else flags will not have been parsed and
|
||||
// f.Config will not be populated at the time that this code is run.
|
||||
BeforeEach(func() {
|
||||
// Special case Public ACME Servers against being run in the standard
|
||||
// e2e tests.
|
||||
if strings.Contains(s.Name, "Public ACME Server") && strings.Contains(f.Config.Addons.ACMEServer.URL, "pebble") {
|
||||
Skip("Not running public ACME tests against local cluster.")
|
||||
return
|
||||
}
|
||||
if s.completed {
|
||||
return
|
||||
}
|
||||
|
||||
s.complete(f)
|
||||
|
||||
if s.UseIngressIPAddress {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user