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
#9748 delete tools only added by tests #10274
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -145,26 +130,14 @@ public void testFileLevelTool1() { | |||
.statusCode(OK.getStatusCode()) | |||
// No tools for this file type. | |||
.body("data", Matchers.hasSize(0)); | |||
|
|||
//Delete the tool added by this test... | |||
Response deleteExternalTool = UtilIT.deleteExternalTool(toolId); |
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.
@sekmiller for the other delete, you follow with an:
deleteExternalTool.then().assertThat()
.statusCode(OK.getStatusCode());
For consistency can you add that here?
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.
sure
This comment has been minimized.
This comment has been minimized.
There's a test failure at https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/job/PR-10274/1/testReport/edu.harvard.iq.dataverse.api/ExternalToolsIT/testFileLevelTool1/ Seems like an easy fix:
|
Weird. It's not failing for me locally. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
📦 Pushed preview images as
🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name. |
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.
Tests are passing. Code looks good. Will merge.
What this PR does / why we need it: Updates ExternalToolsIT so that existing tools are not deleted
Which issue(s) this PR closes:
Closes #9748 Installed External tools deleted by running ExternalToolsIT
Special notes for your reviewer: Going in I thought that deleting the tools was a requirement to get the tests to pass. That turned out not to be the case which made the fix easier. The tests were modified to delete only those tools added via the tests.
Suggestions on how to test this: Install an external tool in your test environment. Run ExternalToolsIT
verify that your pre-installed tool(s) exist after running the test. And that there are no additional tools.
api for getting a list of installed tools:
curl http://localhost:8080/api/admin/externalTools
Does this PR introduce a user interface change? If mockups are available, please link/include them here: no
Is there a release notes update needed for this change?: no
Additional documentation: none