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

keycloak / keycloak-operator / 527 / 1
39%
master: 39%

Build:
DEFAULT BRANCH: master
Ran 24 Mar 2020 11:13AM UTC
Files 66
Run time 6s
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%
CHANGE_MINIKUBE_NONE_USER=true MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_HOME=$HOME KUBECONFIG=$HOME/.kube/config

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

Source Files on job 527.1 (CHANGE_MINIKUBE_NONE_USER=true MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_HOME=$HOME KUBECONFIG=$HOME/.kube/config)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 354
  • Travis Job 527.1
  • 441285ea on github
  • Prev Job for CHANGE_MINIKUBE_NONE_USER=true MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_HOME=$HOME KUBECONFIG=$HOME/.kube/config on master (#524.1)
  • Next Job for CHANGE_MINIKUBE_NONE_USER=true MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_HOME=$HOME KUBECONFIG=$HOME/.kube/config on master (#528.1)
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