X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fovsdb-table.at;h=623dd6dd0d57e438f47314b9850b252337634be9;hb=2736b84e2348090d4756f987db37aa7ddfcb50e0;hp=ebc5992d7e1c0f6976f3effd84004b298f7c84dd;hpb=a4af00400a835eb87569ba40e21874c05e872c0f;p=openvswitch diff --git a/tests/ovsdb-table.at b/tests/ovsdb-table.at index ebc5992d..623dd6dd 100644 --- a/tests/ovsdb-table.at +++ b/tests/ovsdb-table.at @@ -10,11 +10,10 @@ OVSDB_CHECK_POSITIVE([immutable table with one column], "mutable": false}']], [[{"columns":{"name":{"type":"string"}},"mutable":false}]]) -OVSDB_CHECK_POSITIVE([table with comment], - [[parse-table mytable \ - '{"columns": {"name": {"type": "string"}}, - "comment": "description of table"}']], - [[{"columns":{"name":{"type":"string"}},"comment":"description of table"}]]) +OVSDB_CHECK_POSITIVE([table with maxRows of 2], + [[parse-table mytable '{"columns": {"name": {"type": "string"}}, + "maxRows": 2}']], + [[{"columns":{"name":{"type":"string"}},"maxRows":2}]]) OVSDB_CHECK_NEGATIVE([column names may not begin with _], [[parse-table mytable \ @@ -29,3 +28,8 @@ OVSDB_CHECK_NEGATIVE([table must have at least one column (1)], OVSDB_CHECK_NEGATIVE([table must have at least one column (2)], [[parse-table mytable '{"columns": {}}']], [[table must have at least one column]]) + +OVSDB_CHECK_NEGATIVE([table maxRows must be positive], + [[parse-table mytable '{"columns": {"name": {"type": "string"}}, + "maxRows": 0}']], + [[syntax "{"columns":{"name":{"type":"string"}},"maxRows":0}": syntax error: maxRows must be at least 1]])