• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

keycloak / keycloak-operator / 527
39%

Build:
DEFAULT BRANCH: master
Ran 24 Mar 2020 11:13AM UTC
Jobs 1
Files 66
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Mar 2020 11:03AM UTC coverage: 41.04% (+0.08%) from 40.962%
527

push

travis-ci

slaskawi
KEYCLOAK-13018: find user by id instead of username and fix FindUserByUsername implementation

We are currently finding a user by username to reconcile the KeycloakUser custom resource. However, a username can be mutable so we should retrieve a user by it's ID instead to make sure we're reconciling the correct user. The Keycloak client's generic create function was changed to return the uid of the newly created resource. This uid is now added back into the KeycloakUser custom resource spec after user creation. This way, we can now find the user by id instead of by username.

The FindUserByUsername implementation was also changed. It returns the first user which contains the string specified in the search query. If a KeycloakUser was created or deleted with a username that is a substring of a user that already exists in the realm and is the first result of that query, it will update or delete that user instead. The following changes ensures that the user found by this function returns the user that matches the correct username. The parameter to the request was also changed to filter users by username instead of all the fields.

https://issues.redhat.com/browse/KEYCLOAK-13018

2675 of 6518 relevant lines covered (41.04%)

4.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 527.1 (CHANGE_MINIKUBE_NONE_USER=true MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_HOME=$HOME KUBECONFIG=$HOME/.kube/config) 24 Mar 2020 11:13AM UTC 0
41.04
Travis Job 527.1
Source Files on build 527
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #527
  • 441285ea on github
  • Prev Build on master (#524)
  • Next Build on master (#528)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc