Skip to content

Commit

Permalink
Add test to verify remote access works with a custom root cert path
Browse files Browse the repository at this point in the history
Signed-off-by: James Rhodes <[email protected]>
  • Loading branch information
jarhodes314 committed Jul 22, 2024
1 parent 2cf978b commit 5d218ec
Showing 1 changed file with 27 additions and 0 deletions.
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

0 comments on commit 5d218ec

Please sign in to comment.