-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to verify remote access works with a custom root cert path
Signed-off-by: James Rhodes <[email protected]>
- Loading branch information
1 parent
2cf978b
commit 5d218ec
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
...otFramework/tests/cumulocity/remote-access/test_remote_access_custom_root_cert_path.robot
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
*** Settings *** | ||
Resource ../../../resources/common.resource | ||
Library Cumulocity | ||
Library ThinEdgeIO | ||
|
||
Test Tags theme:c8y theme:troubleshooting theme:plugins adapter:docker | ||
Test Setup Custom Setup | ||
Test Teardown Get Logs | ||
|
||
*** Test Cases *** | ||
|
||
Execute ssh command with a custom root certificate path | ||
${KEY_FILE}= Configure SSH | ||
Add Remote Access Passthrough Configuration | ||
${stdout}= Execute Remote Access Command command=tedge --version exp_exit_code=0 user=root key_file=${KEY_FILE} | ||
Should Match Regexp ${stdout} tedge .+ | ||
|
||
*** Keywords *** | ||
|
||
Custom Setup | ||
${DEVICE_SN}= Setup | ||
Set Suite Variable $DEVICE_SN | ||
Device Should Exist ${DEVICE_SN} | ||
Enable Service ssh | ||
Start Service ssh | ||
Execute Command mv /etc/ssl/certs /etc/ssl/moved-certs | ||
Execute Command tedge config set c8y.root_cert_path /etc/ssl/moved-certs |