-
Task
-
Resolution: Done
-
Major
-
None
-
None
Scenarios to test:
- Billable usage gets sent to a marketplace using one set of credentials that fails with a 403. Then tries with the next set of credentials and gets a successful response
Requires update to vault secret (EE config only has one set of mock credentials currently, we need 2+):
The "wrong" mock credential should appear first in the config, so that it will be attempted first (the azure producer tries each credential in order of definition).
These credentials are used to retrieve access tokens, wiremock definitions will need to be updated to respond with different access tokens for each credential.
Additionally, Azure metering Wiremock definitions will need to be updated to respond with 403 when the new access token for the "wrong" mock credential is attempted.
References:
SWatch-3043 Component Test General Info Doc
Done
- A component test is written in IQE where the first credential fails, and then the second credential succeeds (on the retry)
- Include the explanation of why this test is necessary in the comment/description of the test. Since swatch doesn't have a way of knowing whether to use a US or Europe marketplace credentials, the application tries one then the other. This isn't meant to be a "bad credentials" test.
- is blocked by
-
SWATCH-3227 Create OAuth Endpoints in Wiremock for Azure IQE testing
-
- Closed
-
- is cloned by
-
SWATCH-3227 Create OAuth Endpoints in Wiremock for Azure IQE testing
-
- Closed
-