Fix tests after repo merge.

This commit is contained in:
Matt Clay 2016-12-06 11:29:16 -05:00
parent 14833f1c7a
commit bd7ce0696e
10 changed files with 28 additions and 36 deletions

View file

@ -10,23 +10,22 @@
/lib/ansible/galaxy/
/lib/ansible/__init__.py
/lib/ansible/inventory/
/lib/ansible/modules/core/cloud/[^/]+/(?!(ec2_facts.py|_ec2_ami_search.py))
/lib/ansible/modules/extras/cloud/
/lib/ansible/modules/extras/clustering/consul.*.py
/lib/ansible/modules/extras/clustering/znode.py
/lib/ansible/modules/extras/database/influxdb/
/lib/ansible/modules/extras/database/mssql/
/lib/ansible/modules/extras/infrastructure/foreman/
/lib/ansible/modules/extras/monitoring/zabbix.*.py
/lib/ansible/modules/extras/network/f5/
/lib/ansible/modules/extras/network/nmcli.py
/lib/ansible/modules/extras/notification/pushbullet.py
/lib/ansible/modules/extras/packaging/language/maven_artifact.py
/lib/ansible/modules/extras/packaging/os/dnf.py
/lib/ansible/modules/extras/packaging/os/layman.py
/lib/ansible/modules/extras/remote_management/ipmi/
/lib/ansible/modules/extras/univention/
/lib/ansible/modules/extras/web_infrastructure/letsencrypt.py
/lib/ansible/modules/cloud/[^/]+/(?!(ec2_facts.py|_ec2_ami_search.py))
/lib/ansible/modules/clustering/consul.*.py
/lib/ansible/modules/clustering/znode.py
/lib/ansible/modules/database/influxdb/
/lib/ansible/modules/database/mssql/
/lib/ansible/modules/infrastructure/foreman/
/lib/ansible/modules/monitoring/zabbix.*.py
/lib/ansible/modules/network/f5/
/lib/ansible/modules/network/nmcli.py
/lib/ansible/modules/notification/pushbullet.py
/lib/ansible/modules/packaging/language/maven_artifact.py
/lib/ansible/modules/packaging/os/dnf.py
/lib/ansible/modules/packaging/os/layman.py
/lib/ansible/modules/remote_management/ipmi/
/lib/ansible/modules/univention/
/lib/ansible/modules/web_infrastructure/letsencrypt.py
/lib/ansible/modules/__init__.py
/lib/ansible/module_utils/a10.py
/lib/ansible/module_utils/azure_rm_common.py

View file

@ -3,17 +3,15 @@
metaclass1=$(find ./bin -type f -exec grep -HL '__metaclass__ = type' '{}' '+')
future1=$(find ./bin -type f -exec grep -HL 'from __future__ import (absolute_import, division, print_function)' '{}' '+')
metaclass2=$(find ./lib/ansible -path ./lib/ansible/modules/core -prune \
metaclass2=$(find ./lib/ansible -path ./lib/ansible/modules -prune \
-o -path ./lib/ansible/modules/__init__.py \
-o -path ./lib/ansible/modules/extras -prune \
-o -path ./lib/ansible/module_utils -prune \
-o -path ./lib/ansible/compat/six/_six.py -prune \
-o -path ./lib/ansible/utils/module_docs_fragments -prune \
-o -name '*.py' -exec grep -HL '__metaclass__ = type' '{}' '+')
future2=$(find ./lib/ansible -path ./lib/ansible/modules/core -prune \
future2=$(find ./lib/ansible -path ./lib/ansible/modules -prune \
-o -path ./lib/ansible/modules/__init__.py \
-o -path ./lib/ansible/modules/extras -prune \
-o -path ./lib/ansible/module_utils -prune \
-o -path ./lib/ansible/compat/six/_six.py -prune \
-o -path ./lib/ansible/utils/module_docs_fragments -prune \

View file

@ -8,8 +8,7 @@ BASESTRING_USERS=$(grep -r basestring . \
-e test/results/ \
-e lib/ansible/compat/six/_six.py \
-e lib/ansible/module_utils/six.py \
-e lib/ansible/modules/core/ \
-e lib/ansible/modules/extras/ \
-e lib/ansible/modules/ \
-e '^[^:]*:#'
)

View file

@ -6,7 +6,7 @@ BASEDIR=${1-"lib"}
# digital_ocean is checking for six because dopy doesn't specify the
# requirement on six so it needs to try importing six to give the correct error
# message
WHITELIST='(lib/ansible/modules/core/cloud/digital_ocean/digital_ocean.py)'
WHITELIST='(lib/ansible/modules/cloud/digital_ocean/digital_ocean.py)'
SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -wH six '{}' '+' \
| grep import \

View file

@ -1,7 +1,3 @@
lib/ansible/modules/core/utilities/logic/async_status.py
lib/ansible/modules/core/utilities/helper/_fireball.py
lib/ansible/modules/core/utilities/helper/_accelerate.py
lib/ansible/modules/core/test
lib/ansible/modules/core/.github
lib/ansible/modules/extras/test
lib/ansible/modules/extras/.github
lib/ansible/modules/utilities/logic/async_status.py
lib/ansible/modules/utilities/helper/_fireball.py
lib/ansible/modules/utilities/helper/_accelerate.py

View file

@ -2,7 +2,7 @@ import collections
import os
import unittest
from ansible.modules.core.cloud.docker._docker import get_split_image_tag
from ansible.modules.cloud.docker._docker import get_split_image_tag
class DockerSplitImageTagTestCase(unittest.TestCase):

View file

@ -4,7 +4,7 @@ import yaml
import inspect
import collections
from ansible.modules.core.cloud.openstack import os_server
from ansible.modules.cloud.openstack import os_server
class AnsibleFail(Exception):

View file

@ -6,7 +6,7 @@ from ansible.compat.tests import mock
from ansible.compat.tests import unittest
try:
from ansible.modules.core.packaging.os.apt import (
from ansible.modules.packaging.os.apt import (
expand_pkgspec_from_fnmatches,
)
except:

View file

@ -19,7 +19,7 @@ from ansible.inventory import Inventory
from ansible.playbook.play import Play
from ansible.executor.task_queue_manager import TaskQueueManager
import ansible.modules.extras.cloud.amazon.ec2_vpc_nat_gateway as ng
import ansible.modules.cloud.amazon.ec2_vpc_nat_gateway as ng
Options = (
namedtuple(

View file

@ -12,7 +12,7 @@ if not HAS_BOTO3:
import unittest
import ansible.modules.extras.cloud.amazon.kinesis_stream as kinesis_stream
import ansible.modules.cloud.amazon.kinesis_stream as kinesis_stream
aws_region = 'us-west-2'