password_console_login - openconfig/featureprofiles GitHub Wiki
Test that Credentialz properly creates users and the associated password and that the DUT handles authentication of those users properly.
{
"system": {
"aaa": {
"authentication": {
"users": {
"user": [
{
"config": {
"password": "xxxxxxx",
"ssh-key": "yyyyyyy",
"username": "testuser"
},
"username": "testuser"
}
]
}
}
}
}
}- Set a username of
testuserwith a password having following restrictions:- Must be 24-32 characters long.
- Must use 4 of the 5 character classes ([a-z], [A-Z], [0-9], [!@#$%^&*(){}[]|:;'"], [ ]).
- Perform the following tests and assert the expected result:
- Case 1: Success
- Authenticate with the
testuserusername and password created in the first step above. - Authentication must result in success with a prompt.
- Authenticate with the
- Case 2: Failure
- Authenticate with the
testuserusername and an incorrect password ofpassword - Assert that authentication has failed
- Authenticate with the
- Case 3: Failure
- Authenticate with the invalid username
usernameand a valid (for a different username) password created in the first step above. - Assert that authentication has failed
- Authenticate with the invalid username
- Case 1: Success
The below yaml defines the OC paths intended to be covered by this test. OC paths used for test setup are not listed here.
paths:
## State Paths ##
/system/aaa/authentication/users/user/state/authorized-keys-list-version:
/system/aaa/authentication/users/user/state/authorized-keys-list-created-on:
/system/ssh-server/state/counters/access-accepts:
/system/ssh-server/state/counters/last-access-accept:
rpcs:
gnsi:
credentialz.v1.Credentialz.RotateAccountCredentials:- KNE