From 611aa4bc71f92b2bceb4b2a5a3296fe9ef5c73d6 Mon Sep 17 00:00:00 2001 From: Ralf Pannemans Date: Tue, 25 Aug 2026 07:56:11 +0200 Subject: [PATCH 1/2] Read origin from config --- README.md | 5 +++++ helpers/config/config_struct.go | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af261501a..d6b5fe583 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,11 @@ When a test fails, look for the test group name (`[services]` in the example bel If you set a value for `artifacts_directory` in your `$CONFIG` file, then you will be able to capture `cf` trace output from failed test runs, this output may be useful in cases where the normal test output is not enough to debug an issue. The `cf` trace output for the tests in these specs will be found in `CF-TRACE-Applications-*.txt` in the `artifacts_directory`. +**NOTE:** +If the default identity provider for your deployment is not UAA, it is +recommended that you set the `origin` configuration property to UAA, and ensure +the user credentials that you provide are registered with UAA. + ## Test Execution To execute tests according to your configuration, run the [bin/test](./bin/test) script with `$CONFIG` set to your diff --git a/helpers/config/config_struct.go b/helpers/config/config_struct.go index 403f22094..aaf3dd6e1 100644 --- a/helpers/config/config_struct.go +++ b/helpers/config/config_struct.go @@ -29,6 +29,7 @@ type config struct { ExistingUserPassword *string `json:"existing_user_password"` ShouldKeepUser *bool `json:"keep_user_at_suite_end"` UseExistingUser *bool `json:"use_existing_user"` + Origin *string `json:"origin"` UseExistingOrganization *bool `json:"use_existing_organization"` ExistingOrganization *string `json:"existing_organization"` @@ -953,7 +954,7 @@ func (c *config) GetExistingUserPassword() string { } func (c *config) GetUserOrigin() string { - return "" + return *c.Origin } func (c *config) GetConfigurableTestPassword() string { @@ -977,7 +978,7 @@ func (c *config) GetAdminPassword() string { } func (c *config) GetAdminOrigin() string { - return "" + return *c.Origin } func (c *config) GetApiEndpoint() string { From 73ff5d0742b74baa8e832a6ca6b382374574b74a Mon Sep 17 00:00:00 2001 From: Ralf Pannemans Date: Wed, 26 Aug 2026 09:33:13 +0200 Subject: [PATCH 2/2] Update README.md Co-authored-by: Pavel Busko --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d6b5fe583..14c6c93a0 100644 --- a/README.md +++ b/README.md @@ -289,8 +289,8 @@ When a test fails, look for the test group name (`[services]` in the example bel If you set a value for `artifacts_directory` in your `$CONFIG` file, then you will be able to capture `cf` trace output from failed test runs, this output may be useful in cases where the normal test output is not enough to debug an issue. The `cf` trace output for the tests in these specs will be found in `CF-TRACE-Applications-*.txt` in the `artifacts_directory`. **NOTE:** -If the default identity provider for your deployment is not UAA, it is -recommended that you set the `origin` configuration property to UAA, and ensure +If the default identity provider for your deployment is not `uaa`, it is +recommended that you set the `origin` configuration property to `uaa`, and ensure the user credentials that you provide are registered with UAA. ## Test Execution