-
Notifications
You must be signed in to change notification settings - Fork 76
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
secure rest tests for threat intel monitor apis #1212
secure rest tests for threat intel monitor apis #1212
Conversation
003a400
to
30398db
Compare
|
||
static String TEST_IT_BACKEND_ROLE = "IT"; | ||
|
||
static Map<String, String> roleToPermissionsMap = Map.ofEntries( |
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.
Not needed
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.
removed
); | ||
|
||
private RestClient userClient; | ||
private final String user = "userDetector"; |
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.
nit: rename from detectore
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.
done
deleteUser(user); | ||
} | ||
|
||
private final String iocIndexMappings = "\"properties\": {\n" + |
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.
Wondering if there's a better way to go about getting the mappings for an index; I think we're essentially copying the mappings for a couple of tests. Perhaps a helper method that can get the mappings from the json resource files, and extract out just the properties
?
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.
removed this altogether
Signed-off-by: Surya Sashank Nistala <[email protected]>
Signed-off-by: Surya Sashank Nistala <[email protected]>
30398db
to
1bbb0ae
Compare
* secure tests for threat intel monitor apis Signed-off-by: Surya Sashank Nistala <[email protected]> * address review comments Signed-off-by: Surya Sashank Nistala <[email protected]> --------- Signed-off-by: Surya Sashank Nistala <[email protected]> (cherry picked from commit 15b40db) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Adds secure rest tests for threat intel monitor APIs
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.