Merge remote-tracking branch 'downstream' into downstream

This commit is contained in:
Ryan Petrello
2020-11-11 13:30:21 -05:00
5 changed files with 18 additions and 44 deletions

View File

@@ -134,7 +134,10 @@ class Licenser(object):
# Parse output for subscription metadata to build config # Parse output for subscription metadata to build config
license = dict() license = dict()
license['sku'] = manifest['pool']['productId'] license['sku'] = manifest['pool']['productId']
license['instance_count'] = manifest['pool']['quantity'] try:
license['instance_count'] = manifest['pool']['exported']
except KeyError:
license['instance_count'] = manifest['pool']['quantity']
license['subscription_name'] = manifest['pool']['productName'] license['subscription_name'] = manifest['pool']['productName']
license['pool_id'] = manifest['pool']['id'] license['pool_id'] = manifest['pool']['id']
license['license_date'] = parse_date(manifest['endDate']).strftime('%s') license['license_date'] = parse_date(manifest['endDate']).strftime('%s')

View File

@@ -112,7 +112,7 @@
<div class="License-subTitleText"> <div class="License-subTitleText">
<span class="Form-requiredAsterisk">*</span> <span class="Form-requiredAsterisk">*</span>
<translate>Red Hat Subscription Manifest</translate> <translate>Red Hat Subscription Manifest</translate>
<a aria-label="{{'Show help text' | translate}}" id="subscription-manifest-popover" href="" aw-pop-over="A subscription manifest is an export of a Red Hat Subscription. To generate a subscription manifest, go to <a href=https://access.redhat.com/management/subscription_allocations target=_blank>access.redhat.com</a>.<br>For more information, see the <a href=https://docs.ansible.com/ansible-tower/latest/html/userguide/import_license.html>User Guide</a>.</translate>" data-placement="top" data-container="body" over-title="Subscription Manifest" class="help-link"> <a aria-label="{{'Show help text' | translate}}" id="subscription-manifest-popover" href="" aw-pop-over="{{'A subscription manifest is an export of a Red Hat Subscription. To generate a subscription manifest, go to <a href=https://access.redhat.com/management/subscription_allocations target=_blank>access.redhat.com</a>.<br>For more information, see the <a href=https://docs.ansible.com/ansible-tower/latest/html/userguide/import_license.html>User Guide</a>.' | translate}}" data-placement="top" data-container="body" over-title="Subscription Manifest" class="help-link">
<i class="fa fa-question-circle"></i> <i class="fa fa-question-circle"></i>
</a> </a>
</div> </div>

View File

@@ -74,7 +74,7 @@ options:
- Deprecated, please use credential_type - Deprecated, please use credential_type
required: False required: False
type: str 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"] "azure_kv", "insights", "kubernetes_bearer_token", "net", "scm", "ssh", "github_token", "gitlab_token", "vault"]
host: host:
description: description:
@@ -284,7 +284,6 @@ KIND_CHOICES = {
'gce': 'Google Compute Engine', 'gce': 'Google Compute Engine',
'azure_rm': 'Microsoft Azure Resource Manager', 'azure_rm': 'Microsoft Azure Resource Manager',
'openstack': 'OpenStack', 'openstack': 'OpenStack',
'cloudforms': 'Red Hat CloudForms',
'satellite6': 'Red Hat Satellite 6', 'satellite6': 'Red Hat Satellite 6',
'rhv': 'Red Hat Virtualization', 'rhv': 'Red Hat Virtualization',
'vmware': 'VMware vCenter', 'vmware': 'VMware vCenter',

View File

@@ -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. # We want to let the API return issues with "this doesn't support that", etc.
# #
# GUI OPTIONS: # GUI OPTIONS:
# - - - - - - - manual: file: scm: ec2: gce azure_rm vmware sat cloudforms openstack rhv tower custom # - - - - - - - manual: file: scm: ec2: gce azure_rm vmware sat openstack rhv tower custom
# credential ? ? o o r r r r r r r r o # credential ? ? o o r r r r r r r o
# source_project ? ? r - - - - - - - - - - # source_project ? ? r - - - - - - - - -
# source_path ? ? r - - - - - - - - - - # source_path ? ? r - - - - - - - - -
# verbosity ? ? o o o o o o o o o o o # verbosity ? ? o o o o o o o o o o
# overwrite ? ? o 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 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 o # update_on_launch ? ? o o o o o o o o o o
# UoPL ? ? o - - - - - - - - - - # UoPL ? ? o - - - - - - - - -
# source_vars* ? ? - o - o o o o o - - - # source_vars* ? ? - o - o o o o - - -
# environmet vars* ? ? o - - - - - - - - - o # environmet vars* ? ? o - - - - - - - - o
# source_script ? ? - - - - - - - - - - r # source_script ? ? - - - - - - - - - r
# #
# UoPL - update_on_project_launch # UoPL - update_on_project_launch
# * - source_vars are labeled environment_vars on project and custom sources # * - source_vars are labeled environment_vars on project and custom sources

View File

@@ -17,7 +17,6 @@
aws_cred_name1: "AWX-Collection-tests-tower_credential-aws-cred1-{{ test_id }}" aws_cred_name1: "AWX-Collection-tests-tower_credential-aws-cred1-{{ test_id }}"
vmware_cred_name1: "AWX-Collection-tests-tower_credential-vmware-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 }}" 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 }}" gce_cred_name1: "AWX-Collection-tests-tower_credential-gce-cred1-{{ test_id }}"
azurerm_cred_name1: "AWX-Collection-tests-tower_credential-azurerm-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 }}" openstack_cred_name1: "AWX-Collection-tests-tower_credential-openstack-cred1-{{ test_id }}"
@@ -534,33 +533,6 @@
that: that:
- "result is changed" - "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 - name: Create a valid GCE credential
tower_credential: tower_credential:
name: "{{ gce_cred_name1 }}" name: "{{ gce_cred_name1 }}"