Skip to content

Commit

Permalink
Fix CatsConfig and config
Browse files Browse the repository at this point in the history
Due to [changes in cf-test-helpers](cloudfoundry/cf-test-helpers#92),
we need to update our interface and interface implementation to include
some new methods.

As no one's asking for multiple origin support in CATs, I didn't
actually make it available via the integration_config. That's a trivial
change if we want to add it in the future.
  • Loading branch information
ctlong committed Mar 28, 2023
1 parent 3cbd3d9 commit eeadb78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type CatsConfig interface {
GetAddExistingUserToExistingSpace() bool
GetAdminPassword() string
GetAdminUser() string
GetAdminOrigin() string
GetAdminClient() string
GetAdminClientSecret() string
GetApiEndpoint() string
Expand All @@ -58,6 +59,7 @@ type CatsConfig interface {
GetUseExistingSpace() bool
GetExistingUser() string
GetExistingUserPassword() string
GetUserOrigin() string
GetExistingClient() string
GetExistingClientSecret() string
GetGoBuildpackName() string
Expand Down
8 changes: 8 additions & 0 deletions helpers/config/config_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,10 @@ func (c *config) GetExistingUserPassword() string {
return *c.ExistingUserPassword
}

func (c *config) GetUserOrigin() string {
return ""
}

func (c *config) GetConfigurableTestPassword() string {
return *c.ConfigurableTestPassword
}
Expand All @@ -873,6 +877,10 @@ func (c *config) GetAdminPassword() string {
return *c.AdminPassword
}

func (c *config) GetAdminOrigin() string {
return ""
}

func (c *config) GetApiEndpoint() string {
return *c.ApiEndpoint
}
Expand Down

0 comments on commit eeadb78

Please sign in to comment.