Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/logs/test_layer1.py

Issue 1258583006: Add gsutil 4.13 to telemetry/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo all other changes so this just add gsutil to third_party Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/logs/test_layer1.py
diff --git a/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/logs/test_layer1.py b/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/logs/test_layer1.py
new file mode 100644
index 0000000000000000000000000000000000000000..7aae5b09d8aedab1977a41e91f135e5ec064e596
--- /dev/null
+++ b/tools/telemetry/third_party/gsutil/third_party/boto/tests/unit/logs/test_layer1.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+from boto.logs.layer1 import CloudWatchLogsConnection
+from tests.unit import AWSMockServiceTestCase
+
+
+class TestDescribeLogs(AWSMockServiceTestCase):
+ connection_class = CloudWatchLogsConnection
+
+ def default_body(self):
+ return b'{"logGroups": []}'
+
+ def test_describe(self):
+ self.set_http_response(status_code=200)
+ api_response = self.service_connection.describe_log_groups()
+
+ self.assertEqual(0, len(api_response['logGroups']))
+
+ self.assert_request_parameters({})
+
+ target = self.actual_request.headers['X-Amz-Target']
+ self.assertTrue('DescribeLogGroups' in target)

Powered by Google App Engine
This is Rietveld 408576698