|
43 | 43 | - name: "Verifying Import SCP without scp_file"
|
44 | 44 | ansible.builtin.assert:
|
45 | 45 | that:
|
46 |
| - - "'Invalid file path provided.' in '{{ idrac_import_server_config_profile_out.msg }}'" |
| 46 | + - "'Invalid file path provided.' in '{{ idrac_import_server_config_profile_out.msg }}' or |
| 47 | + 'HTTP Error 400: Bad Request' in '{{ idrac_import_server_config_profile_out.msg }}'" |
47 | 48 |
|
48 | 49 | - name: "Importing SCP from CIFS with ALL components with invalid file"
|
49 | 50 | ansible.builtin.import_role:
|
|
64 | 65 | - name: "Verifying Import SCP from CIFS with ALL components with invalid file"
|
65 | 66 | ansible.builtin.assert:
|
66 | 67 | that:
|
67 |
| - - idrac_import_server_config_profile_out.msg == "Invalid file path provided." |
| 68 | + - idrac_import_server_config_profile_out.msg == "Invalid file path provided." or |
| 69 | + idrac_import_server_config_profile_out.msg == "Failed to import scp." |
68 | 70 |
|
69 | 71 | - name: Wait for 15 seconds
|
70 | 72 | ansible.builtin.pause:
|
|
89 | 91 | - name: "Verifying Import SCP from CIFS with ALL components with invalid share"
|
90 | 92 | ansible.builtin.assert:
|
91 | 93 | that:
|
92 |
| - - "'HTTP Error 500' in '{{ idrac_import_server_config_profile_out.msg }}'" |
| 94 | + - "'HTTP Error 500' in '{{ idrac_import_server_config_profile_out.msg }}' or |
| 95 | + 'Failed to import scp.' in '{{ idrac_import_server_config_profile_out.msg }}'" |
93 | 96 |
|
94 | 97 | - name: "Importing SCP with invalid hostname"
|
95 | 98 | ansible.builtin.import_role:
|
|
203 | 206 | - name: "Verifying Import SCP with invalid username of share access"
|
204 | 207 | ansible.builtin.assert:
|
205 | 208 | that:
|
206 |
| - - idrac_import_server_config_profile_out.msg == "Invalid file path provided." |
| 209 | + - idrac_import_server_config_profile_out.msg == "Invalid file path provided." or |
| 210 | + idrac_import_server_config_profile_out.msg == "Failed to import scp." |
207 | 211 |
|
208 | 212 | - name: "Importing SCP with invalid password of share access"
|
209 | 213 | ansible.builtin.import_role:
|
|
225 | 229 | - name: "Verifying Import SCP with invalid password of share access"
|
226 | 230 | ansible.builtin.assert:
|
227 | 231 | that:
|
228 |
| - - idrac_import_server_config_profile_out.msg == "Invalid file path provided." |
| 232 | + - idrac_import_server_config_profile_out.msg == "Invalid file path provided." or |
| 233 | + idrac_import_server_config_profile_out.msg == "Failed to import scp." |
229 | 234 |
|
230 | 235 | - name: "Importing SCP with share_name as None"
|
231 | 236 | ansible.builtin.import_role:
|
|
297 | 302 | - name: "Verifying Import SCP with invalid proxy parameter"
|
298 | 303 | ansible.builtin.assert:
|
299 | 304 | that:
|
300 |
| - - idrac_import_server_config_profile_out.msg == "Invalid file path provided." |
| 305 | + - idrac_import_server_config_profile_out.msg == "Invalid file path provided." or |
| 306 | + idrac_import_server_config_profile_out.msg == "Failed to import scp." |
0 commit comments