|
| 1 | +*** Settings *** |
| 2 | +Resource ./resources/common.resource |
| 3 | +Library Cumulocity |
| 4 | +Library DeviceLibrary |
| 5 | + |
| 6 | +Test Teardown Stop Device |
| 7 | + |
| 8 | +*** Test Cases *** |
| 9 | + |
| 10 | +Install From File With UPX |
| 11 | + ${file}= Set Variable tedge-standalone-arm64.tar.gz |
| 12 | + Setup Device With Binaries image=busybox file=${file} target_dir=/root |
| 13 | + Install Standalone Binary ${file} target_dir=/root |
| 14 | + Bootstrap Using Certificate Authority |
| 15 | + |
| 16 | +Install From File Without UPX |
| 17 | + ${file}= Set Variable tedge-standalone-arm64-noupx.tar.gz |
| 18 | + Setup Device With Binaries image=busybox file=${file} target_dir=/root |
| 19 | + Install Standalone Binary ${file} target_dir=/root |
| 20 | + Bootstrap Using Certificate Authority |
| 21 | + |
| 22 | +Install From URL With UPX |
| 23 | + Skip TODO |
| 24 | + Setup Device image=busybox |
| 25 | + DeviceLibrary.Execute Command cmd=wget -q -O - https://raw.githubusercontent.com/thin-edge/tedge-standalone/main/install.sh | sh -s -- --install-path /data |
| 26 | + Bootstrap Using Certificate Authority |
| 27 | + |
| 28 | +Install From URL Without UPX |
| 29 | + Skip TODO |
| 30 | + Setup Device image=busybox |
| 31 | + DeviceLibrary.Execute Command cmd=wget -q -O - https://raw.githubusercontent.com/thin-edge/tedge-standalone/main/install.sh | sh -s -- --install-path /data --no-upx |
| 32 | + Bootstrap Using Certificate Authority |
| 33 | + |
| 34 | + |
| 35 | +Install on SysVInit Device |
| 36 | + ${file}= Set Variable tedge-standalone-arm64-noupx.tar.gz |
| 37 | + Setup SysVInit Device With Binaries image=debian:12 file=${file} target_dir=/root |
| 38 | + Install Standalone Binary ${file} target_dir=/root |
| 39 | + Bootstrap Using Certificate Authority |
| 40 | + |
| 41 | +*** Keywords *** |
| 42 | + |
| 43 | +Bootstrap Using Certificate Authority |
| 44 | + [Arguments] ${install_path}=/data |
| 45 | + |
| 46 | + ${credentials}= Cumulocity.Bulk Register Device With Cumulocity CA external_id=${DEVICE_ID} |
| 47 | + ${c8y_domain}= Cumulocity.Get Domain |
| 48 | + DeviceLibrary.Execute Command cmd=/data/tedge/bootstrap.sh --c8y-url '${c8y_domain}' --ca c8y --device-id '${DEVICE_ID}' --one-time-password '${credentials.one_time_password}' |
| 49 | + |
| 50 | + Cumulocity.Device Should Exist ${DEVICE_ID} |
| 51 | + Cumulocity.Device Should Have Event/s expected_text=tedge started up.* type=startup |
0 commit comments