-
Notifications
You must be signed in to change notification settings - Fork 17
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
Adding the ability to diable CSTG key #559
Conversation
@@ -3094,6 +3093,55 @@ void cstgLogsInvalidAppName(String appName, Vertx vertx, VertxTestContext testCo | |||
}); | |||
} | |||
|
|||
@Test | |||
void catalogsDisabledAsUnauthorized(Vertx vertx, VertxTestContext testContext) throws NoSuchAlgorithmException, InvalidKeyException { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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(); | ||
}); |
There was a problem hiding this comment.
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
No description provided.