wkspower / wks-platform

WKS Platform is a cutting-edge Adaptive Case Management platform built on top of Camunda workflow automation engine. Designed to empower organizations with agile and flexible case management capabilities, WKS Platform enables efficient handling of complex, unstructured processes.
MIT License
30 stars 13 forks source link

Refactor/Fix `BearerTokenHandlerInputResolverTest` #297

Closed vojkog closed 1 month ago

vojkog commented 1 month ago

On my platform (Windows 11), I got the following error while running BearerTokenHandlerInputResolverTest. The input map contains an extra item: sub=null.

org.opentest4j.AssertionFailedError: 
expected:
 <{path=files, method=GET, realm_access=null, org=wks, host=localhost, allowed_origin=localhost}> but was: 
 <{path=files, sub=null, method=GET, realm_access=null, org=wks, host=localhost, allowed_origin=localhost}>

The test is refactored to check containsAllEntriesOf instead of map equality. Also removed redundant empty map check.

francav commented 1 month ago

Thanks @vojkog

francav commented 1 month ago

@vojkog Can you please open the next PRs against a feature/fix branch instead of develop? Thanks!

vojkog commented 1 month ago

Of course. Thank you for accepting PR.