diff --git a/e2e/cypress/fixtures/api.json b/e2e/cypress/fixtures/api.json index 75acae44b..a7218b1d6 100644 --- a/e2e/cypress/fixtures/api.json +++ b/e2e/cypress/fixtures/api.json @@ -4,7 +4,7 @@ "accept": "application/json", "content-type": "application/json" }, - "endPoint": "ds/api/v2/organizations", + "endPoint": "ds/api/v3/organizations", "orgExpectedList": { "name": "planning-and-innovation-division", "title": "Planning and Innovation Division" diff --git a/e2e/cypress/tests/01-api-key/01-create-api.cy.ts b/e2e/cypress/tests/01-api-key/01-create-api.cy.ts index ae8d20ade..9fa414993 100644 --- a/e2e/cypress/tests/01-api-key/01-create-api.cy.ts +++ b/e2e/cypress/tests/01-api-key/01-create-api.cy.ts @@ -51,6 +51,7 @@ describe('Create API Spec', () => { it('creates and activates new namespace', () => { cy.getUserSession().then(() => { cy.get('@common-testdata').then(({ namespace }: any) => { + nameSpace = namespace cy.createGateway(namespace) cy.activateGateway(namespace) cy.visit('/manager/gateways/detail') @@ -107,7 +108,7 @@ it('Verify gwa gateway publish multiple config file', () => { cy.get('@api').then(({ organization }: any) => { cy.setHeaders(organization.headers) cy.setAuthorizationToken(userSession) - cy.makeAPIRequest(organization.endPoint + '/' + organization.orgName + '/' + organization.orgExpectedList.name + '/namespaces/' + nameSpace, 'PUT').then((response:any) => { + cy.makeAPIRequest(organization.endPoint + '/' + organization.orgName + '/' + organization.orgExpectedList.name + '/gateways/' + nameSpace, 'PUT').then((response:any) => { expect(response.apiRes.status).to.be.equal(200) }) })