Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

K8s apply check mode fix #84

Merged

Conversation

willthames
Copy link
Collaborator

SUMMARY

Adds test for applying a Service change in check_mode and ensures that test passes

Fixes ansible/ansible#66780

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

k8s/raw

ADDITIONAL INFORMATION

Needs backporting to ansible/ansible for 2.9

willthames added 2 commits May 4, 2020 16:24
apply_object returns only the patch - we need to actually
apply the patch to the existing object.

Fixes ansible/ansible#66780
@codecov
Copy link

codecov bot commented May 4, 2020

Codecov Report

Merging #84 into master will decrease coverage by 0.23%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
- Coverage   43.33%   43.09%   -0.24%     
==========================================
  Files           3        3              
  Lines         540      543       +3     
  Branches      109      110       +1     
==========================================
  Hits          234      234              
- Misses        263      266       +3     
  Partials       43       43              
Impacted Files Coverage Δ
...s/community/kubernetes/plugins/module_utils/raw.py 38.86% <0.00%> (-0.31%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4de52c5...34137c4. Read the comment docs.

@willthames
Copy link
Collaborator Author

There is an intermittent test failure (there is a race condition) that is fixed by #87

Copy link
Collaborator

@fabianvf fabianvf left a comment

Choose a reason for hiding this comment

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

lgtm

@fabianvf fabianvf requested a review from geerlingguy May 14, 2020 16:21
Copy link
Collaborator

@geerlingguy geerlingguy left a comment

Choose a reason for hiding this comment

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

Left one quick comment/question for feedback but otherwise this LGTM. And @willthames I don't know any way to have the codecov system (which is kind of dictated by the community leadership for collections that are going to be in the ACD 2.10 distribution) account for molecule tests, unfortunately, only pytest code coverage written in Python, I guess.

molecule/default/molecule.yml Show resolved Hide resolved
@fabianvf fabianvf merged commit 9ccec43 into ansible-collections:master May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants