Skip to content

Commit

Permalink
Merge pull request #959 from bcgov/dev
Browse files Browse the repository at this point in the history
Fix the test failed due to change in gwa generate-config output (#958)
  • Loading branch information
ikethecoder committed Nov 8, 2023
2 parents d6f212a + d93569f commit 336178f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions e2e/cypress/tests/16-gwa-cli/02-cli-generate-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 336178f

Please sign in to comment.