summaryrefslogtreecommitdiff
path: root/src/leap/services/eip/tests
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-05-29 15:20:32 -0300
committerTomás Touceda <chiiph@leap.se>2013-05-29 15:20:32 -0300
commit1f3573503be0cf7d61fa80ea866b8bef4a57b111 (patch)
treeab93803d57673f3dce633472baf20dc353c00a44 /src/leap/services/eip/tests
parent7780685a8beb8fbba54d5c366905d9ece5569008 (diff)
parent884d0e0f4dbba34b6f6f5afe6e27390a7606a7fa (diff)
Merge remote-tracking branch 'kali/feature/ci-ready' into develop
Diffstat (limited to 'src/leap/services/eip/tests')
-rw-r--r--src/leap/services/eip/tests/test_eipconfig.py25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/leap/services/eip/tests/test_eipconfig.py b/src/leap/services/eip/tests/test_eipconfig.py
index ce04c2fc..0bd19d5e 100644
--- a/src/leap/services/eip/tests/test_eipconfig.py
+++ b/src/leap/services/eip/tests/test_eipconfig.py
@@ -97,10 +97,12 @@ class EIPConfigTest(BaseLeapTest):
"""
self.write_config(sample_config)
config = EIPConfig()
- self.assertRaises(
- AssertionError,
- config.get_clusters)
- self.assertTrue(config.load(self.configfile))
+ #self.assertRaises(
+ #AssertionError,
+ #config.get_clusters)
+
+ self.assertTrue(config.load(
+ self.configfile, relative=False))
self.assertEqual(
config.get_openvpn_configuration(),
sample_config["openvpn_configuration"])
@@ -123,7 +125,8 @@ class EIPConfigTest(BaseLeapTest):
data['openvpn_configuration']["extra_param"] = "FOO"
self.write_config(data)
config = EIPConfig()
- config.load(self.configfile)
+ config.load(
+ self.configfile, relative=False)
self.assertEqual(
config.get_openvpn_configuration(),
sample_config["openvpn_configuration"])
@@ -133,7 +136,7 @@ class EIPConfigTest(BaseLeapTest):
data['openvpn_configuration']["auth"] = "SHA1;"
self.write_config(data)
config = EIPConfig()
- config.load(self.configfile)
+ config.load(self.configfile, relative=False)
self.assertEqual(
config.get_openvpn_configuration(),
sample_config["openvpn_configuration"])
@@ -143,7 +146,7 @@ class EIPConfigTest(BaseLeapTest):
data['openvpn_configuration']["auth"] = "SHA1>`&|"
self.write_config(data)
config = EIPConfig()
- config.load(self.configfile)
+ config.load(self.configfile, relative=False)
self.assertEqual(
config.get_openvpn_configuration(),
sample_config["openvpn_configuration"])
@@ -153,7 +156,7 @@ class EIPConfigTest(BaseLeapTest):
data['openvpn_configuration']["auth"] = "shaSHA1"
self.write_config(data)
config = EIPConfig()
- config.load(self.configfile)
+ config.load(self.configfile, relative=False)
self.assertEqual(
config.get_openvpn_configuration(),
sample_config["openvpn_configuration"])
@@ -163,7 +166,7 @@ class EIPConfigTest(BaseLeapTest):
data['openvpn_configuration']["auth"] = "sha&*!@#;"
self.write_config(data)
config = EIPConfig()
- config.load(self.configfile)
+ config.load(self.configfile, relative=False)
self.assertEqual(
config.get_openvpn_configuration(),
{'cipher': 'AES-128-CBC',
@@ -174,7 +177,7 @@ class EIPConfigTest(BaseLeapTest):
data['gateways'][0]["ip_address"] = "11.22.33.44;"
self.write_config(data)
config = EIPConfig()
- config.load(self.configfile)
+ config.load(self.configfile, relative=False)
self.assertEqual(
config.get_gateway_ip(),
None)
@@ -183,7 +186,7 @@ class EIPConfigTest(BaseLeapTest):
data['gateways'][0]["ip_address"] = "11.22.33.44`"
self.write_config(data)
config = EIPConfig()
- config.load(self.configfile)
+ config.load(self.configfile, relative=False)
self.assertEqual(
config.get_gateway_ip(),
None)