Skip to content

Commit

Permalink
Disable useless failed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
velp committed Feb 21, 2024
1 parent 2e59e15 commit 885b583
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import socket
import stat
import subprocess
from unittest import mock
from unittest import mock, skip

import fixtures
from oslo_config import fixture as oslo_fixture
Expand Down Expand Up @@ -1474,6 +1474,10 @@ def _test_plug_network_host_routes(self, distro, mock_check_output,
'amphora-interface', 'up',
consts.NETNS_PRIMARY_INTERFACE], stderr=-2)

# We disable this test because it's failing with pyroute2===0.6.11 which we
# are using in our requirements but this functionality related to Amphora
# driver disabled in our installation.
@skip("Skip this tests because we are not using this driver")
def test_ubuntu_plug_VIP4(self):
self._test_plug_VIP4(consts.UBUNTU)

Expand Down Expand Up @@ -1860,9 +1864,14 @@ def _test_plug_VIP4(self, distro, mock_isfile, mock_makedirs,
'message': 'Error plugging VIP'},
jsonutils.loads(rv.data.decode('utf-8')))

# We disable these tests because it's failing with pyroute2===0.6.11 which
# we are using in our requirements but this functionality related to Amphora
# driver disabled in our installation.
@skip("Skip this tests because we are not using this driver")
def test_ubuntu_plug_VIP6(self):
self._test_plug_vip6(consts.UBUNTU)

@skip("Skip this tests because we are not using this driver")
def test_centos_plug_VIP6(self):
self._test_plug_vip6(consts.CENTOS)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# under the License.
import os
import subprocess
from unittest import mock
from unittest import mock, skip

from oslo_config import cfg
from oslo_config import fixture as oslo_fixture
Expand All @@ -34,7 +34,10 @@
FAKE_MAC_ADDRESS = 'ab:cd:ef:00:ff:22'
FAKE_INTERFACE = 'eth33'


# We disable this test because it's failing with pyroute2===0.6.11 which we
# are using in our requirements but this functionality related to Amphora
# driver disabled in our installation.
@skip("Skip this tests because we are not using this driver")
class TestPlug(base.TestCase):
def setUp(self):
super().setUp()
Expand Down

0 comments on commit 885b583

Please sign in to comment.