Skip to content
GitHub Actions / Unit Tests succeeded Aug 15, 2024 in 0s

43 passed, 0 failed and 1 skipped

Tests passed successfully

βœ…Β reports/junit.xml

44 tests were completed in 1s with 43 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
AttachmentRegistry 12βœ… 233ms
Nornir Tests 10βœ… 946ms
OpenAPI Router 5βœ… 660ms
Parsing 1βœ… 215ms
REST tests 5βœ… 543ms
test something 1βšͺ 117ms
utils 10βœ… 130ms

βœ…Β AttachmentRegistry

AttachmentRegistry #register registers a value and returns a key
  βœ… AttachmentRegistry #register registers a value and returns a key
AttachmentRegistry #registerFactory registers a factory and returns a key
  βœ… AttachmentRegistry #registerFactory registers a factory and returns a key
AttachmentRegistry #registerFactory caches the result of the factory
  βœ… AttachmentRegistry #registerFactory caches the result of the factory
AttachmentRegistry #put puts a constant value in the registry
  βœ… AttachmentRegistry #put puts a constant value in the registry
AttachmentRegistry #putFactory puts a factory in the registry
  βœ… AttachmentRegistry #putFactory puts a factory in the registry
AttachmentRegistry #delete deletes value from the registry by key
  βœ… AttachmentRegistry #delete deletes value from the registry by key
AttachmentRegistry #getAssert gets a value from the registry or throws
  βœ… AttachmentRegistry #getAssert gets a value from the registry or throws
AttachmentRegistry #getAssert throws NornirMissingAttachmentException if key does not exist in registry
  βœ… AttachmentRegistry #getAssert throws NornirMissingAttachmentException if key does not exist in registry
AttachmentRegistry #has checks if a key exists in the registry
  βœ… AttachmentRegistry #has checks if a key exists in the registry
AttachmentRegistry #hasAll checks if all keys exist in the registry
  βœ… AttachmentRegistry #hasAll checks if all keys exist in the registry
AttachmentRegistry #hasAny checks if any key exists in the registry
  βœ… AttachmentRegistry #hasAny checks if any key exists in the registry
AttachmentRegistry #merge merges two registries
  βœ… AttachmentRegistry #merge merges two registries

βœ…Β 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 build() with base registry Should build a chain a registry including existing registry keys
  βœ… Nornir Tests build() with base registry Should build a chain a registry including existing registry keys
Nornir Tests build() with base registry Base registry should not be modified
  βœ… Nornir Tests build() with base registry Base registry should not be modified
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 simple array items
  βœ… utils simpleSpecResolve function resolves simple array items
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