Skip to content
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

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

m-horky
Copy link
Contributor

@m-horky 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.

Copy link
Contributor

@ptoscano ptoscano left a 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 from test_branch_info, as it does not need to connect anymore
  • please drop the ARCHIVE_CACHE_DIRECTORY constant from test_collection.py, as it is no more used

integration-tests/test_collection.py Outdated Show resolved Hide resolved
integration-tests/test_collection.py Outdated Show resolved Hide resolved
@m-horky m-horky force-pushed the integration/test_collection branch 2 times, most recently from b8fcb05 to 905ca40 Compare October 31, 2024 13:34
@m-horky
Copy link
Contributor Author

m-horky commented Oct 31, 2024

That register_subman fixture is still required for the Satellite subcase.

Copy link
Contributor

@zpetrace zpetrace left a 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.
@ptoscano ptoscano merged commit 4318907 into RedHatInsights:master Nov 4, 2024
21 of 23 checks passed
@m-horky m-horky deleted the integration/test_collection branch November 4, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants