-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.x] Updating cypress version and fixing CVE-2024-21538 (#1247
) (#1249) * Updating cypress version and fixing CVE-2024-21538 (#1247) * Updating cypress version Signed-off-by: Kshitij Tandon <tandonks@amazon.com> * Fixing CVE-2024-21538 Signed-off-by: Kshitij Tandon <tandonks@amazon.com> * Testing cypress baselining Signed-off-by: Kshitij Tandon <tandonks@amazon.com> * Modifying spec patterns Signed-off-by: Kshitij Tandon <tandonks@amazon.com> * Fixing an issue in snpashot e2e test Signed-off-by: Kshitij Tandon <tandonks@amazon.com> --------- Signed-off-by: Kshitij Tandon <tandonks@amazon.com> (cherry picked from commit 3eb1b24) * Updating upload artifacts to v4 Signed-off-by: Kshitij Tandon <tandonks@amazon.com> * Updating certificates and key Signed-off-by: Kshitij Tandon <tandonks@amazon.com> * Updating cypress.config Signed-off-by: Kshitij Tandon <tandonks@amazon.com> --------- Signed-off-by: Kshitij Tandon <tandonks@amazon.com>
- Loading branch information
Showing
25 changed files
with
686 additions
and
1,214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const { defineConfig } = require("cypress"); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
|
||
module.exports = defineConfig({ | ||
e2e: { | ||
specPattern: "cypress/e2e/plugins/index-management-dashboards-plugin/*.{js,jsx,ts,tsx}", | ||
defaultCommandTimeout: 60000, | ||
requestTimeout: 60000, | ||
responseTimeout: 60000, | ||
baseUrl: "http://localhost:5601", | ||
viewportWidth: 2000, | ||
viewportHeight: 1320, | ||
env: { | ||
openSearchUrl: "http://localhost:9200", | ||
SECURITY_ENABLED: false, | ||
username: "admin", | ||
password: "admin", | ||
}, | ||
setupNodeEvents(on, config) { | ||
on("task", { | ||
readCertAndKey() { | ||
const cert = fs.readFileSync(path.resolve(__dirname, "cypress/resources/kirk.pem")); | ||
const key = fs.readFileSync(path.resolve(__dirname, "cypress/resources/kirk-key.pem")); | ||
return { cert, key }; | ||
}, | ||
}); | ||
// implement node event listeners here | ||
return config; | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.