mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-05 08:00:22 -07:00
* add inventory plugin unit test `test_verify_file`
* fix typos in `test_verify_file_bad_config` unit test
(cherry picked from commit f44300cec5
)
Co-authored-by: Rémy Keil <remy.keil@gmail.com>
This commit is contained in:
parent
92ccc6f013
commit
ffdef00a6a
5 changed files with 32 additions and 2 deletions
|
@ -74,5 +74,11 @@ def test_conig_query_options(inventory):
|
|||
assert tags == ['web-server']
|
||||
|
||||
|
||||
def test_verify_file(tmp_path, inventory):
|
||||
file = tmp_path / "foobar.linode.yml"
|
||||
file.touch()
|
||||
assert inventory.verify_file(str(file)) is True
|
||||
|
||||
|
||||
def test_verify_file_bad_config(inventory):
|
||||
assert inventory.verify_file('foobar.linde.yml') is False
|
||||
assert inventory.verify_file('foobar.linode.yml') is False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue