(self)
| 83 | |
| 84 | class BaseCloudTrailCommandTest(BaseAWSCommandParamsTest): |
| 85 | def setUp(self): |
| 86 | super().setUp() |
| 87 | # We need to remove this handler to ensure that we can mock out the |
| 88 | # get_bucket_location operation. |
| 89 | self.driver.session.unregister( |
| 90 | 'after-call.s3.GetBucketLocation', parse_get_bucket_location |
| 91 | ) |
| 92 | self._logs = [ |
| 93 | { |
| 94 | 'hashValue': '44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a', |
| 95 | 'oldestEventTime': '2015-08-16T22:36:54Z', |
| 96 | 's3Object': 'key1', |
| 97 | 'hashAlgorithm': 'SHA-256', |
| 98 | 's3Bucket': '1', |
| 99 | 'newestEventTime': '2015-08-16T22:36:54Z', |
| 100 | '_raw_value': '{}', |
| 101 | }, |
| 102 | { |
| 103 | 'hashValue': '7a38bf81f383f69433ad6e900d35b3e2385593f76a7b7ab5d4355b8ba41ee24b', |
| 104 | 'oldestEventTime': '2015-08-16T22:54:56Z', |
| 105 | 's3Object': 'key2', |
| 106 | 'hashAlgorithm': 'SHA-256', |
| 107 | 's3Bucket': '1', |
| 108 | 'newestEventTime': '2015-08-16T22:55:49Z', |
| 109 | '_raw_value': '{"foo":"bar"}', |
| 110 | }, |
| 111 | { |
| 112 | 'hashValue': '5b1070294963f40cb5b3c7a05d3fbaf7ffe4e5d226632026e39cfeb32d349c0c', |
| 113 | 'oldestEventTime': '2015-08-16T21:54:59Z', |
| 114 | 's3Object': 'key3', |
| 115 | 'hashAlgorithm': 'SHA-256', |
| 116 | 's3Bucket': '1', |
| 117 | 'newestEventTime': '2015-08-16T21:54:59Z', |
| 118 | '_raw_value': '{"baz":"qux"}', |
| 119 | }, |
| 120 | ] |
| 121 | |
| 122 | |
| 123 | class TestCloudTrailCommand(BaseCloudTrailCommandTest): |
nothing calls this directly
no test coverage detected