Skip to content

Commit

Permalink
Cypress: Add option to skip nestedcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
AjBreidenbach committed Feb 20, 2024
1 parent 6283614 commit 5401a67
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
9 changes: 6 additions & 3 deletions cypress/e2e/blueprints/aws__nestedcloud__nestedcloud.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {deploymentFixturePath} from '../../support/deployment-fixture'
const SKIP_NESTEDCLOUD = Cypress.env("SKIP_NESTEDCLOUD")
describe('aws__nestedcloud__nestedcloud', () => {
it('Can recreate deployment', () => {
cy.recreateDeployment(deploymentFixturePath('aws__nestedcloud__nestedcloud'))
})
if(!SKIP_NESTEDCLOUD) {
it('Can recreate deployment', () => {
cy.recreateDeployment(deploymentFixturePath('aws__nestedcloud__nestedcloud'))
})
}
})
9 changes: 6 additions & 3 deletions cypress/e2e/blueprints/az__nestedcloud__nestedcloud.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {deploymentFixturePath} from '../../support/deployment-fixture'
const SKIP_NESTEDCLOUD = Cypress.env("SKIP_NESTEDCLOUD")
describe('az__nestedcloud__nestedcloud', () => {
it('Can recreate deployment', () => {
cy.recreateDeployment(deploymentFixturePath('az__nestedcloud__nestedcloud'))
})
if(!SKIP_NESTEDCLOUD) {
it('Can recreate deployment', () => {
cy.recreateDeployment(deploymentFixturePath('az__nestedcloud__nestedcloud'))
})
}
})
9 changes: 6 additions & 3 deletions cypress/e2e/blueprints/do__nestedcloud__nestedcloud.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {deploymentFixturePath} from '../../support/deployment-fixture'
const SKIP_NESTEDCLOUD = Cypress.env("SKIP_NESTEDCLOUD")
describe('do__nestedcloud__nestedcloud', () => {
it('Can recreate deployment', () => {
cy.recreateDeployment(deploymentFixturePath('do__nestedcloud__nestedcloud'))
})
if(!SKIP_NESTEDCLOUD) {
it('Can recreate deployment', () => {
cy.recreateDeployment(deploymentFixturePath('do__nestedcloud__nestedcloud'))
})
}
})
3 changes: 2 additions & 1 deletion cypress/e2e/blueprints/gcp__nestedcloud__nestedcloud.cy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {deploymentFixturePath} from '../../support/deployment-fixture'

const TEST_VERSIONS = Cypress.env('TEST_VERSIONS')
const SKIP_NESTEDCLOUD = Cypress.env("SKIP_NESTEDCLOUD")

// TODO test fixture known to not work on v1
if(TEST_VERSIONS != 'v1') {
if(TEST_VERSIONS != 'v1' && !SKIP_NESTEDCLOUD) {
describe('gcp__nestedcloud__nestedcloud', () => {
it('Can recreate deployment', () => {
cy.recreateDeployment(deploymentFixturePath('gcp__nestedcloud__nestedcloud'))
Expand Down
3 changes: 2 additions & 1 deletion scripts/src/forwarded-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@
"TEST_VERSIONS",
"UNFURL_CLOUDMAP_PATH",
"K8S_ANNOTATIONS",
"KUBECONFIG"
"KUBECONFIG",
"SKIP_NESTEDCLOUD"
]

0 comments on commit 5401a67

Please sign in to comment.