summaryrefslogtreecommitdiffstats
path: root/awx_collection
diff options
context:
space:
mode:
authorRyan Petrello <rpetrell@redhat.com>2020-11-11 19:30:21 +0100
committerRyan Petrello <rpetrell@redhat.com>2020-11-11 19:30:21 +0100
commit4d8176e6af3b3f68356ac3abfab895fab683be0d (patch)
tree0d858b48cede3cf60395a0a7eb8dbc2f8782879b /awx_collection
parentMerge pull request #8413 from sean-m-sullivan/role_list (diff)
parentMerge pull request #4682 from wenottingham/subs-corner-cases (diff)
downloadawx-4d8176e6af3b3f68356ac3abfab895fab683be0d.tar.xz
awx-4d8176e6af3b3f68356ac3abfab895fab683be0d.zip
Merge remote-tracking branch 'downstream' into downstream
Diffstat (limited to 'awx_collection')
-rw-r--r--awx_collection/plugins/modules/tower_credential.py3
-rw-r--r--awx_collection/test/awx/test_inventory_source.py24
-rw-r--r--awx_collection/tests/integration/targets/tower_credential/tasks/main.yml28
3 files changed, 13 insertions, 42 deletions
diff --git a/awx_collection/plugins/modules/tower_credential.py b/awx_collection/plugins/modules/tower_credential.py
index 330b3be4f1..76032c8a02 100644
--- a/awx_collection/plugins/modules/tower_credential.py
+++ b/awx_collection/plugins/modules/tower_credential.py
@@ -74,7 +74,7 @@ options:
- Deprecated, please use credential_type
required: False
type: str
- choices: ["aws", "tower", "gce", "azure_rm", "openstack", "cloudforms", "satellite6", "rhv", "vmware", "aim", "conjur", "hashivault_kv", "hashivault_ssh",
+ choices: ["aws", "tower", "gce", "azure_rm", "openstack", "satellite6", "rhv", "vmware", "aim", "conjur", "hashivault_kv", "hashivault_ssh",
"azure_kv", "insights", "kubernetes_bearer_token", "net", "scm", "ssh", "github_token", "gitlab_token", "vault"]
host:
description:
@@ -284,7 +284,6 @@ KIND_CHOICES = {
'gce': 'Google Compute Engine',
'azure_rm': 'Microsoft Azure Resource Manager',
'openstack': 'OpenStack',
- 'cloudforms': 'Red Hat CloudForms',
'satellite6': 'Red Hat Satellite 6',
'rhv': 'Red Hat Virtualization',
'vmware': 'VMware vCenter',
diff --git a/awx_collection/test/awx/test_inventory_source.py b/awx_collection/test/awx/test_inventory_source.py
index 9f52574670..1bced2eb67 100644
--- a/awx_collection/test/awx/test_inventory_source.py
+++ b/awx_collection/test/awx/test_inventory_source.py
@@ -182,18 +182,18 @@ def test_falsy_value(run_module, admin_user, base_inventory):
# We want to let the API return issues with "this doesn't support that", etc.
#
# GUI OPTIONS:
-# - - - - - - - manual: file: scm: ec2: gce azure_rm vmware sat cloudforms openstack rhv tower custom
-# credential ? ? o o r r r r r r r r o
-# source_project ? ? r - - - - - - - - - -
-# source_path ? ? r - - - - - - - - - -
-# verbosity ? ? o o o o o o o o o o o
-# overwrite ? ? o o o o o o o o o o o
-# overwrite_vars ? ? o o o o o o o o o o o
-# update_on_launch ? ? o o o o o o o o o o o
-# UoPL ? ? o - - - - - - - - - -
-# source_vars* ? ? - o - o o o o o - - -
-# environmet vars* ? ? o - - - - - - - - - o
-# source_script ? ? - - - - - - - - - - r
+# - - - - - - - manual: file: scm: ec2: gce azure_rm vmware sat openstack rhv tower custom
+# credential ? ? o o r r r r r r r o
+# source_project ? ? r - - - - - - - - -
+# source_path ? ? r - - - - - - - - -
+# verbosity ? ? o o o o o o o o o o
+# overwrite ? ? o o o o o o o o o o
+# overwrite_vars ? ? o o o o o o o o o o
+# update_on_launch ? ? o o o o o o o o o o
+# UoPL ? ? o - - - - - - - - -
+# source_vars* ? ? - o - o o o o - - -
+# environmet vars* ? ? o - - - - - - - - o
+# source_script ? ? - - - - - - - - - r
#
# UoPL - update_on_project_launch
# * - source_vars are labeled environment_vars on project and custom sources
diff --git a/awx_collection/tests/integration/targets/tower_credential/tasks/main.yml b/awx_collection/tests/integration/targets/tower_credential/tasks/main.yml
index b3278944e9..1303efa468 100644
--- a/awx_collection/tests/integration/targets/tower_credential/tasks/main.yml
+++ b/awx_collection/tests/integration/targets/tower_credential/tasks/main.yml
@@ -17,7 +17,6 @@
aws_cred_name1: "AWX-Collection-tests-tower_credential-aws-cred1-{{ test_id }}"
vmware_cred_name1: "AWX-Collection-tests-tower_credential-vmware-cred1-{{ test_id }}"
sat6_cred_name1: "AWX-Collection-tests-tower_credential-sat6-cred1-{{ test_id }}"
- cf_cred_name1: "AWX-Collection-tests-tower_credential-cf-cred1-{{ test_id }}"
gce_cred_name1: "AWX-Collection-tests-tower_credential-gce-cred1-{{ test_id }}"
azurerm_cred_name1: "AWX-Collection-tests-tower_credential-azurerm-cred1-{{ test_id }}"
openstack_cred_name1: "AWX-Collection-tests-tower_credential-openstack-cred1-{{ test_id }}"
@@ -534,33 +533,6 @@
that:
- "result is changed"
-- name: Create a valid CloudForms credential
- tower_credential:
- name: "{{ cf_cred_name1 }}"
- organization: Default
- state: present
- kind: cloudforms
- host: https://example.org
- username: joe
- password: secret
- register: result
-
-- assert:
- that:
- - "result is changed"
-
-- name: Delete a CloudForms credential
- tower_credential:
- name: "{{ cf_cred_name1 }}"
- organization: Default
- state: absent
- kind: cloudforms
- register: result
-
-- assert:
- that:
- - "result is changed"
-
- name: Create a valid GCE credential
tower_credential:
name: "{{ gce_cred_name1 }}"