|
|
@ -87,8 +87,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 2)
|
|
|
|
self.assertEqual(run_command.call_count, 2)
|
|
|
|
# import pdb
|
|
|
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
'/sbin/iptables',
|
|
|
|
'/sbin/iptables',
|
|
|
|
'-t',
|
|
|
|
'-t',
|
|
|
@ -123,8 +121,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
self.assertFalse(result.exception.args[0]['changed'])
|
|
|
|
self.assertFalse(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
# import pdb
|
|
|
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
'/sbin/iptables',
|
|
|
|
'/sbin/iptables',
|
|
|
|
'-t',
|
|
|
|
'-t',
|
|
|
@ -151,8 +147,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
# import pdb
|
|
|
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
'/sbin/iptables',
|
|
|
|
'/sbin/iptables',
|
|
|
|
'-t',
|
|
|
|
'-t',
|
|
|
@ -188,8 +182,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
self.assertEqual(run_command.call_count, 1)
|
|
|
|
# import pdb
|
|
|
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
'/sbin/iptables',
|
|
|
|
'/sbin/iptables',
|
|
|
|
'-t',
|
|
|
|
'-t',
|
|
|
@ -226,8 +218,6 @@ class TestIptables(ModuleTestCase):
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
self.assertTrue(result.exception.args[0]['changed'])
|
|
|
|
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_count, 2)
|
|
|
|
self.assertEqual(run_command.call_count, 2)
|
|
|
|
# import pdb
|
|
|
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
self.assertEqual(run_command.call_args_list[0][0][0], [
|
|
|
|
'/sbin/iptables',
|
|
|
|
'/sbin/iptables',
|
|
|
|
'-t',
|
|
|
|
'-t',
|
|
|
|