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

try run tests in check-mode, too #328

Merged
merged 6 commits into from
Jan 4, 2024

Conversation

rndmh3ro
Copy link
Collaborator

SUMMARY

when a runme.sh exists in the test-path, it will be run. then the roles will be run in check-mode and normal-mode to test if they work in check mode (at least somewhat)

ISSUE TYPE
  • Bugfix Pull Request

@rndmh3ro rndmh3ro requested review from rrey and seuf as code owners November 14, 2023 14:17
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0aedf86) 70.79% compared to head (30d9391) 70.84%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #328      +/-   ##
==========================================
+ Coverage   70.79%   70.84%   +0.05%     
==========================================
  Files          18       18              
  Lines        1883     1883              
  Branches      327      327              
==========================================
+ Hits         1333     1334       +1     
  Misses        405      405              
+ Partials      145      144       -1     
Flag Coverage Δ
integration 69.47% <ø> (+0.08%) ⬆️
sanity 23.52% <ø> (ø)
units 65.15% <ø> (ø)

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.

@rndmh3ro rndmh3ro force-pushed the test_checkmode branch 3 times, most recently from adf6a37 to d3f5817 Compare January 4, 2024 09:28
@rndmh3ro rndmh3ro requested a review from Nemental January 4, 2024 09:42
Copy link
Collaborator

@Nemental Nemental left a comment

Choose a reason for hiding this comment

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

great improvement!
I left suggestions for fqcn in site.yml files, don't know if it's necessary

tests/integration/targets/grafana_dashboard/site.yml Outdated Show resolved Hide resolved
tests/integration/targets/grafana_datasource/site.yml Outdated Show resolved Hide resolved
tests/integration/targets/grafana_folder/site.yml Outdated Show resolved Hide resolved
tests/integration/targets/grafana_organization/site.yml Outdated Show resolved Hide resolved
tests/integration/targets/grafana_team/site.yml Outdated Show resolved Hide resolved
tests/integration/targets/grafana_user/site.yml Outdated Show resolved Hide resolved
when a runme.sh exists in the test-path, it will be run. then the roles will be run in check-mode and normal-mode to test if they work in check mode (at least somewhat)
@rndmh3ro rndmh3ro merged commit fddf5cb into ansible-collections:main Jan 4, 2024
19 of 20 checks passed
@rndmh3ro rndmh3ro deleted the test_checkmode branch January 4, 2024 12:40
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.

2 participants