tests: remove iptables_header content in test_622_qdb_keyboard_layout
This commit is contained in:
parent
e667639914
commit
5ee97f4eeb
@ -1492,25 +1492,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
|
|||||||
mock_qubesdb.rm.side_effect = test_qubesdb.rm
|
mock_qubesdb.rm.side_effect = test_qubesdb.rm
|
||||||
vm.create_qdb_entries()
|
vm.create_qdb_entries()
|
||||||
self.maxDiff = None
|
self.maxDiff = None
|
||||||
|
|
||||||
iptables_header = (
|
|
||||||
'# Generated by Qubes Core on {}\n'
|
|
||||||
'*filter\n'
|
|
||||||
':INPUT DROP [0:0]\n'
|
|
||||||
':FORWARD DROP [0:0]\n'
|
|
||||||
':OUTPUT ACCEPT [0:0]\n'
|
|
||||||
'-A INPUT -i vif+ -p udp -m udp --dport 68 -j DROP\n'
|
|
||||||
'-A INPUT -m conntrack --ctstate '
|
|
||||||
'RELATED,ESTABLISHED -j ACCEPT\n'
|
|
||||||
'-A INPUT -p icmp -j ACCEPT\n'
|
|
||||||
'-A INPUT -i lo -j ACCEPT\n'
|
|
||||||
'-A INPUT -j REJECT --reject-with '
|
|
||||||
'icmp-host-prohibited\n'
|
|
||||||
'-A FORWARD -m conntrack --ctstate '
|
|
||||||
'RELATED,ESTABLISHED -j ACCEPT\n'
|
|
||||||
'-A FORWARD -i vif+ -o vif+ -j DROP\n'
|
|
||||||
'COMMIT\n'.format(datetime.datetime.now().ctime()))
|
|
||||||
|
|
||||||
self.assertEqual(test_qubesdb.data, {
|
self.assertEqual(test_qubesdb.data, {
|
||||||
'/name': 'test-inst-appvm',
|
'/name': 'test-inst-appvm',
|
||||||
'/type': 'AppVM',
|
'/type': 'AppVM',
|
||||||
@ -1528,7 +1509,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
|
|||||||
'/qubes-usb-devices': '',
|
'/qubes-usb-devices': '',
|
||||||
'/qubes-iptables': 'reload',
|
'/qubes-iptables': 'reload',
|
||||||
'/qubes-iptables-error': '',
|
'/qubes-iptables-error': '',
|
||||||
'/qubes-iptables-header': iptables_header,
|
'/qubes-iptables-header': unittest.mock.ANY,
|
||||||
'/qubes-service/qubes-update-check': '0',
|
'/qubes-service/qubes-update-check': '0',
|
||||||
'/qubes-service/meminfo-writer': '1',
|
'/qubes-service/meminfo-writer': '1',
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user