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

Unified Diff: third_party/gsutil/third_party/boto/tests/unit/elasticache/test_api_interface.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/elasticache/test_api_interface.py
diff --git a/third_party/gsutil/third_party/boto/tests/unit/elasticache/test_api_interface.py b/third_party/gsutil/third_party/boto/tests/unit/elasticache/test_api_interface.py
new file mode 100644
index 0000000000000000000000000000000000000000..367c317a1e6798d7c4acdebf1e4246a12560359b
--- /dev/null
+++ b/third_party/gsutil/third_party/boto/tests/unit/elasticache/test_api_interface.py
@@ -0,0 +1,20 @@
+from boto.elasticache.layer1 import ElastiCacheConnection
+from tests.unit import AWSMockServiceTestCase
+
+
+class TestAPIInterface(AWSMockServiceTestCase):
+ connection_class = ElastiCacheConnection
+
+ def test_required_launch_params(self):
+ """ Make sure only the AWS required params are required by boto """
+ name = 'test_cache_cluster'
+ self.set_http_response(status_code=200, body=b'{}')
+ self.service_connection.create_cache_cluster(name)
+
+ self.assert_request_parameters({
+ 'Action': 'CreateCacheCluster',
+ 'CacheClusterId': name,
+ }, ignore_params_values=[
+ 'Version',
+ 'ContentType',
+ ])

Powered by Google App Engine
This is Rietveld 408576698