diff --git a/awx/main/constants.py b/awx/main/constants.py index 6c02616d9c3c..7a93481f6f3e 100644 --- a/awx/main/constants.py +++ b/awx/main/constants.py @@ -26,11 +26,11 @@ 'insights', 'terraform', 'openshift_virtualization', - 'controller_downstream', - 'rhv_downstream', - 'openshift_virtualization_downstream', - 'insights_downstream', - 'satellite6_downstream', + 'controller_supported', + 'rhv_supported', + 'openshift_virtualization_supported', + 'insights_supported', + 'satellite6_supported', ) PRIVILEGE_ESCALATION_METHODS = [ diff --git a/awx/main/tests/functional/test_inventory_source_injectors.py b/awx/main/tests/functional/test_inventory_source_injectors.py index 6c93717b76b5..9cc8d72ab2ed 100644 --- a/awx/main/tests/functional/test_inventory_source_injectors.py +++ b/awx/main/tests/functional/test_inventory_source_injectors.py @@ -47,8 +47,12 @@ def generate_fake_var(element): def credential_kind(source): """Given the inventory source kind, return expected credential kind""" + if source.endswith('_supported'): + source = source[:-10] + if source == 'openshift_virtualization': return 'kubernetes_bearer_token' + return source.replace('ec2', 'aws')