Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
larisaVasile committed Jun 12, 2024
1 parent af7fccb commit 4404de5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/apps/ame-e2e/src/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,19 +535,19 @@ Cypress.Commands.add('saveAspectModelToWorkspace', () => {
Cypress.Commands.add('openGenerationOpenApiSpec', () => {
cy.intercept(
'POST',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePOST=false&includePUT=false&includePATCH=false&resourcePath=null&ymlProperties=&jsonProperties=',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePost=false&includePut=false&includePatch=false&resourcePath=null&ymlProperties=&jsonProperties=',
{fixture: 'valid-open-api.json'},
);

cy.intercept(
'POST',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=yaml&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePOST=false&includePUT=false&includePATCH=false&resourcePath=null&ymlProperties=&jsonProperties=',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=yaml&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePost=false&includePut=false&includePatch=false&resourcePath=null&ymlProperties=&jsonProperties=',
{fixture: 'valid-open-api.yaml'},
);

cy.intercept(
'POST',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePOST=false&includePUT=false&includePATCH=false&resourcePath=/resource/%7BresourceId%7D&ymlProperties=&jsonProperties=%7B%0A%20%20%22key%22:%20%22value%22%0A%7D',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePost=false&includePut=false&includePatch=false&resourcePath=/resource/%7BresourceId%7D&ymlProperties=&jsonProperties=%7B%0A%20%20%22key%22:%20%22value%22%0A%7D',
{fixture: 'valid-open-api.json'},
);

Expand Down
6 changes: 3 additions & 3 deletions core/libs/api/src/lib/model-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ export class ModelApiService {
includeQueryApi: openApi.includeQueryApi,
useSemanticVersion: openApi.useSemanticVersion,
pagingOption: openApi.paging,
includePOST: openApi.includePost || false,
includePUT: openApi.includePut || false,
includePATCH: openApi.includePatch || false,
includePost: openApi.includePost || false,
includePut: openApi.includePut || false,
includePatch: openApi.includePatch || false,
resourcePath: openApi.resourcePath,
ymlProperties: openApi.ymlProperties || '',
jsonProperties: openApi.jsonProperties || '',
Expand Down

0 comments on commit 4404de5

Please sign in to comment.