X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fovsdb-execution.at;h=394fcba721c26042744878acd99befbfa99fa6e2;hb=d1b680c61626595b2777f4bf25997a9178acb60c;hp=dc4f3e883cc313948ca1608b95f376bf255ebf2f;hpb=5f55c39b21e69025045437ffbd3bb98fe6ce2e89;p=openvswitch diff --git a/tests/ovsdb-execution.at b/tests/ovsdb-execution.at index dc4f3e88..394fcba7 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], @@ -569,7 +580,7 @@ OVSDB_CHECK_EXECUTION([referential integrity -- mutual references], "table": "b", "where": [["b", "==", 1]]}]]]], [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]}] -[{"uuid":["uuid","<2>"]},{"details":"reference to nonexistent row <3>","error":"referential integrity violation"}] +[{"uuid":["uuid","<2>"]},{"details":"Table a column a2b row <2> references nonexistent row <3> in table b.","error":"referential integrity violation"}] [{"count":1},{"details":"cannot delete a row <0> because of 1 remaining reference(s)","error":"referential integrity violation"}] [{"count":1},{"details":"cannot delete b row <1> because of 1 remaining reference(s)","error":"referential integrity violation"}] [{"count":1},{"details":"cannot delete a row <0> because of 1 remaining reference(s)","error":"referential integrity violation"}] @@ -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",