File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -412,3 +412,28 @@ Go Through Update Decline Heads
412
412
Wait For Checkpoint And Write ${DTS_HEADS_SWITCH_QUESTION } N
413
413
Wait For Checkpoint And Write ${DTS_SPECIFICATION_WARN } Y
414
414
Wait For Checkpoint And Write ${DTS_DEPLOY_WARN } Y
415
+
416
+ Check DPP Credentials In DTS
417
+ [Documentation] This KW checks whether DTS saves provided credentials
418
+ .... correctly.
419
+ [Arguments] ${dpp_email } ${dpp_password }
420
+ ${credentials } = Execute Command In Terminal cat /etc/cloud-pass
421
+
422
+ # The /etc/cloud-pass is being created when the credential are being saved:
423
+ Should Not Contain @{credentials } No such file or directory
424
+
425
+ ${line_count } = Get Line Count ${credentials }
426
+ IF ${line_count } != 2
427
+ # There should be no more than 2 lines in the /etc/cloud-pass
428
+ Fail More than 2 lines in /etc/cloud-pass
429
+ END
430
+
431
+ # The first line should be email:
432
+ ${current_email } = Get Line ${credentials } 0
433
+ # The second line should be password:
434
+ ${current_password } = Get Line ${credentials } 1
435
+ IF '${current_email } ' != '${dpp_email } '
436
+ Fail DPP email was not saved correctly
437
+ ELSE IF '${current_password } ' != '${dpp_password } '
438
+ Fail DPP password was not saved correctly
439
+ END
You can’t perform that action at this time.
0 commit comments