Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the ability to diable CSTG key #559

Merged
merged 3 commits into from
May 21, 2024

Conversation

cody-constine-ttd
Copy link
Contributor

No description provided.

@@ -3094,6 +3093,55 @@ void cstgLogsInvalidAppName(String appName, Vertx vertx, VertxTestContext testCo
});
}

@Test
void catalogsDisabledAsUnauthorized(Vertx vertx, VertxTestContext testContext) throws NoSuchAlgorithmException, InvalidKeyException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be prefixed with "cstg" to make the tests easier to search and group?

@@ -38,7 +38,8 @@ public enum ResponseStatus {
PayloadHasNoBody,
/* End of CSTG-related Status */
Unknown,
NoActiveKey
NoActiveKey,
UNAUTHORIZED
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The others are PascalCase

respJson -> {
assertEquals("Unauthorized", respJson.getString("message"));
testContext.completeNow();
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can also assertTokenStatusMetrics here

@cody-constine-ttd cody-constine-ttd merged commit c1f2651 into main May 21, 2024
6 checks passed
@cody-constine-ttd cody-constine-ttd deleted the cbc-UID2-2987-ensure-disabling-cstg-works branch May 21, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants