git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the endpoint_ip and endpoint_prefix attributes of TAP/TUN endpoints for ip...
[nepi.git]
/
test
/
resources
/
planetlab
/
tap.py
diff --git
a/test/resources/planetlab/tap.py
b/test/resources/planetlab/tap.py
index
5b63fab
..
d52de03
100755
(executable)
--- a/
test/resources/planetlab/tap.py
+++ b/
test/resources/planetlab/tap.py
@@
-40,7
+40,7
@@
class PlanetlabTapTestCase(unittest.TestCase):
@skipIfNotAlive
def t_tap_create(self, host, user, identity):
@skipIfNotAlive
def t_tap_create(self, host, user, identity):
- ec = ExperimentController(exp_id
=
"test-tap-create")
+ ec = ExperimentController(exp_id
=
"test-tap-create")
node = ec.register_resource("planetlab::Node")
ec.set(node, "hostname", host)
node = ec.register_resource("planetlab::Node")
ec.set(node, "hostname", host)
@@
-50,8
+50,8
@@
class PlanetlabTapTestCase(unittest.TestCase):
ec.set(node, "cleanProcesses", True)
tap = ec.register_resource("planetlab::Tap")
ec.set(node, "cleanProcesses", True)
tap = ec.register_resource("planetlab::Tap")
- ec.set(tap, "
endpoint_
ip", "%s.1" % self.netblock)
- ec.set(tap, "
endpoint_prefix", 24
)
+ ec.set(tap, "ip", "%s.1" % self.netblock)
+ ec.set(tap, "
prefix", "24"
)
ec.register_connection(tap, node)
app = ec.register_resource("linux::Application")
ec.register_connection(tap, node)
app = ec.register_resource("linux::Application")
@@
-63,7
+63,7
@@
class PlanetlabTapTestCase(unittest.TestCase):
ec.wait_finished(app)
ec.wait_finished(app)
- ping = ec.trace(app,
'stdout'
)
+ ping = ec.trace(app,
"stdout"
)
expected = """3 packets transmitted, 3 received, 0% packet loss"""
self.assertTrue(ping.find(expected) > -1)
expected = """3 packets transmitted, 3 received, 0% packet loss"""
self.assertTrue(ping.find(expected) > -1)