(result, service, operation)
| 7 | |
| 8 | |
| 9 | def assert_expected_user_agent(result, service, operation): |
| 10 | ua_string = result.aws_requests[0].http_requests[0].headers['User-Agent'] |
| 11 | assert ua_string.startswith(f'aws-cli/{awscli_version}') |
| 12 | assert ' md/installer#' in ua_string |
| 13 | assert ' md/awscrt#' in ua_string |
| 14 | assert ' md/arch#' in ua_string |
| 15 | assert ' md/prompt#off' in ua_string |
| 16 | assert f' md/command#{service}.{operation}' in ua_string |
| 17 | assert ' ua/2.1 ' in ua_string |
| 18 | assert ' os/' in ua_string |
| 19 | assert ' lang/python' in ua_string |
| 20 | assert ' cfg/' in ua_string |
| 21 | assert f' md/command#{service}.{operation}' in ua_string |
| 22 | |
| 23 | |
| 24 | def test_basic_user_agent(): |
no outgoing calls
no test coverage detected