Skip to content

Commit

Permalink
Remove readCertAndKey
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Feb 6, 2025
1 parent 478728e commit 282067c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cypress/utils/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,7 @@ Cypress.Commands.add("login", () => {
Cypress.Commands.add("deleteAllIndices", () => {
cy.log("Deleting all indexes");
cy.request("DELETE", `${Cypress.env("openSearchUrl")}/test_index_*,index*,sample*,opensearch_dashboards*`);
cy.task("readCertAndKey").then(({ cert, key }) => {
cy.request({
method: "DELETE",
url: `${Cypress.env("openSearchUrl")}/.opendistro-ism*?expand_wildcards=all`,
headers: {},
agentOptions: {
cert,
key,
},
});
});
cy.request("DELETE", `${Cypress.env("openSearchUrl")}/.opendistro-ism*?expand_wildcards=all`);
});

Cypress.Commands.add("deleteADSystemIndices", () => {
Expand Down

0 comments on commit 282067c

Please sign in to comment.