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

add tests for inventory cache #1386

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Apr 22, 2022

Comment on lines +9 to +10
- name: execute tests again, now fed from cache
include_tasks: inventory_plugin_tests.yml
Copy link
Member Author

Choose a reason for hiding this comment

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

this doesn't seem to work… I would expect the facts asserts to fail for the report api codepath, but they do not.

it's deprecated and generates warnings
Comment on lines +49 to +50
cache_content_host: "{{ (cache_slurp['content'] | b64decode | from_json).get('http://localhost:3000//api/v2/hosts/1') }}"
cache_content_facts: "{{ (cache_slurp['content'] | b64decode | from_json).get('http://localhost:3000//api/v2/hosts/1/facts') }}"
Copy link
Member Author

Choose a reason for hiding this comment

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

turns out, the host id is not strictly stable, fuck

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.

1 participant