Skip to content

Commit 0284ea2

Browse files
committed
Revert to raw Keycloak usernames in feature file
World parameter keys (StorageManagerUsername, DataConsumerUsername) resolve to ctst_-prefixed usernames which lack the instanceIds Keycloak attribute required by the management API. Use the base Keycloak usernames directly. Issue: ZENKO-5202
1 parent 5907d2a commit 0284ea2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/ctst/features/reporting/StorageUsageReporting.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ Feature: Storage Usage Reporting API
1111
Then the http response code is <expectedStatus>
1212

1313
Examples:
14-
| persona | expectedStatus |
15-
| StorageManagerUsername | 200 |
16-
| DataConsumerUsername | 403 |
14+
| persona | expectedStatus |
15+
| storage_manager | 200 |
16+
| data_consumer | 403 |
1717

1818
@2.14.0
1919
@PreMerge
2020
@StorageUsageReporting
2121
Scenario: Storage usage report has a valid structure
22-
Given an identity with the "StorageManagerUsername" keycloak persona
22+
Given an identity with the "storage_manager" keycloak persona
2323
When the user retrieves the storage usage report
2424
Then the storage usage report response has a valid structure
2525

2626
@2.14.0
2727
@PreMerge
2828
@StorageUsageReporting
2929
Scenario: Storage usage report contains multiple accounts
30-
Given an identity with the "StorageManagerUsername" keycloak persona
30+
Given an identity with the "storage_manager" keycloak persona
3131
And 2 additional accounts
3232
When the user retrieves the storage usage report
3333
Then the storage usage report contains the additional accounts
@@ -38,7 +38,7 @@ Feature: Storage Usage Reporting API
3838
@PrepareStorageUsageReportingScenarios
3939
Scenario Outline: Storage usage report returns accurate metrics
4040
Given the environment is set up with bucket created, test data uploaded, and count-items ran
41-
And an identity with the "StorageManagerUsername" keycloak persona
41+
And an identity with the "storage_manager" keycloak persona
4242
When the user retrieves the storage usage report
4343
Then the report contains the test account with location "<locationName>"
4444
And the report shows 3 objects and 600 bytes

0 commit comments

Comments
 (0)