Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
IPSEC Tests: to per-test setup and tearDown
[vpp.git]
/
test
/
test_ipsec_tun_if_esp.py
diff --git
a/test/test_ipsec_tun_if_esp.py
b/test/test_ipsec_tun_if_esp.py
index
e10e2a3
..
561f109
100644
(file)
--- a/
test/test_ipsec_tun_if_esp.py
+++ b/
test/test_ipsec_tun_if_esp.py
@@
-11,12
+11,11
@@
class TemplateIpsecTunIfEsp(TemplateIpsec):
encryption_type = ESP
encryption_type = ESP
- @classmethod
- def setUpClass(cls):
- super(TemplateIpsecTunIfEsp, cls).setUpClass()
- cls.tun_if = cls.pg0
-
def setUp(self):
def setUp(self):
+ super(TemplateIpsecTunIfEsp, self).setUp()
+
+ self.tun_if = self.pg0
+
p = self.ipv4_params
tun_if = VppIpsecTunInterface(self, self.pg0, p.vpp_tun_spi,
p.scapy_tun_spi, p.crypt_algo_vpp_id,
p = self.ipv4_params
tun_if = VppIpsecTunInterface(self, self.pg0, p.vpp_tun_spi,
p.scapy_tun_spi, p.crypt_algo_vpp_id,