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>
This commit is contained in:
parent
8af3079640
commit
cdcf0aa42a
3 changed files with 29 additions and 0 deletions
|
@ -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()
|
15
test/integration/targets/plugin_loader/normal/underscore.yml
Normal file
15
test/integration/targets/plugin_loader/normal/underscore.yml
Normal file
|
@ -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 a new issue