mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
@@ -38,3 +38,5 @@
|
||||
- { role: test_script, tags: test_script }
|
||||
- { role: test_authorized_key, tags: test_authorized_key }
|
||||
- { role: test_get_url, tags: test_get_url }
|
||||
- { role: test_embedded_module, tags: test_embedded_module }
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
print '{"changed":false, "msg":"this is the embedded module"}'
|
||||
@@ -0,0 +1,9 @@
|
||||
- name: run the embedded dummy module
|
||||
test_integration_module:
|
||||
register: result
|
||||
|
||||
- name: assert the embedded module ran
|
||||
assert:
|
||||
that:
|
||||
- "'msg' in result"
|
||||
- result.msg == "this is the embedded module"
|
||||
Reference in New Issue
Block a user