-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add scenario to test Admin static user password change
Use CSC to change the password for the Admin static user and test login with this new password on Dex Refs: #2569
- Loading branch information
1 parent
ff9066c
commit 119a88d
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,14 @@ Feature: Cluster and Services Configurations | |
And we have a 'metalk8s-dex-config' CSC in namespace 'metalk8s-auth' | ||
When we update the CSC 'spec.deployment.replicas' to '3' | ||
Then we have '3' at 'status.available_replicas' for 'dex' Deployment in namespace 'metalk8s-auth' | ||
|
||
Scenario: Update Admin static user password | ||
Given the Kubernetes API is available | ||
And we have a 'metalk8s-dex-config' CSC in namespace 'metalk8s-auth' | ||
# NOTE: Consider that admin user is the first of the userlist | ||
# Update password to "new-password" | ||
When we update the CSC 'spec.localuserstore.userlist.0.hash' to '$2y$14$pDe0vj917rR3XJQ5iEZvhuSGoWkZg2/qBN/mMLqwFSz9S7EYcbIpO' | ||
Then the control-plane Ingress path '/oidc' is available | ||
And pods with label 'app.kubernetes.io/name=dex' are 'Ready' | ||
And we are not able to login to Dex as '[email protected]' using password 'password' | ||
And we are able to login to Dex as '[email protected]' using password 'new-password' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters