summaryrefslogtreecommitdiffstats
path: root/test/units/galaxy
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2022-01-12 21:36:51 +0100
committerGitHub <noreply@github.com>2022-01-12 21:36:51 +0100
commit20cc87f0598e14fde3218d012c7234f5049d2899 (patch)
tree54b14e00d46bfe3fb270ff2cb2c70d94581bc891 /test/units/galaxy
parentAdded AIX CA certs search paths (#69776) (diff)
downloadansible-20cc87f0598e14fde3218d012c7234f5049d2899.tar.xz
ansible-20cc87f0598e14fde3218d012c7234f5049d2899.zip
Expect upper case message 'levels' for galaxy publish results (#63530)
Diffstat (limited to 'test/units/galaxy')
-rw-r--r--test/units/galaxy/test_api.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/units/galaxy/test_api.py b/test/units/galaxy/test_api.py
index 8081c7924f..2fb0879aa2 100644
--- a/test/units/galaxy/test_api.py
+++ b/test/units/galaxy/test_api.py
@@ -509,15 +509,15 @@ def test_wait_import_task_with_failure(server_url, api_version, token_type, toke
},
'messages': [
{
- 'level': 'error',
+ 'level': 'ERrOR',
'message': u'Somé error',
},
{
- 'level': 'warning',
+ 'level': 'WARNiNG',
'message': u'Some wärning',
},
{
- 'level': 'info',
+ 'level': 'INFO',
'message': u'Somé info',
},
],
@@ -549,7 +549,7 @@ def test_wait_import_task_with_failure(server_url, api_version, token_type, toke
assert mock_display.mock_calls[0][1][0] == 'Waiting until Galaxy import task %s has completed' % full_import_uri
assert mock_vvv.call_count == 1
- assert mock_vvv.mock_calls[0][1][0] == u'Galaxy import message: info - Somé info'
+ assert mock_vvv.mock_calls[0][1][0] == u'Galaxy import message: INFO - Somé info'
assert mock_warn.call_count == 1
assert mock_warn.mock_calls[0][1][0] == u'Galaxy import warning message: Some wärning'
@@ -582,15 +582,15 @@ def test_wait_import_task_with_failure_no_error(server_url, api_version, token_t
'error': {},
'messages': [
{
- 'level': 'error',
+ 'level': 'ERROR',
'message': u'Somé error',
},
{
- 'level': 'warning',
+ 'level': 'WARNING',
'message': u'Some wärning',
},
{
- 'level': 'info',
+ 'level': 'INFO',
'message': u'Somé info',
},
],
@@ -622,7 +622,7 @@ def test_wait_import_task_with_failure_no_error(server_url, api_version, token_t
assert mock_display.mock_calls[0][1][0] == 'Waiting until Galaxy import task %s has completed' % full_import_uri
assert mock_vvv.call_count == 1
- assert mock_vvv.mock_calls[0][1][0] == u'Galaxy import message: info - Somé info'
+ assert mock_vvv.mock_calls[0][1][0] == u'Galaxy import message: INFO - Somé info'
assert mock_warn.call_count == 1
assert mock_warn.mock_calls[0][1][0] == u'Galaxy import warning message: Some wärning'