From d93569f93063d1e8a7cde8576e69c3dccd6fb846 Mon Sep 17 00:00:00 2001 From: nirajCITZ <94716060+nirajCITZ@users.noreply.github.com> Date: Tue, 7 Nov 2023 22:18:44 -0800 Subject: [PATCH] Fix the test failed due to change in gwa generate-config output (#958) --- e2e/cypress/tests/16-gwa-cli/02-cli-generate-config.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/e2e/cypress/tests/16-gwa-cli/02-cli-generate-config.ts b/e2e/cypress/tests/16-gwa-cli/02-cli-generate-config.ts index 77e5cdc45..282a3e65f 100644 --- a/e2e/cypress/tests/16-gwa-cli/02-cli-generate-config.ts +++ b/e2e/cypress/tests/16-gwa-cli/02-cli-generate-config.ts @@ -55,17 +55,10 @@ describe('Verify CLI commands for generate/apply config', () => { cy.executeCliCommand('gwa apply -i gw-config.yml').then((response) => { let wordOccurrences = (response.stdout.match(/\bcreated\b/g) || []).length; expect(wordOccurrences).to.equal(3) - namespace = response.stdout.split('\n')[0] - namespace = namespace.replace('-', '').trim() + namespace = response.stdout.match(/\bgw-\w+/g)[0] }); }) - // it('Check gwa command to generate config for kong httpbin template', () => { - // cy.executeCliCommand('gwa generate-config --template kong-httpbin --service my-service --upstream https://httpbin.org --org ministry-of-health --org-unit planning-and-innovation-division').then((response) => { - // assert.equal(response.stdout, "File gw-config.yml created") - // }); - // }) - it('activates new namespace', () => { home.useNamespace(namespace) })