libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [libcloud] branch ec2_regression_signature_version_fix updated: Add more assertions.
Date Fri, 22 Jan 2021 19:40:42 GMT
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch ec2_regression_signature_version_fix
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/ec2_regression_signature_version_fix by this
push:
     new af89afc  Add more assertions.
af89afc is described below

commit af89afc658fc5156766ea55f95dab07f304e2312
Author: Tomaz Muraus <tomaz@tomaz.me>
AuthorDate: Fri Jan 22 20:40:22 2021 +0100

    Add more assertions.
---
 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 763ac83..5e29112 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -127,12 +127,18 @@ class EC2Tests(LibcloudTestCase, TestCaseMixin):
         self.assertEqual(driver.signature_version, "4")
 
         # Verify that signature_version can be overriden via constructor argument
+        driver = EC2NodeDriver(*EC2_PARAMS, region="us-east-1", signature_version="2")
+        self.assertEqual(driver.signature_version, "2")
+
         driver = EC2NodeDriver(*EC2_PARAMS, region="us-east-1", signature_version="4")
         self.assertEqual(driver.signature_version, "4")
 
         driver = EC2NodeDriver(*EC2_PARAMS, region="eu-central-1", signature_version="2")
         self.assertEqual(driver.signature_version, "2")
 
+        driver = EC2NodeDriver(*EC2_PARAMS, region="eu-central-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})


Mime
View raw message