mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 04:15:02 -02:30
Follow up fix #542
Relates https://github.com/ansible/ansible-tower/issues/7737#issuecomment-348566452 Signed-off-by: Aaron Tan <jangsutsr@gmail.com>
This commit is contained in:
@@ -635,7 +635,8 @@ class TestJobCredentials(TestJobExecution):
|
||||
inputs = {
|
||||
'subscription': 'some-subscription',
|
||||
'username': 'bob',
|
||||
'password': 'secret'
|
||||
'password': 'secret',
|
||||
'cloud_environment': 'foobar'
|
||||
}
|
||||
)
|
||||
credential.inputs['password'] = encrypt_field(credential, 'password')
|
||||
@@ -650,6 +651,7 @@ class TestJobCredentials(TestJobExecution):
|
||||
assert env['AZURE_SUBSCRIPTION_ID'] == 'some-subscription'
|
||||
assert env['AZURE_AD_USER'] == 'bob'
|
||||
assert env['AZURE_PASSWORD'] == 'secret'
|
||||
assert env['AZURE_CLOUD_ENVIRONMENT'] == 'foobar'
|
||||
|
||||
def test_vmware_credentials(self):
|
||||
vmware = CredentialType.defaults['vmware']()
|
||||
|
||||
Reference in New Issue
Block a user