Assaf Muller has posted comments on this change.
Change subject: Functional Tests [3/3]: Added static source routing functional
test
......................................................................
Patch Set 5:
(2 comments)
....................................................
File tests/functional/networkTests.py
Line 1047: rules = [Rule(source=IP_NETWORK_AND_CIDR,
table=IP_TABLE),
Line 1048: Rule(destination=IP_NETWORK_AND_CIDR,
table=IP_TABLE,
Line 1049: srcDevice=deviceName)]
Line 1050:
Line 1051: for route in routes:
Your suggestion requires implementing ipwrapper.getValidRoutes and rules, which
would use the current "_getValidEntries" function, but would then make
ipwrapper.ruleExists and routeExists redundant. That'd make the previous patch
redundant as well, which on one hand is awesome, but on the other hand it'd be
a shame because we'd get rid of two useful functions that have functional tests
coverage. I expect ruleExists and routeExists to be used in the future.
Line 1052: self.assertTrue(routeExists(route))
Line 1053: for rule in rules:
Line 1054: self.assertTrue(ruleExists(rule))
Line 1055:
Line 1058: {}, {'connectivityCheck': False})
Line 1059: self.assertEqual(status, SUCCESS, msg)
Line 1060:
Line 1061: # Assert that routes and rules don't exist
Line 1062: for route in routes:
Same as previous comment.
Line 1063: self.assertFalse(routeExists(route))
Line 1064: for rule in rules:
--
To view, visit http://gerrit.ovirt.org/18041
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I4188e6ee5daea12fbd35cb8e1c87782e9605c7cd
Gerrit-PatchSet: 5
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Assaf Muller <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Assaf Muller <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Giuseppe Vallarelli <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches