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

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

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 3 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: third_party/gsutil/third_party/boto/tests/unit/logs/test_layer1.py
diff --git a/third_party/gsutil/third_party/boto/tests/unit/logs/test_layer1.py b/third_party/gsutil/third_party/boto/tests/unit/logs/test_layer1.py
new file mode 100755
index 0000000000000000000000000000000000000000..7aae5b09d8aedab1977a41e91f135e5ec064e596
--- /dev/null
+++ b/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