github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/integration/helpers/feature_flags.go (about) 1 package helpers 2 3 import ( 4 . "github.com/onsi/gomega" 5 . "github.com/onsi/gomega/gexec" 6 ) 7 8 // EnableFeatureFlag enables given feature flag with 'cf enable-feature-flag'. 9 func EnableFeatureFlag(flagName string) { 10 Eventually(CF("enable-feature-flag", flagName)).Should(Exit(0)) 11 } 12 13 // DisableFeatureFlag disables given feature flag with 'cf disable-feature-flag'. 14 func DisableFeatureFlag(flagName string) { 15 Eventually(CF("disable-feature-flag", flagName)).Should(Exit(0)) 16 }