-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(test): Improve tests in test_collection.py #306
chore(test): Improve tests in test_collection.py #306
Conversation
m-horky
commented
Oct 31, 2024
- It is not required to register insights-client to run the collection. This speeds up the test.
- There is a simpler way to get a content; '--output-dir' saves the content uncompressed into user-controlled location.
- The archive may contain less content than what the test originally required.
432e4b1
to
f332704
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- please drop the
register_subman
fixture usage fromtest_branch_info
, as it does not need to connect anymore - please drop the
ARCHIVE_CACHE_DIRECTORY
constant fromtest_collection.py
, as it is no more used
b8fcb05
to
905ca40
Compare
That |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah these changes will probably speed up the process a bit, I also think the fixture is still needed so LGTM, thanks!:)
* Card ID: CCT-934 - It is not required to register insights-client to run the collection. This speeds up the test. - There is a simpler way to get a content; '--output-dir' saves the content uncompressed into user-controlled location. - Not all listed directories/files are actually included in the archive at all times. - 'boot', 'run' are not included in containers. - 'var' is not even collected on baremetal host if the collectors did not match any data.
- It is not required to register insights-client to run the collection. This speeds up the test. - There is a simpler way to get a content; '--output-dir' saves the content uncompressed into user-controlled location.
905ca40
to
d2017cc
Compare