Skip to content

Commit

Permalink
✅ chore: test cluster name was added in the env vars and change the e…
Browse files Browse the repository at this point in the history
…ntrypoint inside dockerfile
  • Loading branch information
futjesus committed Dec 16, 2024
1 parent bc4d3e6 commit 0a69dc6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ CLOUD_PROVIDER= aws| civo
MAX_TIME_TO_WAIT=5m
RETRIES_RUN_MODE=3
RETRIES_OPEN_MODE=0
CLUSTER_NAME=test-cluster
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ COPY ./tsconfig.json .
RUN npm install

# Define the entrypoint for running Cypress tests
ENTRYPOINT ["npm", "run", "cy:run"]
ENTRYPOINT ["npx", "cypress", "run"]

1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
RETRY_DELAY: process.env.RETRY_DELAY || 10000,
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,
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/create/physical-cluster.aws.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Account } from "../../../types/accouts";

import { fillOutForm } from "../../utils";

const CLUSTER_NAME = "test-cluster";
const CLUSTER_NAME = Cypress.env("CLUSTER_NAME");
const isAWS = Cypress.env("CLOUD_PROVIDER") === "aws";
const MAX_TIME_TO_WAIT = Cypress.env("MAX_TIME_TO_WAIT");

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/create/physical-cluster.civo.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Account } from "../../../types/accouts";

import { fillOutForm } from "../../utils";

const CLUSTER_NAME = "test-cluster";
const CLUSTER_NAME = Cypress.env("CLUSTER_NAME");
const isCivo = Cypress.env("CLOUD_PROVIDER") === "civo";
const MAX_TIME_TO_WAIT = Cypress.env("MAX_TIME_TO_WAIT");

Expand Down

0 comments on commit 0a69dc6

Please sign in to comment.