| 1 |
--- |
| 2 |
ansible_connection: httpapi |
| 3 |
|
| 4 |
sonic_mfa_tests: |
| 5 |
- name: test_case_01 |
| 6 |
description: Add MFA global and RSA global configurations |
| 7 |
state: merged |
| 8 |
input: |
| 9 |
mfa_global: |
| 10 |
client_secret: 'U2FsdGVkX19xLfE9fv08fh8ldxBlnJlTF2H75FeGamOPfGgwlKsykMMqcFf7/k5wrWt3jC5mewgDDJKwRwXRekSQWZu3rfeHdjWKWpi8C8OUAP76LSRco+mth2AROI32' |
| 11 |
client_secret_encrypted: true |
| 12 |
key_seed: 'U2FsdGVkX1/BI2rAgO+0uKHHFhuTkTOkVU81xetpL1s=' |
| 13 |
key_seed_encrypted: true |
| 14 |
security_profile: 'mSecurityProfile' |
| 15 |
rsa_global: |
| 16 |
security_profile: 'rSecurityProfile' |
| 17 |
|
| 18 |
- name: test_case_02 |
| 19 |
description: Add CAC-PIV global and RSA server configurations |
| 20 |
state: merged |
| 21 |
input: |
| 22 |
cac_piv_global: |
| 23 |
cert_username_field: 'user-principal-name' |
| 24 |
cert_username_match: 'username-without-domain' |
| 25 |
security_profile: 'cSecurityProfile' |
| 26 |
rsa_servers: |
| 27 |
- hostname: 'rsaserver.che-lab.it' |
| 28 |
client_id: 'sonicdevtest.che-lab.it' |
| 29 |
client_key: 'U2FsdGVkX1+94j0HxRUXYmrV3egRH3IfK5RL/6c3+j4zJifd9DTYIbPuyf7It+/ytbneKaQGJSngvFkOk35G1pUdaP3LOJRslReFDzK5KgyEpOI3bAy0Z3nm8n/W809L' |
| 30 |
client_key_encrypted: true |
| 31 |
connection_timeout: 29 |
| 32 |
read_timeout: 149 |
| 33 |
server_port: 1030 |
| 34 |
|
| 35 |
- name: test_case_03 |
| 36 |
description: Modify MFA configs |
| 37 |
state: merged |
| 38 |
input: |
| 39 |
rsa_servers: |
| 40 |
- hostname: 'rsaserver.che-lab.it' |
| 41 |
connection_timeout: 28 |
| 42 |
cac_piv_global: |
| 43 |
cert_username_field: 'common-name' |
| 44 |
cert_username_match: '10digit-username' |
| 45 |
|
| 46 |
- name: test_case_04 |
| 47 |
description: Delete specific MFA configs |
| 48 |
state: deleted |
| 49 |
input: |
| 50 |
mfa_global: |
| 51 |
security_profile: 'mSecurityProfile' |
| 52 |
rsa_global: |
| 53 |
security_profile: 'rSecurityProfile' |
| 54 |
rsa_servers: |
| 55 |
- hostname: 'rsaserver.che-lab.it' |
| 56 |
server_port: 1030 |
| 57 |
connection_timeout: 28 |
| 58 |
read_timeout: 149 |
| 59 |
cac_piv_global: |
| 60 |
cert_username_field: 'common-name' |
| 61 |
cert_username_match: '10digit-username' |
| 62 |
security_profile: 'cSecurityProfile' |
| 63 |
|
| 64 |
- name: test_case_05 |
| 65 |
description: Delete RSA server using hostname |
| 66 |
state: deleted |
| 67 |
input: |
| 68 |
rsa_servers: |
| 69 |
- hostname: 'rsaserver.che-lab.it' |
| 70 |
|
| 71 |
- name: test_case_06 |
| 72 |
description: Override MFA configurations |
| 73 |
state: overridden |
| 74 |
input: |
| 75 |
cac_piv_global: |
| 76 |
cert_username_field: 'common-name' |
| 77 |
cert_username_match: '10digit-username' |
| 78 |
security_profile: 'cSecurityProfile' |
| 79 |
rsa_global: |
| 80 |
security_profile: 'rSecurityProfile' |
| 81 |
|
| 82 |
- name: test_case_07 |
| 83 |
description: Add MFA configurations for replace |
| 84 |
state: merged |
| 85 |
input: |
| 86 |
rsa_servers: |
| 87 |
- hostname: 'rsaserver.che-lab.it' |
| 88 |
client_id: 'sonicdevtest.che-lab.it' |
| 89 |
client_key: 'U2FsdGVkX1+94j0HxRUXYmrV3egRH3IfK5RL/6c3+j4zJifd9DTYIbPuyf7It+/ytbneKaQGJSngvFkOk35G1pUdaP3LOJRslReFDzK5KgyEpOI3bAy0Z3nm8n/W809L' |
| 90 |
client_key_encrypted: true |
| 91 |
connection_timeout: 29 |
| 92 |
read_timeout: 149 |
| 93 |
server_port: 1030 |
| 94 |
|
| 95 |
- name: test_case_08 |
| 96 |
description: Replace RSA server configurations |
| 97 |
state: replaced |
| 98 |
input: |
| 99 |
rsa_servers: |
| 100 |
- hostname: 'rsaserver.che-lab.it' |
| 101 |
connection_timeout: 23 |
| 102 |
read_timeout: 143 |
| 103 |
server_port: 1033 |
| 104 |
|
| 105 |
- name: test_case_09 |
| 106 |
description: Delete all MFA configurations |
| 107 |
state: deleted |
| 108 |
input: {} |