canonical / edgex-snap-testing

4 stars 2 forks source link

Manual edgex-secretstore-token connection should happen after platform installation #96

Closed MonicaisHer closed 2 years ago

MonicaisHer commented 2 years ago

Currently, platform snap installation happens after local snap installation and edgex-secret-token connection, and it will cause an error. Here is an example:

[exec] sudo snap install --dangerous app-rfid-llrp-inventory/edgex-app-rfid-llrp-inventory_2.1.0-dev.3_amd64.snap
[stdout] edgex-app-rfid-llrp-inventory 2.1.0-dev.3 installed
[exec] sudo snap connect edgexfoundry:edgex-secretstore-token edgex-app-rfid-llrp-inventory:edgex-secretstore-token
stderr] error: snap "edgexfoundry" is not installed
exit status 1

This need to be fixed in all test suites. Maybe remove following line before local snap installation: https://github.com/canonical/edgex-snap-testing/blob/b0763c032bc3d14b0e966939c1a1a6f1c33beb3a/test/suites/app-service-configurable/main_test.go#L45

farshidtz commented 2 years ago

The following PRs fail their workflow runs because of this bug: