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 2020/12/13 11:14:51 UTC

[libcloud] branch trunk updated (137d41d -> 4f08bec)

This is an automated email from the ASF dual-hosted git repository.

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


    from 137d41d  Merge pull request #1504 from dimgal1/linode-api-v4
     new 3c2c161  Storage: Add support for the SFO2 datacenter
     new 164036f  Add a test case for valid regions for the DigitalOcean spaces driver.
     new d6e2c00  Add changelog entry.
     new 4f08bec  Update tox version in Dockerfile.

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGES.rst                                       |  4 ++++
 contrib/Dockerfile                                |  2 +-
 libcloud/storage/drivers/digitalocean_spaces.py   |  1 +
 libcloud/test/storage/test_digitalocean_spaces.py | 10 +++++++++-
 4 files changed, 15 insertions(+), 2 deletions(-)


[libcloud] 02/04: Add a test case for valid regions for the DigitalOcean spaces driver.

Posted by to...@apache.org.
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 164036fb64ac4d9408e2c252abc427ee6fbfd03a
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sun Dec 13 12:00:53 2020 +0100

    Add a test case for valid regions for the DigitalOcean spaces driver.
---
 libcloud/test/storage/test_digitalocean_spaces.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/libcloud/test/storage/test_digitalocean_spaces.py b/libcloud/test/storage/test_digitalocean_spaces.py
index 34814c3..116d36a 100644
--- a/libcloud/test/storage/test_digitalocean_spaces.py
+++ b/libcloud/test/storage/test_digitalocean_spaces.py
@@ -22,7 +22,8 @@ from libcloud.storage.base import Container, Object
 from libcloud.storage.drivers.digitalocean_spaces import (
     DigitalOceanSpacesStorageDriver,
     DOSpacesConnectionAWS4,
-    DOSpacesConnectionAWS2)
+    DOSpacesConnectionAWS2,
+    DO_SPACES_HOSTS_BY_REGION)
 
 from libcloud.test import LibcloudTestCase
 from libcloud.test.secrets import STORAGE_S3_PARAMS
@@ -100,6 +101,13 @@ class DigitalOceanSpacesTests_v4(DigitalOceanSpacesTests):
         host = self.driver.connectionCls.host
         self.assertEqual(host, self.default_host)
 
+    def test_valid_regions(self):
+        for region, hostname in DO_SPACES_HOSTS_BY_REGION.items():
+            driver = self.driver_type(*self.driver_args,
+                                      region=region)
+            self.assertEqual(driver.connectionCls.host, hostname)
+            self.assertTrue(driver.connectionCls.host.startswith(region))
+
 
 class DigitalOceanSpacesDoubleInstanceTests(LibcloudTestCase):
     driver_type = DigitalOceanSpacesStorageDriver


[libcloud] 03/04: Add changelog entry.

Posted by to...@apache.org.
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 d6e2c00fbd4362f390c129f77788e6d987a887b7
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sun Dec 13 12:02:15 2020 +0100

    Add changelog entry.
---
 CHANGES.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CHANGES.rst b/CHANGES.rst
index 12bad4f..e4746fd 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -142,6 +142,10 @@ Storage
   (GITHUB-1509, GITHUB-1510)
   [Andy Spohn - @spohnan]
 
+- [DigitalOcean Spaces] Add support for sfo2 regon.
+  (GITHUB-1525)
+  [Cristian Rasch - @cristianrasch]
+
 DNS
 ~~~
 


[libcloud] 01/04: Storage: Add support for the SFO2 datacenter

Posted by to...@apache.org.
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 3c2c161736cd17bd2d151eb5e942aa27a3e27c84
Author: Cristian Rasch <cr...@fastmail.fm>
AuthorDate: Thu Dec 10 11:18:13 2020 -0300

    Storage: Add support for the SFO2 datacenter
---
 libcloud/storage/drivers/digitalocean_spaces.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcloud/storage/drivers/digitalocean_spaces.py b/libcloud/storage/drivers/digitalocean_spaces.py
index fd96cab..bace4f1 100644
--- a/libcloud/storage/drivers/digitalocean_spaces.py
+++ b/libcloud/storage/drivers/digitalocean_spaces.py
@@ -24,6 +24,7 @@ __all__ = [
 
 DO_SPACES_HOSTS_BY_REGION = {'nyc3': 'nyc3.digitaloceanspaces.com',
                              'ams3': 'ams3.digitaloceanspaces.com',
+                             'sfo2': 'sfo2.digitaloceanspaces.com',
                              'sgp1': 'sgp1.digitaloceanspaces.com'}
 DO_SPACES_DEFAULT_REGION = 'nyc3'
 DEFAULT_SIGNATURE_VERSION = '2'


[libcloud] 04/04: Update tox version in Dockerfile.

Posted by to...@apache.org.
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 4f08bece7af4d6478b8dd271b394d564a05783b5
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sun Dec 13 12:14:24 2020 +0100

    Update tox version in Dockerfile.
---
 contrib/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/Dockerfile b/contrib/Dockerfile
index 8b85c78..584b0d6 100644
--- a/contrib/Dockerfile
+++ b/contrib/Dockerfile
@@ -49,7 +49,7 @@ RUN set -e && \
 RUN python3 -m pip install --upgrade pip
 
 RUN set -e && \
-    python3 -m pip install --no-cache-dir "tox==3.14.2"
+    python3 -m pip install --no-cache-dir "tox==3.20.1"
 
 COPY . /libcloud