Skip to content

Commit

Permalink
[1/2] Manifest request fails if filter params are rearranged (#6417)
Browse files Browse the repository at this point in the history
Add test coverage
  • Loading branch information
hannes-ucsc committed Jul 24, 2024
1 parent d709b1a commit c53779f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/service/test_manifest_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,16 @@ def test(self,
operation_name='StartExecution',
error_code='ExecutionAlreadyExists')
_sfn.start_execution.side_effect = exception
response = requests.put(url=str(initial_url), allow_redirects=False)

# Introduce an insignificant difference in the SFN input by
# reordering the `filters` dictionary entries. The repeated
# request should be considered valid and matching the completed
# step function execution.
url = initial_url.copy()
filters = json.loads(url.args['filters'])
url.args['filters'] = json.dumps(dict(reversed(filters.items())))

response = requests.put(url=str(url), allow_redirects=False)
_sfn.reset_mock(side_effect=True)
if fetch:
self.assertEqual(200, response.status_code)
Expand Down

0 comments on commit c53779f

Please sign in to comment.