Skip to content

Commit

Permalink
increase code-branch coverage and address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aramovic79 committed Feb 10, 2025
1 parent 45fc23f commit 18a7ccd
Show file tree
Hide file tree
Showing 14 changed files with 394 additions and 62 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The `open` authentication type bypasses authentication checks.

To use `basic` authentication, set `ORD_AUTH` to `["basic"]` and provide credentials in `BASIC_AUTH`. Example:

```json
```bash
BASIC_AUTH='{"user":"password"}'
```

Expand Down
54 changes: 45 additions & 9 deletions __tests__/__snapshots__/mockedCsn.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@ exports[`Tests for ORD document generated out of mocked csn files Tests for ORD
"releaseStatus": "active",
"resourceDefinitions": [
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/json",
"type": "openapi-v3",
"url": "/ord/v1/customer.capirebookshopordsample:apiResource:AdminService:v1/AdminService.oas3.json",
},
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/xml",
"type": "edmx",
"url": "/ord/v1/customer.capirebookshopordsample:apiResource:AdminService:v1/AdminService.edmx",
Expand Down Expand Up @@ -73,13 +81,21 @@ exports[`Tests for ORD document generated out of mocked csn files Tests for ORD
"releaseStatus": "active",
"resourceDefinitions": [
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/json",
"type": "openapi-v3",
"url": "/ord/v1/customer.capirebookshopordsample:apiResource:CatalogService:v1/CatalogService.oas3.json",
},
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/xml",
"type": "edmx",
"url": "/ord/v1/customer.capirebookshopordsample:apiResource:CatalogService:v1/CatalogService.edmx",
Expand Down Expand Up @@ -117,13 +133,21 @@ exports[`Tests for ORD document generated out of mocked csn files Tests for ORD
"releaseStatus": "active",
"resourceDefinitions": [
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/json",
"type": "openapi-v3",
"url": "/ord/v1/customer.capirebookshopordsample:apiResource:CinemaService:v1/CinemaService.oas3.json",
},
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/xml",
"type": "edmx",
"url": "/ord/v1/customer.capirebookshopordsample:apiResource:CinemaService:v1/CinemaService.edmx",
Expand Down Expand Up @@ -168,7 +192,11 @@ exports[`Tests for ORD document generated out of mocked csn files Tests for ORD
"releaseStatus": "active",
"resourceDefinitions": [
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/json",
"type": "asyncapi-v2",
"url": "/ord/v1/customer.capirebookshopordsample:eventResource:AdminService:v1/AdminService.asyncapi2.json",
Expand All @@ -193,7 +221,11 @@ exports[`Tests for ORD document generated out of mocked csn files Tests for ORD
"releaseStatus": "active",
"resourceDefinitions": [
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/json",
"type": "asyncapi-v2",
"url": "/ord/v1/customer.capirebookshopordsample:eventResource:CatalogService:v1/CatalogService.asyncapi2.json",
Expand All @@ -218,7 +250,11 @@ exports[`Tests for ORD document generated out of mocked csn files Tests for ORD
"releaseStatus": "active",
"resourceDefinitions": [
{
"accessStrategies": [],
"accessStrategies": [
{
"type": "open",
},
],
"mediaType": "application/json",
"type": "asyncapi-v2",
"url": "/ord/v1/customer.capirebookshopordsample:eventResource:CinemaService:v1/CinemaService.asyncapi2.json",
Expand Down
Loading

0 comments on commit 18a7ccd

Please sign in to comment.