Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Separate refresh test suites #117

Closed
farshidtz opened this issue Aug 15, 2022 · 0 comments · Fixed by #147
Closed

Separate refresh test suites #117

farshidtz opened this issue Aug 15, 2022 · 0 comments · Fixed by #147
Labels
enhancement New feature or request

Comments

@farshidtz
Copy link
Member

The refresh test requires a very different setup and teardown process because it involves upgrading from an older to the current (under test) snap. This adds complication because when refresh tests run in the middle of other tests, the current snap is removed in setup and installed again in teardown.

Testing the refresh test alone will result in an unwanted workflow:

  1. install current (global setup)
  2. remove current (setup)
  3. install old snap (setup)
  4. refresh to current
  5. remove current (cleanup)
  6. install current (cleanup)
  7. remove current (global teardown)

go test -p 1 ./test/suites/edgexfoundry -run=TestCommon/refresh -v

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant