X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fovsdb-execution.at;h=bbdcbb505d1425365db53e6a31d37325928a37dd;hb=2736b84e2348090d4756f987db37aa7ddfcb50e0;hp=dc4f3e883cc313948ca1608b95f376bf255ebf2f;hpb=5f55c39b21e69025045437ffbd3bb98fe6ce2e89;p=openvswitch diff --git a/tests/ovsdb-execution.at b/tests/ovsdb-execution.at index dc4f3e88..bbdcbb50 100644 --- a/tests/ovsdb-execution.at +++ b/tests/ovsdb-execution.at @@ -28,7 +28,8 @@ m4_define([CONSTRAINT_SCHEMA], "constrained": { "columns": { "positive": {"type": {"key": {"type": "integer", - "minInteger": 1}}}}}}}]]) + "minInteger": 1}}}}, + "maxRows": 1}}}]]) m4_define([WEAK_SCHEMA], [[{"name": "weak", @@ -462,10 +463,20 @@ OVSDB_CHECK_EXECUTION([insert and update constraints], {"op": "update", "table": "constrained", "where": [], - "row": {"positive": -2}}]]]], + "row": {"positive": -2}}]]], + [[["constraints", + {"op": "insert", + "table": "constrained", + "row": {"positive": 1}}]]], + [[["constraints", + {"op": "insert", + "table": "constrained", + "row": {"positive": 2}}]]]], [[[{"details":"0 is less than minimum allowed value 1","error":"constraint violation"}] [{"details":"-1 is less than minimum allowed value 1","error":"constraint violation"}] [{"details":"-2 is less than minimum allowed value 1","error":"constraint violation"}] +[{"uuid":["uuid","<0>"]}] +[{"uuid":["uuid","<1>"]},{"details":"transaction causes \"constrained\" table to contain 2 rows, greater than the schema-defined limit of 1 row(s)","error":"constraint violation"}] ]]) OVSDB_CHECK_EXECUTION([referential integrity -- simple],