X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fovsdb-execution.at;h=a6f14355f6f5b19095b246486c5321528ffffb7e;hb=169e3808f7c510a048589d8e658336919079a6a0;hp=dc4f3e883cc313948ca1608b95f376bf255ebf2f;hpb=7360012bdf64effd898242a58634267e203a2795;p=openvswitch diff --git a/tests/ovsdb-execution.at b/tests/ovsdb-execution.at index dc4f3e88..a6f14355 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], @@ -633,7 +644,8 @@ OVSDB_CHECK_EXECUTION([weak references], [[["weak", {"op": "insert", "table": "a", - "row": {}}]]], + "row": {"a2a1": ["named-uuid", "me"]}, + "uuid-name": "me"}]]], dnl Try to delete row from "b" that is referred to by weak references dnl from "a" table "a2b" column that requires exactly one value. [[["weak",