Beapi-io / spring-boot-starter-beapi

Springboot 'convention over config' starter for API Automation
Other
1 stars 1 forks source link

BUG : CachedResult not properly working with cache.returns data #53

Closed orubel closed 1 year ago

orubel commented 1 year ago

CachedResult resides in Request initialization filter and does not properly take into consideration results for ROLES. Needs to be adjusted to consider requesting ROLE.

Also should consider automating Controller automation for cache an return data off a common object and role:

LinkedHashMap data = generateReturnData(Object object, String Role) return data

orubel commented 1 year ago

so we need to separate the tests out into boolean methods to test prior to pass the chain on

right now we are doing EVERYTHING in 'doFilterInternal' which is a KLUDGE

Now we are paying the piper and have to go back and rewrite this properly :)

orubel commented 1 year ago

Ok so actual issue (I believe) is in 'receivesList' not properly detecting params and dot detecting for 'empty' Set (ie [])

orubel commented 1 year ago

Ok so not an issue with cache but an issue with the test (post UserController changes)And fixed...