Symlink modules for 2.9 compat (#5103)

* Symlink modules for 2.9 compat

* Avoid symlinks in completeness tests
This commit is contained in:
Alan Rominger
2021-06-21 10:01:52 -04:00
committed by Shane McDonald
parent 82c510e51e
commit 4a85983eb7
40 changed files with 42 additions and 2 deletions
@@ -0,0 +1 @@
ad_hoc_command.py
@@ -0,0 +1 @@
ad_hoc_command_cancel.py
@@ -0,0 +1 @@
ad_hoc_command_wait.py
+1
View File
@@ -0,0 +1 @@
application.py
@@ -0,0 +1 @@
controller_meta.py
+1
View File
@@ -0,0 +1 @@
credential.py
@@ -0,0 +1 @@
credential_input_source.py
@@ -0,0 +1 @@
credential_type.py
@@ -0,0 +1 @@
execution_environment.py
+1
View File
@@ -0,0 +1 @@
export.py
+1
View File
@@ -0,0 +1 @@
group.py
+1
View File
@@ -0,0 +1 @@
host.py
+1
View File
@@ -0,0 +1 @@
import.py
@@ -0,0 +1 @@
instance_group.py
+1
View File
@@ -0,0 +1 @@
inventory.py
@@ -0,0 +1 @@
inventory_source.py
@@ -0,0 +1 @@
inventory_source_update.py
+1
View File
@@ -0,0 +1 @@
job_cancel.py
+1
View File
@@ -0,0 +1 @@
job_launch.py
+1
View File
@@ -0,0 +1 @@
job_list.py
+1
View File
@@ -0,0 +1 @@
job_template.py
+1
View File
@@ -0,0 +1 @@
job_wait.py
+1
View File
@@ -0,0 +1 @@
label.py
+1
View File
@@ -0,0 +1 @@
license.py
@@ -0,0 +1 @@
notification_template.py
+1
View File
@@ -0,0 +1 @@
organization.py
+1
View File
@@ -0,0 +1 @@
project.py
@@ -0,0 +1 @@
project_update.py
+1
View File
@@ -0,0 +1 @@
role.py
+1
View File
@@ -0,0 +1 @@
schedule.py
+1
View File
@@ -0,0 +1 @@
settings.py
+1
View File
@@ -0,0 +1 @@
team.py
+1
View File
@@ -0,0 +1 @@
token.py
+1
View File
@@ -0,0 +1 @@
user.py
@@ -0,0 +1 @@
workflow_approval.py
@@ -0,0 +1 @@
workflow_job_template.py
@@ -0,0 +1 @@
workflow_job_template_node.py
@@ -0,0 +1 @@
workflow_launch.py
@@ -0,0 +1 @@
workflow_node_wait.py
+3 -2
View File
@@ -2,9 +2,8 @@ from __future__ import absolute_import, division, print_function
__metaclass__ = type
import pytest
from awx.main.tests.functional.conftest import _request
from ansible.module_utils.six import PY2, string_types
from ansible.module_utils.six import string_types
import yaml
import os
import re
@@ -169,6 +168,8 @@ def test_completeness(collection_import, request, admin_user, job_template, exec
for root, dirs, files in os.walk(module_directory):
if root == module_directory:
for filename in files:
if os.path.islink(os.path.join(root, filename)):
continue
# must begin with a letter a-z, and end in .py
if re.match(r'^[a-z].*.py$', filename):
module_name = filename[:-3]