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

test: test_httpd_conf_files_main_miss failed when httpd.conf exists #4257

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

xiangce
Copy link
Contributor

@xiangce xiangce commented Oct 18, 2024

  • this test tried to verify that the httpd_conf cannot be collected
    when the main httpd.conf doesn't exist. However, when running test
    in a machine that have this httpd.conf in system already, it will fail.
  • this PR mocks the os.path.join and hence simulates that the main
    httpd.conf doesn't exist and ignore the facts
  • Jira: RHINENG-13664

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Add your description here

- this test tried to verify that the httpd_conf cannot be collected
  when the main httpd.conf doesn't exist.  However, when running test
  in a machine that have this httpd.conf in system already, it will fail.
- this PR mocks the os.path.join and hence simulates that the main
  httpd.conf doesn't exist and ignore the facts
- Jira: RHINENG-13664

Signed-off-by: Xiangce Liu <[email protected]>
@xiangce xiangce added the parser label Oct 18, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.00%. Comparing base (6e5ded5) to head (5700c54).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4257      +/-   ##
==========================================
+ Coverage   76.94%   77.00%   +0.05%     
==========================================
  Files         758      761       +3     
  Lines       41361    41464     +103     
  Branches     8734     8763      +29     
==========================================
+ Hits        31826    31930     +104     
+ Misses       8482     8481       -1     
  Partials     1053     1053              
Flag Coverage Δ
unittests 76.99% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xiangce xiangce changed the title test: test_httpd_conf_files_main_miss failed httpd.conf exists test: test_httpd_conf_files_main_miss failed when httpd.conf exists Oct 18, 2024
Copy link
Contributor

@chenlizhong chenlizhong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@xiangce xiangce merged commit 416ed6b into RedHatInsights:master Oct 22, 2024
15 checks passed
@xiangce xiangce deleted the ds_test_httpd branch October 22, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants