diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24f989e52bd..00000000000 --- a/.gitattributes +++ /dev/null @@ -1,23 +0,0 @@ -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_amd64.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_amd64.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_amd64.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_amd64.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_amd64.deb filter=lfs diff=lfs merge=lfs -text - -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_arm64.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_arm64.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_arm64.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_arm64.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_arm64.deb filter=lfs diff=lfs merge=lfs -text - -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_armv6.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_armv6.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_armv6.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_armv6.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_armv6.deb filter=lfs diff=lfs merge=lfs -text - -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_armhf.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_armhf.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_armhf.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_armhf.deb filter=lfs diff=lfs merge=lfs -text -tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_armhf.deb filter=lfs diff=lfs merge=lfs -text diff --git a/tests/RobotFramework/bin/setup.sh b/tests/RobotFramework/bin/setup.sh index 2f87688b770..0e09ff8c52b 100755 --- a/tests/RobotFramework/bin/setup.sh +++ b/tests/RobotFramework/bin/setup.sh @@ -13,26 +13,6 @@ pushd "$SCRIPT_DIR/.." >/dev/null || exit 1 # Required to prevent dbus errors on raspberry pi export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring -# Use git lfs for test artefacts -if ! git lfs env >/dev/null 2>&1; then - # install git-lfs dependency, try proceeding anyway if a package manager is not found - if command -V apt-get >/dev/null 2>&1; then - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash - sudo apt-get install -y --no-install-recommends git-lfs - elif command -V yum >/dev/null 2>&1; then - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash - sudo yum install -y git-lfs - elif command -V dnf >/dev/null 2>&1; then - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash - sudo dnf install -y git-lfs - elif command -V brew >/dev/null 2>&1; then - brew install git-lfs - fi -fi - -git lfs install -git lfs pull - # # Setup python virtual environment and install dependencies # diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_amd64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_amd64.deb deleted file mode 100644 index 380f3cb0e27..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_amd64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa7a6b867c9dfb7d36ab2bcebf94621510ccbb68ae3dfba2a691e9f09546a30a -size 2050 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_arm64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_arm64.deb deleted file mode 100644 index 6cb011c7bbe..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_arm64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f834a39aaf671f48de5fe36ffc18cd0008d49c75ad347ad2f5b9684d6bef8c9 -size 2044 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_armhf.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_armhf.deb deleted file mode 100644 index 22abf06dbf2..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_armhf.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9932dea324d5dee58fde070a189b889d1eace65802fb97114332fbcb390f35d0 -size 2044 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_armv6.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_armv6.deb deleted file mode 100644 index 8ab8736654d..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-agent_0.0.1_armv6.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bfc6302f589e857199ca83dbb5b9769bd33359d8f555e006eacb26cea8b2d033 -size 2048 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_amd64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_amd64.deb deleted file mode 100644 index f9d1274ac5c..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_amd64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c12c33fa4ce08a182c849a7e4d8d672aad828cb1000e79757a350489314cd94 -size 840 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_arm64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_arm64.deb deleted file mode 100644 index e96c3ad7faf..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_arm64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51a1c925509c97d4f37146a65e4d915320dfbd8c20e98c8c4cb3fdc6bccd22eb -size 844 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_armhf.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_armhf.deb deleted file mode 100644 index c1b9cbeddc4..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_armhf.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:086a545f0cd16452c5f69e73d126806e3026e12a6619ae8052a8c3f34a7cd2d9 -size 840 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_armv6.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_armv6.deb deleted file mode 100644 index 5ed9ee2cfc5..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-apt-plugin_0.0.1_armv6.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ca0b4510ed5391b879bbe70285a5dbe53485260460e63c09b5c7f9fea12ef43 -size 840 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_amd64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_amd64.deb deleted file mode 100644 index 1ebff6b1632..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_amd64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:341ebda9790ed1daa8fdbb027bc565998c8da9e9e235994e9392bbf83cc8a0c8 -size 6994 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_arm64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_arm64.deb deleted file mode 100644 index 545f14b078f..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_arm64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3a8f7628f2a02c550b433d4de36afbefddaa7c03aefbe6565e51e50be4c59da -size 6992 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_armhf.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_armhf.deb deleted file mode 100644 index accbefa354e..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_armhf.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2deb24e75b757eab70103527f8ccb4cf8a7d4ffd5a95fbd50b0cd716b8ac814 -size 6994 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_armv6.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_armv6.deb deleted file mode 100644 index 61532b839c6..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-mapper_0.0.1_armv6.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6f5107482e258b3d30cfc975b14c68f06c2a094b3b567392882a9d07dcb2cf93 -size 6998 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_amd64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_amd64.deb deleted file mode 100644 index c32dfcc250c..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_amd64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f96b2857e8ca239339bf7feb6312eecd8b06c8a1557efc3cac781db13fc10101 -size 1828 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_arm64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_arm64.deb deleted file mode 100644 index 77671a84fd5..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_arm64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:87408e651aa1c6cba309930c623d1111d4d5e4032a8b257db4cca1820dd54e1c -size 1826 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_armhf.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_armhf.deb deleted file mode 100644 index 5f11dcc3d63..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_armhf.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75b42953dfbf2debb9882d6db164835cd792e0e05fa50683a58fef32ab5db1d0 -size 1832 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_armv6.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_armv6.deb deleted file mode 100644 index 2490c6a5dce..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge-watchdog_0.0.1_armv6.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bf6706969538450bcdc9c93cc4e115e55741b294eb52e71f4603b47365759e0a -size 1828 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_amd64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_amd64.deb deleted file mode 100644 index 810cabcbc35..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_amd64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:067912d9ca0112a1c7b9f9d128d92e8289155f4fe82c014af17ffff38ddfa71d -size 5130056 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_arm64.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_arm64.deb deleted file mode 100644 index c0b6ed3d163..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_arm64.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:54cba6d0861261301b0f8784c09eaf53ceec31b1cdf84e2483e8fbe2ec99571a -size 4843756 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_armhf.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_armhf.deb deleted file mode 100644 index dbf4928841c..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_armhf.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3406214cd10b5d83d4efd25fd207802dba08999d2d008f7029a409c9f1996b08 -size 4266384 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_armv6.deb b/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_armv6.deb deleted file mode 100644 index c9619b1c792..00000000000 --- a/tests/RobotFramework/tests/cumulocity/self-update/base-version/tedge_0.0.1_armv6.deb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:41561e96809e82fda93644728f2a10b17e8777736aa04c383b2751962c74a2be -size 4313378 diff --git a/tests/RobotFramework/tests/cumulocity/self-update/tedge_self_update.robot b/tests/RobotFramework/tests/cumulocity/self-update/tedge_self_update.robot index ff6ad3ac2b7..911f818fafa 100644 --- a/tests/RobotFramework/tests/cumulocity/self-update/tedge_self_update.robot +++ b/tests/RobotFramework/tests/cumulocity/self-update/tedge_self_update.robot @@ -93,14 +93,8 @@ Refreshes mosquitto bridge configuration Execute Command cmd=sh -c '[ $(journalctl -u mosquitto | grep -c "Loading config file /etc/tedge/mosquitto-conf/c8y-bridge.conf") = 2 ]' Update tedge version from base to current using Cumulocity - ${arch}= Get Debian Architecture - Execute Command mkdir -p /setup/base-version - # These base-version packages are built using the ci/build_scripts/build.sh script for all 4 supported architectures - # by overriding the version to a lower number using the GIT_SEMVER env variable - Transfer To Device ${CURDIR}/base-version/*${arch}.deb /setup/base-version/ - - # Install base version with self-update capability - Install Packages /setup/base-version + # Install base version (the latest official release) with self-update capability + Execute Command wget -O - thin-edge.io/install.sh | sh -s Execute Command cd /setup && test -f ./bootstrap.sh && ./bootstrap.sh --no-install --no-secure Device Should Exist ${DEVICE_SN} ${pid_before}= Service Should Be Running tedge-agent @@ -141,9 +135,3 @@ Create Local Repository Set Suite Variable $NEW_VERSION_ESCAPED Execute Command cd /opt/repository/local && dpkg-scanpackages -m . > Packages Execute Command cmd=echo 'deb [trusted=yes] file:/opt/repository/local /' > /etc/apt/sources.list.d/tedge-local.list - -Install Packages - [Arguments] ${packages_dir}=/setup/packages - - Execute Command apt-get update && apt-get install -y --no-install-recommends mosquitto - Execute Command cd ${packages_dir} && dpkg -i tedge_*.deb && dpkg -i tedge*mapper*.deb && dpkg -i tedge*agent*.deb && dpkg -i tedge*watchdog*.deb && dpkg -i tedge*apt*plugin*.deb