Implement OpenAPI spec based router #22
GitHub Actions / Unit Tests
succeeded
Mar 11, 2024 in 1s
28 passed, 0 failed and 1 skipped
✅ reports/junit.xml
29 tests were completed in 1s with 28 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Nornir Tests | 8✅ | 1s | ||
OpenAPI Router | 5✅ | 726ms | ||
Parsing | 1✅ | 190ms | ||
REST tests | 5✅ | 734ms | ||
test something | 1⚪ | 166ms | ||
utils | 9✅ | 152ms |
✅ Nornir Tests
Nornir Tests use() Should add basic middleware
✅ Nornir Tests use() Should add basic middleware
Nornir Tests use() Should throw when middleware throws
✅ Nornir Tests use() Should throw when middleware throws
Nornir Tests useResult() Should add basic middleware
✅ Nornir Tests useResult() Should add basic middleware
Nornir Tests useResult() Should handle previous error result
✅ Nornir Tests useResult() Should handle previous error result
Nornir Tests useChain() Should compose chain
✅ Nornir Tests useChain() Should compose chain
Nornir Tests split() Should split items
✅ Nornir Tests split() Should split items
Nornir Tests split() Should handle errors
✅ Nornir Tests split() Should handle errors
Nornir Tests match() Should run the correct match
✅ Nornir Tests match() Should run the correct match
✅ OpenAPI Router
OpenAPI Router Should process a basic request
✅ OpenAPI Router Should process a basic request
OpenAPI Router Should not process an invalid request
✅ OpenAPI Router Should not process an invalid request
OpenAPI Router Should support merging routers
✅ OpenAPI Router Should support merging routers
OpenAPI Router Should not allow implementing the same route twice
✅ OpenAPI Router Should not allow implementing the same route twice
OpenAPI Router Should not allow implementing the same route more than once with merge
✅ OpenAPI Router Should not allow implementing the same route more than once with merge
✅ Parsing
Parsing Should throw correct error on failure to parse
✅ Parsing Should throw correct error on failure to parse
✅ REST tests
REST tests Valid requests Should process a basic GET request
✅ REST tests Valid requests Should process a basic GET request
REST tests Valid requests Should process a basic POST request
✅ REST tests Valid requests Should process a basic POST request
REST tests Valid requests Should process a GET request with an empty body
✅ REST tests Valid requests Should process a GET request with an empty body
REST tests Invalid requests Should return a 404 for an invalid path
✅ REST tests Invalid requests Should return a 404 for an invalid path
REST tests Invalid requests Should return a 422 for an invalid body
✅ REST tests Invalid requests Should return a 422 for an invalid body
✅ test something
test something should do something
⚪ test something should do something
✅ utils
utils simpleSpecResolve function resolves $ref references
✅ utils simpleSpecResolve function resolves $ref references
utils simpleSpecResolve function resolves object without $ref
✅ utils simpleSpecResolve function resolves object without $ref
utils simpleSpecResolve function resolves array items
✅ utils simpleSpecResolve function resolves array items
utils simpleSpecResolve function resolves nested objects
✅ utils simpleSpecResolve function resolves nested objects
utils resolves nested objects with nested arrays
✅ utils resolves nested objects with nested arrays
utils resolves complex deeply nested objects
✅ utils resolves complex deeply nested objects
utils Handles multiple references to the same object
✅ utils Handles multiple references to the same object
utils Handles circular references
✅ utils Handles circular references
utils Does not mutate the input object
✅ utils Does not mutate the input object
Loading