From 1644caafeb980974c3c378b4daf8e2f1ae9c3136 Mon Sep 17 00:00:00 2001 From: Russell Vinegar Date: Mon, 8 Jul 2024 16:20:02 -0700 Subject: [PATCH] use v3 endpoint for orgs --- e2e/cypress/fixtures/api.json | 2 +- e2e/cypress/tests/01-api-key/01-create-api.cy.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) }) })