Skip to content

Commit

Permalink
test: remove useless 'root' parameter from some cypress requests quer…
Browse files Browse the repository at this point in the history
…y strings
  • Loading branch information
Marc authored and marcambier committed Jan 7, 2022
1 parent f953dcf commit 43eb678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ export function getApiById(auth: BasicAuthentication, apiId: string) {
url: `${Cypress.config().baseUrl}${Cypress.env('managementApi')}/apis/${apiId}`,
auth,
failOnStatusCode: false,
qs: {
root: true,
},
});
}

Expand All @@ -131,9 +128,6 @@ export function getApiMetadata(auth: BasicAuthentication, apiId: string) {
url: `${Cypress.config().baseUrl}${Cypress.env('managementApi')}/apis/${apiId}/metadata`,
auth,
failOnStatusCode: false,
qs: {
root: true,
},
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import { ApiPlanStatus } from '@model/apis';
export function getPlans(auth: BasicAuthentication, apiId: string, status: ApiPlanStatus) {
return cy.request({
method: 'GET',
url: `${Cypress.config().baseUrl}${Cypress.env('managementApi')}/apis/${apiId}/plans?status=${status}`,
url: `${Cypress.config().baseUrl}${Cypress.env('managementApi')}/apis/${apiId}/plans`,
auth,
failOnStatusCode: false,
qs: {
root: true,
status: status,
},
});
}
Expand Down

0 comments on commit 43eb678

Please sign in to comment.