Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CRDPostUpgradeTest ¶ added in v0.27.0
func CRDPostUpgradeTest() pkgupgrade.Operation
func ContinualTest ¶
func ContinualTest() pkgupgrade.BackgroundOperation
ContinualTest will perform a continual validation of Eventing SUT.
func RunMainTest ¶ added in v0.21.0
RunMainTest expects flags to be already initialized. This function needs to be exposed, so that test cases in other repositories can call the upgrade main tests in eventing.
Types ¶
type DurableFeature ¶ added in v0.43.0
type DurableFeature struct { SetupF *feature.Feature // EnvOpts should never include environment.Managed or environment.Cleanup as these functions // break the functionality. EnvOpts []environment.EnvOpts VerifyF func() *feature.Feature Global environment.GlobalEnvironment // contains filtered or unexported fields }
DurableFeature holds the setup and verify phase of a feature. The "setup" phase should set up the feature. The "verify" phase should only verify its function. This function should be idempotent. Calling this function multiple times should still properly verify the feature (e.g. one call after upgrade, one call after downgrade).
func BrokerEventTransformationForTrigger ¶ added in v0.43.0
func BrokerEventTransformationForTrigger(glob environment.GlobalEnvironment, ) *DurableFeature
func InMemoryChannelFeature ¶ added in v0.43.0
func InMemoryChannelFeature(glob environment.GlobalEnvironment) *DurableFeature
func (*DurableFeature) Setup ¶ added in v0.43.0
func (fe *DurableFeature) Setup(label string) pkgupgrade.Operation
func (*DurableFeature) SetupVerifyAndTeardown ¶ added in v0.43.0
func (fe *DurableFeature) SetupVerifyAndTeardown(label string) pkgupgrade.Operation
func (*DurableFeature) Verify ¶ added in v0.43.0
func (fe *DurableFeature) Verify(label string) pkgupgrade.Operation
func (*DurableFeature) VerifyAndTeardown ¶ added in v0.43.0
func (fe *DurableFeature) VerifyAndTeardown(label string) pkgupgrade.Operation
type FeatureGroupWithUpgradeTests ¶ added in v0.43.0
type FeatureGroupWithUpgradeTests []FeatureWithUpgradeTests
FeatureGroupWithUpgradeTests aggregates tests across a group of features.
func (FeatureGroupWithUpgradeTests) PostDowngradeTests ¶ added in v0.43.0
func (fg FeatureGroupWithUpgradeTests) PostDowngradeTests() []pkgupgrade.Operation
func (FeatureGroupWithUpgradeTests) PostUpgradeTests ¶ added in v0.43.0
func (fg FeatureGroupWithUpgradeTests) PostUpgradeTests() []pkgupgrade.Operation
func (FeatureGroupWithUpgradeTests) PreUpgradeTests ¶ added in v0.43.0
func (fg FeatureGroupWithUpgradeTests) PreUpgradeTests() []pkgupgrade.Operation
type FeatureWithUpgradeTests ¶ added in v0.43.0
type FeatureWithUpgradeTests interface { PreUpgradeTests() []pkgupgrade.Operation PostUpgradeTests() []pkgupgrade.Operation PostDowngradeTests() []pkgupgrade.Operation }
func NewFeatureOnlyDowngrade ¶ added in v0.43.0
func NewFeatureOnlyDowngrade(f *DurableFeature) FeatureWithUpgradeTests
NewFeatureOnlyDowngrade decorates a feature with these actions: Pre-upgrade: no-op. Post-upgrade: Setup, Verify. Post-downgrade: Verify, Teardown.
func NewFeatureOnlyUpgrade ¶ added in v0.43.0
func NewFeatureOnlyUpgrade(f *DurableFeature) FeatureWithUpgradeTests
NewFeatureOnlyUpgrade decorates a feature with these actions: Pre-upgrade: Setup, Verify Post-upgrade: Verify, Teardown Post-downgrade: no-op.
func NewFeatureSmoke ¶ added in v0.43.0
func NewFeatureSmoke(f *DurableFeature) FeatureWithUpgradeTests
NewFeatureSmoke decorates a feature with these actions: Pre-upgrade: no-op. Post-upgrade: Setup, Verify, Teardown. Post-downgrade: Setup, Verify, Teardown.
func NewFeatureUpgradeDowngrade ¶ added in v0.43.0
func NewFeatureUpgradeDowngrade(f *DurableFeature) FeatureWithUpgradeTests
NewFeatureUpgradeDowngrade decorates a feature with these actions: Pre-upgrade: Setup, Verify. Post-upgrade: Verify. Post-downgrade: Verify, Teardown.