mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
Prefer devel setup.cfg and TODO marks for expected awx-plugin
This commit is contained in:
@@ -1024,6 +1024,7 @@ class InventorySourceOptions(BaseModel):
|
||||
# If a credential was provided, it's important that it matches
|
||||
# the actual inventory source being used (Amazon requires Amazon
|
||||
# credentials; Rackspace requires Rackspace credentials; etc...)
|
||||
# TODO: AAP-53978 check that this matches new awx-plugin content for ESXI
|
||||
if source == 'vmware_esxi' and source.replace('vmware_esxi', 'vmware') != cred.kind:
|
||||
return _('VMWARE inventory sources (such as %s) require credentials for the matching cloud service.') % source
|
||||
if source == 'ec2' and source.replace('ec2', 'aws') != cred.kind:
|
||||
|
||||
@@ -521,6 +521,7 @@ class TestInventorySourceCredential:
|
||||
patch(url=inv_src.get_absolute_url(), data={'credential': aws_cred.pk}, expect=200, user=admin_user)
|
||||
assert list(inv_src.credentials.values_list('id', flat=True)) == [aws_cred.pk]
|
||||
|
||||
@pytest.skip(reason="Delay until AAP-53978 completed")
|
||||
def test_vmware_cred_create_esxi_source(self, inventory, admin_user, organization, post, get):
|
||||
"""Test that a vmware esxi source can be added with a vmware credential"""
|
||||
from awx.main.models.credential import Credential, CredentialType
|
||||
|
||||
@@ -602,6 +602,7 @@ VMWARE_VALIDATE_CERTS = False
|
||||
# -----------------
|
||||
# -- VMware ESXi --
|
||||
# -----------------
|
||||
# TODO: Verify matches with AAP-53978 solution in awx-plugins
|
||||
VMWARE_ESXI_EXCLUDE_EMPTY_GROUPS = True
|
||||
|
||||
# ---------------------------
|
||||
|
||||
Reference in New Issue
Block a user