mirror of https://github.com/ansible/ansible.git
Intentional coverage, incidental_azure_rm_resource (#71052)
Change: - Adds some intentional coverage around PluginLoader for cases that incidental_azure_rm_resource covered. - Specifically, modules starting with an underscore, and starting with an underscore but a symlink. Test Plan: - CI Signed-off-by: Rick Elrod <rick@elrod.me>pull/71023/head
parent
8af3079640
commit
cdcf0aa42a
@ -0,0 +1 @@
|
|||||||
|
_underscore.py
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
print(json.dumps(dict(changed=False, source='legacy_library_dir')))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: testhost
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: Load a deprecated module
|
||||||
|
underscore:
|
||||||
|
register: res
|
||||||
|
|
||||||
|
- name: Load a deprecated module that is a symlink
|
||||||
|
symlink:
|
||||||
|
register: sym
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- res.source == 'legacy_library_dir'
|
||||||
|
- sym.source == 'legacy_library_dir'
|
||||||
Loading…
Reference in New Issue