Skip to content

Commit

Permalink
use v3 endpoint for orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Jul 8, 2024
1 parent 8a77dab commit 1644caa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/cypress/fixtures/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion e2e/cypress/tests/01-api-key/01-create-api.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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)
})
})
Expand Down

0 comments on commit 1644caa

Please sign in to comment.