Open reubenmiller opened 1 month ago
After some investigation it seem the failure is related to the built-in bridge functionality. All of the tests in the suite are executed on the same device, and the proceeding test inadvertently enables the built-in bridge when "cleaning up", see below for the test where this happens.
Non-root users should be able to read the mosquitto configuration files #2154
[Tags] \#2154
Execute Command sudo tedge connect c8y || true
Should Have File Permissions /etc/tedge/mosquitto-conf/tedge-mosquitto.conf 644 root:root
Execute Command sudo tedge config set mqtt.bridge.built_in false
Execute Command sudo tedge reconnect c8y
Should Have File Permissions /etc/tedge/mosquitto-conf/tedge-mosquitto.conf 644 root:root
Should Have File Permissions /etc/tedge/mosquitto-conf/c8y-bridge.conf 644 root:root
Execute Command sudo tedge config set mqtt.bridge.built_in true # Reset things after running the test
As a first measure, the test should be updated to unset
the mqtt.bridge.built_in
setting instead of assuming it is of a particular value or not. The built-in bridge tests will be covered in another PR, https://github.com/thin-edge/thin-edge.io/pull/2911
Describe the bug
Flaky system test.
Test name
tedge_connect_test_sm_services
Failures
Build seen on
To Reproduce
Invoked with:
Result:
Expected behavior
The test should pass consistently.