X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fovsdb-execution.at;fp=tests%2Fovsdb-execution.at;h=f98519fafa490faa6b29a15ad963e5fd130ebffb;hb=19b48a816b9af445ff71269ba7219b64f763ca18;hp=47be1935fe897c1ce84aa9efe67bb632166552d3;hpb=1dd5b71d14b5c5360f97071041ec1bdd1f8d2445;p=sliver-openvswitch.git diff --git a/tests/ovsdb-execution.at b/tests/ovsdb-execution.at index 47be1935f..f98519faf 100644 --- a/tests/ovsdb-execution.at +++ b/tests/ovsdb-execution.at @@ -96,6 +96,20 @@ OVSDB_CHECK_EXECUTION([named-uuid must be ], [[[{"details":"named-uuid string is not a valid ","error":"syntax error","syntax":"[\"named-uuid\",\"0\"]"}] ]]) +OVSDB_CHECK_EXECUTION([duplicate uuid-name not allowed], + [ORDINAL_SCHEMA], + [[[["ordinals", + {"op": "insert", + "table": "ordinals", + "row": {}, + "uuid-name": "x"}, + {"op": "insert", + "table": "ordinals", + "row": {}, + "uuid-name": "x"}]]]], + [[[{"uuid":["uuid","<0>"]},{"details":"This \"uuid-name\" appeared on an earlier \"insert\" operation.","error":"duplicate uuid-name","syntax":"\"x\""}] +]]) + m4_define([EXECUTION_EXAMPLES], [ dnl At one point the "commit" code ignored new rows with all-default values, dnl so this checks for that problem.