Set MTU=1442 in ansible_utils_tests.py
[snaps.git] / snaps / provisioning / tests / ansible_utils_tests.py
index 209b1e0..b6ace31 100644 (file)
@@ -91,7 +91,7 @@ class AnsibleProvisioningTests(OSIntegrationTestCase):
             self.pub_net_config = openstack_tests.get_pub_net_config(
                 project_name=self.os_creds.project_name,
                 net_name=guid + '-pub-net',
-                mtu=1450, subnet_name=guid + '-pub-subnet',
+                mtu=1442, subnet_name=guid + '-pub-subnet',
                 router_name=guid + '-pub-router',
                 external_net=self.ext_net_name)
 
@@ -265,8 +265,7 @@ class AnsibleProvisioningTests(OSIntegrationTestCase):
 
         relative_pb_path = pkg_resources.resource_filename(
             'snaps.provisioning.tests.playbooks', 'simple_playbook.yml')
-        retval = self.inst_creator.apply_ansible_playbook(relative_pb_path)
-        self.assertEqual(0, retval)
+        self.inst_creator.apply_ansible_playbook(relative_pb_path)
 
         ssh = ansible_utils.ssh_client(
             ip, user, private_key_filepath=priv_key,
@@ -332,9 +331,8 @@ class AnsibleProvisioningTests(OSIntegrationTestCase):
         relative_pb_path = pkg_resources.resource_filename(
             'snaps.provisioning.tests.playbooks',
             'template_playbook.yml')
-        retval = self.inst_creator.apply_ansible_playbook(
+        self.inst_creator.apply_ansible_playbook(
             relative_pb_path, variables={'name': 'Foo'})
-        self.assertEqual(0, retval)
 
         ssh = ansible_utils.ssh_client(
             ip, user, private_key_filepath=priv_key,