X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fovsdb-table.at;h=cf206c4237b38d6216727181d24987ac8af08e8f;hb=ee693ba0850c5201830f22c645f6c5a06fa4180e;hp=70f8ac252d206e70d73aad32febcd2da8cc515d9;hpb=991559357f6a03c3a5b70c053c8c2554aa8d5ee4;p=openvswitch diff --git a/tests/ovsdb-table.at b/tests/ovsdb-table.at index 70f8ac25..cf206c42 100644 --- a/tests/ovsdb-table.at +++ b/tests/ovsdb-table.at @@ -1,6 +1,6 @@ AT_BANNER([OVSDB -- tables]) -OVSDB_CHECK_POSITIVE_CPY([table with one column], +OVSDB_CHECK_POSITIVE_CPY([non-root table with one column], [[parse-table mytable '{"columns": {"name": {"type": "string"}}}']], [[{"columns":{"name":{"type":"string"}}}]]) @@ -10,6 +10,22 @@ OVSDB_CHECK_POSITIVE_CPY([immutable table with one column], "mutable": false}']], [[{"columns":{"name":{"type":"string"}},"mutable":false}]]) +OVSDB_CHECK_POSITIVE_CPY([root table with one column], + [[parse-table mytable \ + '{"columns": {"name": {"type": "string"}}, + "isRoot": true}']], + [[{"columns":{"name":{"type":"string"}},"isRoot":true}]]) + +OVSDB_CHECK_POSITIVE_CPY([non-root table with default_is_root=true], + [[parse-table mytable '{"columns": {"name": {"type": "string"}}}' true]], + [[{"columns":{"name":{"type":"string"}},"isRoot":false}]]) + +OVSDB_CHECK_POSITIVE_CPY([root table with default_is_root=true], + [[parse-table mytable \ + '{"columns": {"name": {"type": "string"}}, + "isRoot": true}' true]], + [[{"columns":{"name":{"type":"string"}}}]]) + OVSDB_CHECK_POSITIVE_CPY([table with maxRows of 2], [[parse-table mytable '{"columns": {"name": {"type": "string"}}, "maxRows": 2}']],