summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-08-29 11:37:39 +0200
committerFlorian Westphal <fw@strlen.de>2018-08-29 23:53:48 +0200
commit92029c1282958aad13eb8602c67b73caf2a08a09 (patch)
treebff7a62d56ba4fb33d3a44adcbfac1d3b726f95c /tests
parent176d9ad8c351cff9f0c21da5b5f2848e4c77b249 (diff)
src: osf: add json support
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/py/inet/osf.t.json66
1 files changed, 66 insertions, 0 deletions
diff --git a/tests/py/inet/osf.t.json b/tests/py/inet/osf.t.json
new file mode 100644
index 00000000..10fb68c1
--- /dev/null
+++ b/tests/py/inet/osf.t.json
@@ -0,0 +1,66 @@
+# osf name "Linux"
+[
+ {
+ "match": {
+ "left": {
+ "osf": {
+ "key": "name"
+ }
+ },
+ "right": "Linux"
+ }
+ }
+]
+
+# osf name { "Windows", "MacOs" }
+[
+ {
+ "match": {
+ "left": {
+ "osf": {
+ "key": "name"
+ }
+ },
+ "right": {
+ "set": [
+ "MacOs",
+ "Windows"
+ ]
+ }
+ }
+ }
+]
+
+# ct mark set osf name map { "Windows" : 0x00000001, "MacOs" : 0x00000002 }
+[
+ {
+ "mangle": {
+ "left": {
+ "ct": {
+ "key": "mark"
+ }
+ },
+ "right": {
+ "map": {
+ "left": {
+ "osf": {
+ "key": "name"
+ }
+ },
+ "right": {
+ "set": [
+ [
+ "MacOs",
+ 2
+ ],
+ [
+ "Windows",
+ 1
+ ]
+ ]
+ }
+ }
+ }
+ }
+ }
+]