You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/11/26 11:53:55 UTC
[libcloud] 05/05: Add a test case for it.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 1321ca0bc5e4a26db5e6ecf63e5b8d402f919514
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Nov 26 12:31:25 2021 +0100
Add a test case for it.
---
libcloud/test/compute/test_ec2.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libcloud/test/compute/test_ec2.py b/libcloud/test/compute/test_ec2.py
index 2ddeaf6..88c56ed 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -146,6 +146,12 @@ class EC2Tests(LibcloudTestCase, TestCaseMixin):
)
self.assertEqual(driver.signature_version, "4")
+ driver = EC2NodeDriver(*EC2_PARAMS, region="ap-east-1")
+ self.assertEqual(driver.signature_version, "2")
+
+ driver = EC2NodeDriver(*EC2_PARAMS, region="ap-east-1", signature_version="4")
+ self.assertEqual(driver.signature_version, "4")
+
def test_instantiate_driver_with_token(self):
token = "temporary_credentials_token"
driver = EC2NodeDriver(*EC2_PARAMS, **{"region": self.region, "token": token})