Fix ansible-tests for devel branch

Ignore for now deprecation warnings
(see https://github.com/ansible-collections/overview/issues/45#issuecomment-628262697)
Current there are bugs in ansible-test that prevent to run these
tests.

Change-Id: I9829bb23a45699e61d7b0af5ecc3e1a94bbbca85
This commit is contained in:
Sagi Shnaidman 2020-06-01 11:44:13 +03:00
parent f89644973d
commit 7e4fbcf568
5 changed files with 11 additions and 6 deletions

View File

@ -7,7 +7,6 @@ DOCUMENTATION = '''
---
module: routers_info
short_description: Retrieve information about one or more OpenStack routers.
version_added: "2.10"
author: "Bram Verschueren (@bverschueren)"
description:
- Retrieve information about one or more routers from OpenStack.

View File

@ -11,7 +11,6 @@ DOCUMENTATION = '''
---
module: server
short_description: Create/Delete Compute Instances from OpenStack
version_added: "2.0"
author: "Monty Taylor (@emonty)"
description:
- Create or Remove compute instances from OpenStack.
@ -162,7 +161,6 @@ options:
scheduler_hints:
description:
- Arbitrary key/value pairs to the scheduler for custom use
version_added: "2.1"
type: dict
state:
description:
@ -176,7 +174,6 @@ options:
associated with the instance will be deleted along with the instance.
type: bool
default: 'no'
version_added: "2.2"
reuse_ips:
description:
- When I(auto_ip) is true and this option is true, the I(auto_ip) code
@ -188,7 +185,6 @@ options:
the server is deleted using I(delete_fip).
type: bool
default: 'yes'
version_added: "2.2"
availability_zone:
description:
- Availability zone in which to create the server.

View File

@ -0,0 +1,9 @@
plugins/modules/compute_flavor_info.py pylint:invalid-tagged-version
plugins/modules/identity_domain_info.py pylint:invalid-tagged-version
plugins/modules/identity_user_info.py pylint:invalid-tagged-version
plugins/modules/image_info.py pylint:invalid-tagged-version
plugins/modules/networks_info.py pylint:invalid-tagged-version
plugins/modules/port_info.py pylint:invalid-tagged-version
plugins/modules/project_info.py pylint:invalid-tagged-version
plugins/modules/server_info.py pylint:invalid-tagged-version
plugins/modules/subnets_info.py pylint:invalid-tagged-version

View File

@ -96,7 +96,7 @@ if sys.version_info >= (3,) and sys.version_info < (3, 4, 4):
global file_spec
if file_spec is None:
import _io # pylint: disable=import-outside-toplevel
import _io # noqa
file_spec = list(set(dir(_io.TextIOWrapper)).union(set(dir(_io.BytesIO))))
if mock is None:

View File

@ -24,6 +24,7 @@ mkdir -p ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/openstack/cloud
cp -a ${TOXDIR}/{plugins,meta,scripts,tests,docs} ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/openstack/cloud
cd ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/openstack/cloud/
ansible-test sanity -v \
--venv \
--skip-test metaclass-boilerplate \
--skip-test future-import-boilerplate \
plugins/ docs/ meta/ scripts/ tests/