summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Asir <tjeyasin@redhat.com>2015-02-04 00:50:02 +0530
committerTimothy Asir <tim.gluster@gmail.com>2015-02-03 22:02:51 -0800
commit75ec853fc15780c5e00f2211cb0b095e3be7e48f (patch)
tree805730a05bac41dac608a49b2eb598724483eb75
parente50562c747d951b2b7225819d2bfdc0ae38aaa44 (diff)
fix unit test error for network.pyv1.0.0
Change-Id: I9eae0c1857ab0a0c7c47123aeef8c39696f014a0 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/9570 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Tested-by: Timothy Asir <tim.gluster@gmail.com>
-rw-r--r--tests/test_network.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_network.py b/tests/test_network.py
index 13a5925..85535b3 100644
--- a/tests/test_network.py
+++ b/tests/test_network.py
@@ -97,7 +97,7 @@ interfaces = {'em1': {'flags': None, 'ipaddr': None},
class networkTests(TestCaseBase):
@mock.patch('plugins.network._getNetworkInterfaces')
def test_network_default(self, _getNetworkInterfaces_mock):
- expected = (0, "OK: tun0:UP,virbr0:UP,enp0s29u1u2:UP |"
+ expected = (0, "OK: tun0:UP,virbr0:DOWN,enp0s29u1u2:UP |"
"tun0.rxpck=0.10 tun0.txpck=0.08 "
"tun0.rxkB=0.01 tun0.txkB=0.01 "
"virbr0.rxpck=0.00 virbr0.txpck=0.00 "
@@ -112,7 +112,7 @@ class networkTests(TestCaseBase):
@mock.patch('plugins.network._getNetworkInterfaces')
def test_network_all(self, _getNetworkInterfaces_mock):
expected = (0, "OK: tun0:UP,wlp3s0:DOWN,lo:UP,virbr0-nic:DOWN,"
- "virbr0:UP,enp0s29u1u2:UP,em1:DOWN |"
+ "virbr0:DOWN,enp0s29u1u2:UP,em1:DOWN |"
"tun0.rxpck=0.10 tun0.txpck=0.08 "
"tun0.rxkB=0.01 tun0.txkB=0.01 "
"wlp3s0.rxpck=0.00 wlp3s0.txpck=0.00 "
@@ -146,7 +146,7 @@ class networkTests(TestCaseBase):
@mock.patch('plugins.network._getNetworkInterfaces')
def test_network_excludes(self, _getNetworkInterfaces_mock):
- expected = (0, "OK: virbr0:UP,enp0s29u1u2:UP |"
+ expected = (0, "OK: virbr0:DOWN,enp0s29u1u2:UP |"
"virbr0.rxpck=0.00 virbr0.txpck=0.00 "
"virbr0.rxkB=0.00 virbr0.txkB=0.00 "
"enp0s29u1u2.rxpck=1.15 enp0s29u1u2.txpck=1.65 "