forked from rancher/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E: Create dashboard access for reviewing tests results (rancher#6576)
* Add sorry-cypress library, commands and configuration * Replace e2e test run ID to be used for the dashboard with title, id and number run * Add missing instruction for the dashboard * Set default browser to Chrome * Updated env template
- Loading branch information
Showing
7 changed files
with
81 additions
and
6 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
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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
# Rancher API Endpoint | ||
API="URL" | ||
API= # Rancher server location | ||
CATTLE_BOOTSTRAP_PASSWORD= # (optional) Rancher password used for Docker initialization, adopted also for admin and skipped request | ||
CATTLE_PASSWORD_MIN_LENGTH= # (optional) (default: 12) Minimum length of the Rancher initialization password | ||
|
||
# Packages to exclude. Running `yarn clean` may be required in order for changes to take affect. | ||
EXCLUDES_PKG="epinio, rancher-components" | ||
|
||
# E2E | ||
TEST_USERNAME=admin # Rancher user, initial one is always 'admin' | ||
TEST_PASSWORD= # User password or custom during first Rancher run | ||
TEST_BASE_URL= # URL used by Cypress to run the tests, default already set as `https://localhost:8005` | ||
TEST_SKIP_SETUP= # (optional) set it 'true' to avoid to execute bootstrap setup tests for already initialized Rancher instances | ||
|
||
# E2E Dashboard values needed only for recording | ||
TEST_PROJECT_ID= # Cypres Project ID; Use any value for Sorry Cypress | ||
CYPRESS_API_URL= # Cypress unofficial dashboard Sorry Cypress |
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,5 @@ | ||
#!/usr/bin/env bash | ||
ID="$(echo ${TEST_RUN_ID:-`date +%s`} | tr '[:upper:]' '[:lower:]' | tr ' ' '-')" | ||
echo "$ID" | ||
|
||
CYPRESS_API_URL='http://139.59.134.103:1234' cy2 run --browser chrome --record --key rancher-dashboard --parallel --ci-build-id "$ID" |
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