-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ test: test for validate the physical cluster creation was added (#4)
* ✅ test: test for validate the physical cluster creation was added * 🔥 chore: some unnecessary files have been removed * ✅ chore: the first steps to the cluster creaion were added * ✅ chore: more configurations have been added * ✅ chore: ordering files to a better way to test on different providers * ✅ chore: new steps for civo cluster creatiopn were added * ✅ chore: test cluster name was added in the env vars and change the entrypoint inside dockerfile * ✅ chore: remove the skip test for cluster creation * ✅ chore: test case for validate atlantis with github was added * ✅ chore: the git validation was added * ✅ chore: some changes were did it * ⬆️ chore: cypress was updated * 🦺 chore: change default value to wait for retry * 🦺 chore: more time was added when when is looking for the link in the metaphor page
- Loading branch information
Showing
26 changed files
with
893 additions
and
325 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.env* | ||
.git* | ||
.nvmrc | ||
README.md |
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,3 +1,9 @@ | ||
USERNAME = | ||
PASSWORD = | ||
DOMAIN = | ||
CLUSTER_DOMAIN= | ||
PASSWORD= | ||
USERNAME= | ||
RETRY_DELAY=20s | ||
CLOUD_PROVIDER= aws| civo | ||
MAX_TIME_TO_WAIT=5m | ||
RETRIES_RUN_MODE=3 | ||
RETRIES_OPEN_MODE=0 | ||
CLUSTER_NAME=test-cluster |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,22 +1,36 @@ | ||
import { defineConfig } from "cypress"; | ||
import * as dotenv from "dotenv"; | ||
import ms from "ms"; | ||
import "dotenv/config"; | ||
|
||
dotenv.config(); | ||
import { | ||
createAtlantisPullRequestOnGithub, | ||
applyAtlantisPlan, | ||
} from "./cypress/utils/github"; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
baseUrl: process.env.CLUSTER_DOMAIN, | ||
env: { | ||
USERNAME: process.env.USERNAME, | ||
PASSWORD: process.env.PASSWORD, | ||
RETRY_DELAY: process.env.RETRY_DELAY || 10000, | ||
RETRY_DELAY: process.env.RETRY_DELAY || "10s", | ||
CLOUD_PROVIDER: process.env.CLOUD_PROVIDER, | ||
MAX_TIME_TO_WAIT: process.env.MAX_TIME_TO_WAIT || "1h", | ||
CLUSTER_NAME: process.env.CLUSTER_NAME || "test-cluster", | ||
}, | ||
viewportWidth: 2000, | ||
viewportHeight: 900, | ||
supportFile: "cypress/support/e2e.ts", | ||
retries: { | ||
runMode: 3, | ||
openMode: 0, | ||
runMode: +process.env.RETRIES_RUN_MODE || 1, | ||
openMode: +process.env.RETRIES_OPEN_MODE || 0, | ||
}, | ||
setupNodeEvents(on) { | ||
on("task", { | ||
createAtlantisPullRequestOnGithub, | ||
applyAtlantisPlan, | ||
}); | ||
}, | ||
pageLoadTimeout: Number(ms("10m")), | ||
}, | ||
}); |
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.