Fix completing suite config

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-09-04 12:23:43 +01:00
parent a04d9a3689
commit 35dc8692b4

View File

@ -91,9 +91,14 @@ func (s *Suite) complete(f *framework.Framework) {
func (s *Suite) Define() {
Describe("with issuer type "+s.Name, func() {
f := framework.NewDefaultFramework("certificates")
if !s.completed {
s.complete(f)
}
// wrap this in a BeforeEach else flags will not have been parsed at
// the time that the `complete` function is called.
BeforeEach(func() {
if !s.completed {
s.complete(f)
}
})
By("Running test suite with the following unsupported features: " + s.UnsupportedFeatures.String())
ctx := context.Background()