]> git.proxmox.com Git - pve-firewall.git/blobdiff - test/test-basic1/tests
add regression test infrastructure
[pve-firewall.git] / test / test-basic1 / tests
diff --git a/test/test-basic1/tests b/test/test-basic1/tests
new file mode 100644 (file)
index 0000000..f70ca4a
--- /dev/null
@@ -0,0 +1,16 @@
+# example test rules
+
+{ from => 'ct200', to => 'host', dport => 22, action => 'ACCEPT' }
+{ from => 'ct200', to => 'host', dport => 23, action => 'DROP' }
+
+{ from => 'vm100', to => 'host', dport => 22, action => 'ACCEPT' }
+
+{ from => 'host' , to => 'ct200', dport => 80, action => 'DROP' }
+{ from => 'host' , to => 'ct200', dport => 22, action => 'ACCEPT' }
+
+{ from => 'host' , to => 'vm100', dport => 80, action => 'DROP' }
+
+{ from => 'ct200' , to => 'vm100', dport => 80, action => 'DROP' }
+
+{ from => 'vm100' , to => 'ct200', dport => 22, action => 'ACCEPT' }
+