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 2024/04/16 17:16:53 UTC

(libcloud) branch dependabot/pip/pytest-8.0.2 updated (b78b55ba2 -> bb23d9fbf)

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

tomaz pushed a change to branch dependabot/pip/pytest-8.0.2
in repository https://gitbox.apache.org/repos/asf/libcloud.git


 discard b78b55ba2 Additional changes to the DigitalOcean tests to avoid cross test pollution and related failures when running tests in parallel.
     new bb23d9fbf Additional changes to the DigitalOcean tests to avoid cross test pollution and related failures when running tests in parallel.

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (b78b55ba2)
            \
             N -- N -- N   refs/heads/dependabot/pip/pytest-8.0.2 (bb23d9fbf)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 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:
 libcloud/test/common/test_digitalocean_v2.py | 2 ++
 1 file changed, 2 insertions(+)


(libcloud) 01/01: Additional changes to the DigitalOcean tests to avoid cross test pollution and related failures when running tests in parallel.

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch dependabot/pip/pytest-8.0.2
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit bb23d9fbff3722d94de5348b538ebbcbd3f723dc
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Tue Apr 16 19:06:09 2024 +0200

    Additional changes to the DigitalOcean tests to avoid cross test
    pollution and related failures when running tests in parallel.
---
 libcloud/test/common/test_digitalocean_v2.py  | 2 ++
 libcloud/test/compute/test_digitalocean_v2.py | 5 ++++-
 libcloud/test/dns/test_digitalocean.py        | 4 ++++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/libcloud/test/common/test_digitalocean_v2.py b/libcloud/test/common/test_digitalocean_v2.py
index 90fc365f3..b3b647484 100644
--- a/libcloud/test/common/test_digitalocean_v2.py
+++ b/libcloud/test/common/test_digitalocean_v2.py
@@ -22,12 +22,14 @@ from libcloud.common.types import InvalidCredsError
 from libcloud.test.secrets import DIGITALOCEAN_v2_PARAMS
 from libcloud.test.file_fixtures import FileFixtures
 from libcloud.common.digitalocean import DigitalOceanBaseDriver
+from libcloud.common.digitalocean import DigitalOcean_v2_BaseDriver
 from libcloud.dns.drivers.digitalocean import DigitalOceanDNSDriver
 
 
 class DigitalOceanTests(LibcloudTestCase):
     def setUp(self):
         DigitalOceanBaseDriver.connectionCls.conn_class = DigitalOceanCommonMockHttp
+        DigitalOcean_v2_BaseDriver.connectionCls.conn_class = DigitalOceanCommonMockHttp
         DigitalOceanCommonMockHttp.type = None
         self.driver = DigitalOceanBaseDriver(*DIGITALOCEAN_v2_PARAMS)
 
diff --git a/libcloud/test/compute/test_digitalocean_v2.py b/libcloud/test/compute/test_digitalocean_v2.py
index e5593284d..c58d5a698 100644
--- a/libcloud/test/compute/test_digitalocean_v2.py
+++ b/libcloud/test/compute/test_digitalocean_v2.py
@@ -24,7 +24,7 @@ from libcloud.compute.base import NodeImage
 from libcloud.test.secrets import DIGITALOCEAN_v1_PARAMS, DIGITALOCEAN_v2_PARAMS
 from libcloud.utils.iso8601 import UTC
 from libcloud.test.file_fixtures import ComputeFileFixtures
-from libcloud.common.digitalocean import DigitalOcean_v1_Error
+from libcloud.common.digitalocean import DigitalOcean_v1_Error, DigitalOceanBaseDriver
 from libcloud.compute.drivers.digitalocean import DigitalOceanNodeDriver
 
 try:
@@ -36,6 +36,7 @@ except ImportError:
 # class DigitalOceanTests(unittest.TestCase, TestCaseMixin):
 class DigitalOcean_v2_Tests(LibcloudTestCase):
     def setUp(self):
+        DigitalOceanBaseDriver.connectionCls.conn_class = DigitalOceanComputeMockHttp
         DigitalOceanNodeDriver.connectionCls.conn_class = DigitalOceanComputeMockHttp
         DigitalOceanComputeMockHttp.type = None
         self.driver = DigitalOceanNodeDriver(*DIGITALOCEAN_v2_PARAMS)
@@ -43,6 +44,8 @@ class DigitalOcean_v2_Tests(LibcloudTestCase):
     def tearDown(self):
         LibcloudConnection.type = None
         DigitalOceanComputeMockHttp.type = None
+        DigitalOceanBaseDriver.connectionCls.conn_class = LibcloudConnection
+        DigitalOceanNodeDriver.connectionCls.conn_class = LibcloudConnection
 
     def test_v1_Error(self):
         self.assertRaises(
diff --git a/libcloud/test/dns/test_digitalocean.py b/libcloud/test/dns/test_digitalocean.py
index e65435d45..ed92e59bb 100644
--- a/libcloud/test/dns/test_digitalocean.py
+++ b/libcloud/test/dns/test_digitalocean.py
@@ -21,11 +21,13 @@ from libcloud.dns.types import RecordType
 from libcloud.utils.py3 import httplib
 from libcloud.test.secrets import DIGITALOCEAN_v2_PARAMS
 from libcloud.test.file_fixtures import DNSFileFixtures
+from libcloud.common.digitalocean import DigitalOceanBaseDriver
 from libcloud.dns.drivers.digitalocean import DigitalOceanDNSDriver
 
 
 class DigitalOceanDNSTests(LibcloudTestCase):
     def setUp(self):
+        DigitalOceanBaseDriver.connectionCls.conn_class = DigitalOceanDNSMockHttp
         DigitalOceanDNSDriver.connectionCls.conn_class = DigitalOceanDNSMockHttp
         DigitalOceanDNSMockHttp.type = None
         self.driver = DigitalOceanDNSDriver(*DIGITALOCEAN_v2_PARAMS)
@@ -33,6 +35,8 @@ class DigitalOceanDNSTests(LibcloudTestCase):
     def tearDown(self):
         LibcloudConnection.type = None
         DigitalOceanDNSMockHttp.type = None
+        DigitalOceanBaseDriver.connectionCls.conn_class = LibcloudConnection
+        DigitalOceanDNSDriver.connectionCls.conn_class = LibcloudConnection
 
     def test_list_zones(self):
         zones = self.driver.list_zones()