Nerzal / gocloak

golang keycloak client
Apache License 2.0
1.01k stars 275 forks source link

Added params for getting sessions associated with client #436

Closed mopo3ula closed 1 year ago

mopo3ula commented 1 year ago

Added params GetClientUserSessionsParams for GetClientUserSessions and GetClientOfflineSessions to match Keycloak API

mopo3ula commented 1 year ago

@Nerzal made variadic functions and added tests to compare result with and without params

codecov[bot] commented 1 year ago

Codecov Report

Merging #436 (e32f4b7) into main (166f442) will increase coverage by 0.01%. The diff coverage is 77.77%.

@@            Coverage Diff             @@
##             main     #436      +/-   ##
==========================================
+ Coverage   77.25%   77.26%   +0.01%     
==========================================
  Files           4        4              
  Lines        2198     2261      +63     
==========================================
+ Hits         1698     1747      +49     
- Misses        338      345       +7     
- Partials      162      169       +7     
Impacted Files Coverage Δ
client.go 75.82% <77.41%> (+0.04%) :arrow_up:
models.go 90.38% <100.00%> (+0.06%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Nerzal commented 1 year ago

Thank you for the contribution!