chore: support testing user and system config levels in CI #238
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a mechanism for running tests for the user and system config levels and adds a basic installation test for both config levels. The goal here is not to completely replicate the existing tests but to give us a way to test special cases of interest.
The approach here creates a new test suite class and standalone files instead of mixing them into other test suites and they are intentionally hard to run because they are potentially dangerous. And I wasn't able to find a good mechanism to do something more like Python or Rust where it's easier to mix tests together.
Tests are in
integration_user_test.goandintegration_system_test.go. I split these up because, in CI, I want to test the user level tests without sudo and the system level tests with sudo. There are other ways to work around this but I feel better just testing what the users would run directly.You have to run the tests like,
This PR enables them in CI for all commits.
Closes #210