Skip to content

Commit 095322e

Browse files
committed
feature: "disabled integrations" builder for the tests
Adds the required test builder for the "disabled integrations" feature, to make testing easier. SANDBOX-1769
1 parent d25d828 commit 095322e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkg/test/config/toolchainconfig.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,13 @@ func (o RegistrationServiceOption) Verification() RegistrationServiceVerificatio
300300
return c
301301
}
302302

303+
func (o RegistrationServiceOption) DisabledIntegrations(values []toolchainv1alpha1.IntegrationName) RegistrationServiceOption {
304+
o.addFunction(func(config *toolchainv1alpha1.ToolchainConfig) {
305+
config.Spec.Host.RegistrationService.DisabledIntegrations = values
306+
})
307+
return o
308+
}
309+
303310
type RegistrationServiceAnalyticsOption struct {
304311
*ToolchainConfigOptionImpl
305312
parent RegistrationServiceOption

0 commit comments

Comments
 (0)