summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMichael Abel <75477722+abelikt@users.noreply.github.com>2021-11-22 13:44:02 +0100
committerGitHub <noreply@github.com>2021-11-22 13:44:02 +0100
commita534f4920b6297eece3255846b513718a21bfd08 (patch)
treead361db05fe66415494efe60a58d8e57db0afb0b /.github
parent7e67ebda4485dad5da927f43fef4b65961a1c28b (diff)
[CIT-455] Finalize azure roundtrip (#581)
* Checkout changes from CI branch * Fix typos and switch to main repo * Add forgotten file * Add device name to topic * Add secret to workflow * Ignore Azure for now * Extract settings to GH Secrets * Revert "Ignore Azure for now" This reverts commit 92b5ec93a437e33ecfb9d027355a080129f447be. * Use more pythonic way of accessing the environment * Further review comments and improvements * Bugfix + run black * Rename c8y smoketest * Rewrite get_auth_token * Rewrite generate_sas_token
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/integration-test-workflow.yml20
-rw-r--r--.github/workflows/system-test-offsite.yml2
2 files changed, 18 insertions, 4 deletions
diff --git a/.github/workflows/integration-test-workflow.yml b/.github/workflows/integration-test-workflow.yml
index 7f16f840..0a52764c 100644
--- a/.github/workflows/integration-test-workflow.yml
+++ b/.github/workflows/integration-test-workflow.yml
@@ -101,7 +101,7 @@ jobs:
args: --verbose --features integration-test -- --skip sending_and_receiving_a_message
install-and-use-rpi:
- runs-on: [self-hosted, Linux, ARM]
+ runs-on: [self-hosted, Linux, ARM, onsite]
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
@@ -123,6 +123,7 @@ jobs:
run: sudo systemctl stop tedge-mapper-collectd
continue-on-error: true
+
- name: disconnect c8y
run: sudo tedge disconnect c8y
# We need to continue when there is no tedge already installed
@@ -189,8 +190,8 @@ jobs:
- name: chmod dummy_plugin
run: chmod +x /home/pi/tedge_dummy_plugin/tedge_dummy_plugin
- - name: Run Smoke Test
- run: ./ci/ci_smoke_test.sh
+ - name: Run smoke test for Cumulocity
+ run: ./ci/ci_smoke_test_c8y.sh
env:
C8YPASS: ${{ secrets.SECRET_C8YPASS }}
C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}
@@ -200,3 +201,16 @@ jobs:
TEBASEDIR: /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/
EXAMPLEDIR: /home/pi/examples
C8YURL: https://thin-edge-io.eu-latest.cumulocity.com
+ IOTHUBNAME: ${{ secrets.IOTHUBNAME }}
+
+ - name: Run Smoke Test for Azure
+ run: ./ci/ci_smoke_test_az.sh
+ env:
+ C8YDEVICE: ${{ secrets.SECRET_C8YDEVICE }}
+ SASKEYQUEUE: ${{ secrets.SASKEYQUEUE }}
+ SASKEYIOTHUB: ${{ secrets.SASKEYIOTHUB }}
+ AZUREENDPOINT: ${{ secrets.AZUREENDPOINT }}
+ AZUREEVENTHUB: ${{ secrets.AZUREEVENTHUB }}
+ IOTHUBNAME: ${{ secrets.IOTHUBNAME }}
+
+
diff --git a/.github/workflows/system-test-offsite.yml b/.github/workflows/system-test-offsite.yml
index 9357ec78..e4dc8727 100644
--- a/.github/workflows/system-test-offsite.yml
+++ b/.github/workflows/system-test-offsite.yml
@@ -86,7 +86,7 @@ jobs:
run: chmod +x /home/pi/tedge_dummy_plugin/tedge_dummy_plugin
- name: Run Smoke Test
- run: ./ci/ci_smoke_test.sh
+ run: ./ci/ci_smoke_test_c8y.sh
env:
C8YPASS: ${{ secrets.SECRET_C8YPASS }}
C8YUSERNAME: ${{ secrets.SECRET_C8YUSERNAME }}