canonical / edgex-snap-testing

4 stars 2 forks source link

Start only non-sec services in no-sec tests #201

Closed farshidtz closed 1 year ago

farshidtz commented 1 year ago

The security=false option was used to disable security and re-start all the services. This relied on the default autostart=true to start the non-sec services after stopping all. See https://github.com/edgexfoundry/edgex-go/blob/ce5d24036f637d84b811de065aa37bd3eaf3c7fe/snap/local/helper-go/configure.go#L98-L111

That logic no longer fully works by default because the service are no longer started by default as of https://github.com/edgexfoundry/edgex-go/pull/4552

Manually starting services with snap start will also start the unwanted security services.

This PR uses the following workaround:

sudo snap set edgexfoundry security=false
sudo snap set edgexfoundry autostart=true