Skip to content

Commit

Permalink
DE23606 Fix cloud validation (#1685)
Browse files Browse the repository at this point in the history
* DE23606 Fix cloud validation

Co-authored-by: Dmytro Mykhaliev <[email protected]>
  • Loading branch information
mykhaliev1 and Dmytro Mykhaliev authored Sep 16, 2022
1 parent f76f633 commit b538d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bzt/bza.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def get_passfail_validation(self):
resp = self._request(url, method='GET')
validated = False
for result in resp.get('result'):
if result['status'] == 100:
if result['fileName'] == 'taurus.yml' and result['status'] == 100:
for warning_msg in result['warnings'] + result['fileWarnings']:
self.log.warning(f"Passfail Warning: {warning_msg}")
validated = True
Expand Down
1 change: 1 addition & 0 deletions tests/unit/modules/test_cloudProvisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,7 @@ def test_passfail_criteria(self):
get={
'https://a.blazemeter.com/api/v4/tests/1/validations': {'result': [
{'status': 100,
'fileName': 'taurus.yml',
'warnings': ["passfail warning"],
'fileWarnings': ["passfail file warning"]}]},
'https://a.blazemeter.com/api/v4/masters/1/status': {'result': {"status": "CREATED", "progress": 100}},
Expand Down

0 comments on commit b538d7b

Please sign in to comment.