1 AT_BANNER([OVSDB -- execution])
3 m4_divert_push([PREPARE_TESTS])
12 "number": {"type": "integer"},
13 "name": {"type": "string"}},
14 "indexes": [["number"]]}},
16 "cksum": "12345678 9"}
20 constraint_schema () {
22 {"name": "constraints",
26 "a": {"type": "integer"},
27 "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
28 "min": 0, "max": "unlimited"}},
29 "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
30 "min": 0, "max": "unlimited"}}}},
33 "b": {"type": "integer"},
34 "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
35 "min": 0, "max": "unlimited"}},
36 "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
37 "min": 0, "max": "unlimited"}},
38 "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
41 "positive": {"type": {"key": {"type": "integer",
53 "a": {"type": "integer"},
54 "a2a": {"type": {"key": {"type": "uuid",
57 "min": 0, "max": "unlimited"}},
58 "a2a1": {"type": {"key": {"type": "uuid",
61 "a2b": {"type": {"key": {"type": "uuid",
63 "refType": "weak"}}}}},
66 "b": {"type": "integer"},
67 "b2a": {"type": {"key": {"type": "uuid",
70 "min": 0, "max": "unlimited"}}}}}}
80 "a": {"type": {"key": {"type": "uuid",
82 "min": 0, "max": "unlimited"}}},
86 "a": {"type": "integer"},
87 "a2a": {"type": {"key": {"type": "uuid",
89 "min": 0, "max": "unlimited"}},
90 "a2b": {"type": {"key": {"type": "uuid",
92 "min": 0, "max": "unlimited"}},
93 "wa2a": {"type": {"key": {"type": "uuid",
96 "min": 0, "max": "unlimited"}},
97 "wa2b": {"type": {"key": {"type": "uuid",
100 "min": 0, "max": "unlimited"}}}},
103 "b": {"type": "integer"},
104 "b2a": {"type": {"key": {"type": "uuid",
106 "min": 0, "max": "unlimited"}},
107 "wb2a": {"type": {"key": {"type": "uuid",
110 "min": 0, "max": "unlimited"}}},
115 immutable_schema () {
117 {"name": "immutable",
120 "columns": {"i": {"type": "integer", "mutable": false}}}}}
124 m4_divert_pop([PREPARE_TESTS])
126 # OVSDB_CHECK_EXECUTION(TITLE, SCHEMA, TRANSACTIONS, OUTPUT, [KEYWORDS])
128 # Runs "test-ovsdb execute" with the given SCHEMA and each of the
129 # TRANSACTIONS (which should be a quoted list of quoted strings).
131 # Checks that the overall output is OUTPUT, but UUIDs in the output
132 # are replaced by markers of the form <N> where N is a number. The
133 # first unique UUID is replaced by <0>, the next by <1>, and so on.
134 # If a given UUID appears more than once it is always replaced by the
137 # TITLE is provided to AT_SETUP and KEYWORDS to AT_KEYWORDS.
138 m4_define([OVSDB_CHECK_EXECUTION],
140 AT_KEYWORDS([ovsdb execute execution positive $5])
141 OVS_RUNDIR=`pwd`; export OVS_RUNDIR
142 AT_CHECK([test-ovsdb execute "`$2`" m4_foreach([txn], [$3], [ 'txn'])],
144 AT_CHECK([perl $srcdir/uuidfilt.pl stdout], [0], [$4])
147 OVSDB_CHECK_EXECUTION([uuid-name must be <id>],
153 "uuid-name": "0"}]]]],
154 [[[{"details":"Parsing ovsdb operation 1 of 1 failed: Type mismatch for member 'uuid-name'.","error":"syntax error","syntax":"{\"op\":\"insert\",\"row\":{},\"table\":\"a\",\"uuid-name\":\"0\"}"}]
157 OVSDB_CHECK_EXECUTION([named-uuid must be <id>],
162 "row": {"a2a": ["named-uuid", "0"]}}]]]],
163 [[[{"details":"named-uuid string is not a valid <id>","error":"syntax error","syntax":"[\"named-uuid\",\"0\"]"}]
166 OVSDB_CHECK_EXECUTION([duplicate uuid-name not allowed],
176 "uuid-name": "x"}]]]],
177 [[[{"uuid":["uuid","<0>"]},{"details":"This \"uuid-name\" appeared on an earlier \"insert\" operation.","error":"duplicate uuid-name","syntax":"\"x\""}]
180 m4_define([EXECUTION_EXAMPLES], [
181 dnl At one point the "commit" code ignored new rows with all-default values,
182 dnl so this checks for that problem.
183 OVSDB_CHECK_EXECUTION([insert default row, query table],
193 [[[{"uuid":["uuid","<0>"]}]
194 [{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<1>"],"name":"","number":0}]}]
197 OVSDB_CHECK_EXECUTION([insert row, query table],
202 "row": {"number": 0, "name": "zero"}}]]],
207 [[[{"uuid":["uuid","<0>"]}]
208 [{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<1>"],"name":"zero","number":0}]}]
211 OVSDB_CHECK_EXECUTION([insert rows, query by value],
216 "row": {"number": 0, "name": "zero"}}]]],
220 "row": {"number": 1, "name": "one"}}]]],
224 "where": [["name", "==", "zero"]]}]]],
228 "where": [["name", "==", "one"]]}]]]],
229 [[[{"uuid":["uuid","<0>"]}]
230 [{"uuid":["uuid","<1>"]}]
231 [{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<2>"],"name":"zero","number":0}]}]
232 [{"rows":[{"_uuid":["uuid","<1>"],"_version":["uuid","<3>"],"name":"one","number":1}]}]
235 OVSDB_CHECK_EXECUTION([insert rows, query by named-uuid],
240 "row": {"number": 0, "name": "zero"},
241 "uuid-name": "first"},
244 "row": {"number": 1, "name": "one"},
245 "uuid-name": "second"},
248 "where": [["_uuid", "==", ["named-uuid", "first"]]]},
251 "where": [["_uuid", "==", ["named-uuid", "second"]]]}]]]],
252 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<2>"],"name":"zero","number":0}]},{"rows":[{"_uuid":["uuid","<1>"],"_version":["uuid","<3>"],"name":"one","number":1}]}]
255 OVSDB_CHECK_EXECUTION([insert rows, update rows by value],
260 "row": {"number": 0, "name": "zero"},
261 "uuid-name": "first"}]]],
265 "row": {"number": 1, "name": "one"},
266 "uuid-name": "first"}]]],
270 "where": [["name", "==", "zero"]],
271 "row": {"name": "nought"}}]]],
276 "sort": ["number"]}]]]],
277 [[[{"uuid":["uuid","<0>"]}]
278 [{"uuid":["uuid","<1>"]}]
280 [{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<2>"],"name":"nought","number":0},{"_uuid":["uuid","<1>"],"_version":["uuid","<3>"],"name":"one","number":1}]}]
283 OVSDB_CHECK_EXECUTION([insert rows, mutate rows],
288 "row": {"number": 0, "name": "zero"},
289 "uuid-name": "first"}]]],
293 "row": {"number": 1, "name": "one"},
294 "uuid-name": "first"}]]],
298 "where": [["name", "==", "zero"]],
299 "mutations": [["number", "+=", 2]]}]]],
304 "sort": ["number"]}]]]],
305 [[[{"uuid":["uuid","<0>"]}]
306 [{"uuid":["uuid","<1>"]}]
308 [{"rows":[{"_uuid":["uuid","<1>"],"_version":["uuid","<2>"],"name":"one","number":1},{"_uuid":["uuid","<0>"],"_version":["uuid","<3>"],"name":"zero","number":2}]}]
311 OVSDB_CHECK_EXECUTION([insert rows, delete by named-uuid],
316 "row": {"number": 0, "name": "zero"},
317 "uuid-name": "first"},
320 "row": {"number": 1, "name": "one"},
321 "uuid-name": "second"},
324 "where": [["_uuid", "==", ["named-uuid", "first"]]]},
328 "columns": ["name","number"]}]]]],
329 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"count":1},{"rows":[{"name":"one","number":1}]}]
332 OVSDB_CHECK_EXECUTION([insert rows, delete rows by value],
337 "row": {"number": 0, "name": "zero"},
338 "uuid-name": "first"}]]],
342 "row": {"number": 1, "name": "one"},
343 "uuid-name": "first"}]]],
347 "where": [["name", "==", "zero"]]}]]],
352 [[[{"uuid":["uuid","<0>"]}]
353 [{"uuid":["uuid","<1>"]}]
355 [{"rows":[{"_uuid":["uuid","<1>"],"_version":["uuid","<2>"],"name":"one","number":1}]}]
358 OVSDB_CHECK_EXECUTION([insert rows, delete by (non-matching) value],
363 "row": {"number": 0, "name": "zero"},
364 "uuid-name": "first"}]]],
368 "row": {"number": 1, "name": "one"},
369 "uuid-name": "first"}]]],
373 "where": [["name", "==", "nought"]]}]]],
378 "sort": ["number"]}]]]],
379 [[[{"uuid":["uuid","<0>"]}]
380 [{"uuid":["uuid","<1>"]}]
382 [{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<2>"],"name":"zero","number":0},{"_uuid":["uuid","<1>"],"_version":["uuid","<3>"],"name":"one","number":1}]}]
385 OVSDB_CHECK_EXECUTION([insert rows, delete all],
390 "row": {"number": 0, "name": "zero"},
391 "uuid-name": "first"},
394 "row": {"number": 1, "name": "one"},
395 "uuid-name": "second"},
402 "columns": ["name","number"]}]]]],
403 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"count":2},{"rows":[]}]
406 OVSDB_CHECK_EXECUTION([insert row, query table, commit],
411 "row": {"number": 0, "name": "zero"}},
416 "durable": false}]]]],
417 [[[{"uuid":["uuid","<0>"]},{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<1>"],"name":"zero","number":0}]},{}]
420 OVSDB_CHECK_EXECUTION([insert row, query table, commit durably],
425 "row": {"number": 0, "name": "zero"}},
430 "durable": true}]]]],
431 [[[{"uuid":["uuid","<0>"]},{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<1>"],"name":"zero","number":0}]},{}]
434 OVSDB_CHECK_EXECUTION([equality wait with correct rows],
439 "row": {"number": 0, "name": "zero"}},
442 "row": {"number": 1, "name": "one"}},
447 "columns": ["name", "number"],
449 "rows": [{"name": "zero", "number": 0},
450 {"name": "one", "number": 1}]}]]]],
451 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{}]
454 OVSDB_CHECK_EXECUTION([equality wait with extra row],
459 "row": {"number": 0, "name": "zero"}},
462 "row": {"number": 1, "name": "one"}},
467 "columns": ["name", "number"],
469 "rows": [{"name": "zero", "number": 0},
470 {"name": "one", "number": 1},
471 {"name": "two", "number": 2}]}]]]],
472 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"details":"\"wait\" timed out","error":"timed out"}]
475 OVSDB_CHECK_EXECUTION([equality wait with missing row],
480 "row": {"number": 0, "name": "zero"}},
483 "row": {"number": 1, "name": "one"}},
488 "columns": ["name", "number"],
490 "rows": [{"name": "one", "number": 1}]}]]]],
491 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"details":"\"wait\" timed out","error":"timed out"}]
494 OVSDB_CHECK_EXECUTION([inequality wait with correct rows],
499 "row": {"number": 0, "name": "zero"}},
502 "row": {"number": 1, "name": "one"}},
507 "columns": ["name", "number"],
509 "rows": [{"name": "zero", "number": 0},
510 {"name": "one", "number": 1}]}]]]],
511 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"details":"\"wait\" timed out","error":"timed out"}]
514 OVSDB_CHECK_EXECUTION([inequality wait with extra row],
519 "row": {"number": 0, "name": "zero"}},
522 "row": {"number": 1, "name": "one"}},
527 "columns": ["name", "number"],
529 "rows": [{"name": "zero", "number": 0},
530 {"name": "one", "number": 1},
531 {"name": "two", "number": 2}]}]]]],
532 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{}]
535 OVSDB_CHECK_EXECUTION([inequality wait with missing row],
540 "row": {"number": 0, "name": "zero"}},
543 "row": {"number": 1, "name": "one"}},
548 "columns": ["name", "number"],
550 "rows": [{"name": "one", "number": 1}]}]]]],
551 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{}]
554 OVSDB_CHECK_EXECUTION([insert and update constraints],
558 "table": "constrained",
562 "table": "constrained",
563 "row": {"positive": -1}}]]],
566 "table": "constrained",
568 "row": {"positive": -2}}]]],
571 "table": "constrained",
572 "row": {"positive": 1}}]]],
575 "table": "constrained",
576 "row": {"positive": 2}}]]]],
577 [[[{"details":"0 is less than minimum allowed value 1","error":"constraint violation"}]
578 [{"details":"-1 is less than minimum allowed value 1","error":"constraint violation"}]
579 [{"details":"-2 is less than minimum allowed value 1","error":"constraint violation"}]
580 [{"uuid":["uuid","<0>"]}]
581 [{"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"}]
584 OVSDB_CHECK_EXECUTION([index uniqueness checking],
586 dnl Insert initial row.
590 "row": {"number": 1, "name": "one"}}]]],
591 dnl Try to insert row with identical value (fails).
595 "row": {"number": 1, "name": "another one"}}]]],
596 dnl Remove initial row and insert new row with identical value in a single
597 dnl transaction (succeeds).
601 "row": {"number": 1, "name": "another one"}},
604 "where": [["name", "==", "one"]]}]]],
605 dnl Remove row and insert two new rows with identical value in a single
606 dnl transaction (fails).
613 "row": {"number": 1, "name": "one"}},
616 "row": {"number": 1, "name": "still another one"}}]]],
617 dnl Add new row with different value (succeeds).
621 "row": {"number": 2, "name": "two"}}]]],
622 dnl Change rows so values collide (fails).
627 "row": {"number": 3}}]]],
628 dnl Swap rows' values (succeeds).
632 "where": [["number", "==", 1]],
633 "row": {"number": 2, "name": "old two"}},
636 "where": [["name", "==", "two"]],
637 "row": {"number": 1, "name": "old one"}}]]],
638 dnl Change all rows' values to values not used before and insert values that
639 dnl collide (only) with their previous values (succeeds).
644 "mutations": [["number", "*=", 10]]},
647 "row": {"number": 1, "name": "new one"}},
650 "row": {"number": 2, "name": "new two"}},
654 "columns": ["number", "name"],
655 "sort": ["number"]}]]]],
656 [[[{"uuid":["uuid","<0>"]}]
657 [{"uuid":["uuid","<1>"]},{"details":"Transaction causes multiple rows in \"ordinals\" table to have identical values (1) for index on column \"number\". First row, with UUID <0>, existed in the database before this transaction and was not modified by the transaction. Second row, with UUID <1>, was inserted by this transaction.","error":"constraint violation"}]
658 [{"uuid":["uuid","<2>"]},{"count":1}]
659 [{"count":1},{"uuid":["uuid","<3>"]},{"uuid":["uuid","<4>"]},{"details":"Transaction causes multiple rows in \"ordinals\" table to have identical values (1) for index on column \"number\". First row, with UUID <4>, was inserted by this transaction. Second row, with UUID <3>, was inserted by this transaction.","error":"constraint violation"}]
660 [{"uuid":["uuid","<5>"]}]
661 [{"count":2},{"details":"Transaction causes multiple rows in \"ordinals\" table to have identical values (3) for index on column \"number\". First row, with UUID <5>, had the following index values before the transaction: 2. Second row, with UUID <2>, had the following index values before the transaction: 1.","error":"constraint violation"}]
662 [{"count":1},{"count":1}]
663 [{"count":2},{"uuid":["uuid","<6>"]},{"uuid":["uuid","<7>"]},{"rows":[{"name":"new one","number":1},{"name":"new two","number":2},{"name":"old one","number":10},{"name":"old two","number":20}]}]
666 OVSDB_CHECK_EXECUTION([referential integrity -- simple],
672 "uuid-name": "brow"},
676 "a2b": ["set", [["named-uuid", "brow"]]]}},
680 "a2b": ["set", [["named-uuid", "brow"]]]}},
684 "a2b": ["set", [["named-uuid", "brow"]]]}}]]],
689 dnl Check that "mutate" honors number-of-elements constraints on sets and maps.
694 "mutations": [["x", "delete", 0]]}]]],
698 "where": [["a", "==", 0]]}]]],
706 "where": [["a", "==", 1]]}]]],
714 "where": [["a", "==", 2]]}]]],
719 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"uuid":["uuid","<2>"]},{"uuid":["uuid","<3>"]}]
720 [{"count":1},{"details":"cannot delete b row <0> because of 3 remaining reference(s)","error":"referential integrity violation"}]
721 [{"details":"Attempted to store 0 elements in set of 1 to 2 integers.","error":"constraint violation"}]
723 [{"count":1},{"details":"cannot delete b row <0> because of 2 remaining reference(s)","error":"referential integrity violation"}]
725 [{"count":1},{"details":"cannot delete b row <0> because of 1 remaining reference(s)","error":"referential integrity violation"}]
730 OVSDB_CHECK_EXECUTION([referential integrity -- mutual references],
736 "a2b": ["set", [["named-uuid", "row2"]]],
737 "a2a": ["set", [["named-uuid", "row1"]]]},
738 "uuid-name": "row1"},
742 "b2b": ["set", [["named-uuid", "row2"]]],
743 "b2a": ["set", [["named-uuid", "row1"]]]},
744 "uuid-name": "row2"}]]],
748 "row": {"a2b": ["set", [["uuid", "b516b960-5b19-4fc2-bb82-fe1cbd6d0241"]]]}}]]],
752 "where": [["a", "==", 0]]}]]],
756 "where": [["b", "==", 1]]}]]],
757 dnl Try the deletions again to make sure that the refcounts got rolled back.
761 "where": [["a", "==", 0]]}]]],
765 "where": [["b", "==", 1]]}]]],
769 "where": [["a", "==", 0]]},
772 "where": [["b", "==", 1]]}]]]],
773 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]}]
774 [{"uuid":["uuid","<2>"]},{"details":"Table a column a2b row <2> references nonexistent row <3> in table b.","error":"referential integrity violation"}]
775 [{"count":1},{"details":"cannot delete a row <0> because of 1 remaining reference(s)","error":"referential integrity violation"}]
776 [{"count":1},{"details":"cannot delete b row <1> because of 1 remaining reference(s)","error":"referential integrity violation"}]
777 [{"count":1},{"details":"cannot delete a row <0> because of 1 remaining reference(s)","error":"referential integrity violation"}]
778 [{"count":1},{"details":"cannot delete b row <1> because of 1 remaining reference(s)","error":"referential integrity violation"}]
779 [{"count":1},{"count":1}]
782 OVSDB_CHECK_EXECUTION([weak references],
788 "a2a": ["set", [["named-uuid", "row1"],
789 ["named-uuid", "row2"],
790 ["uuid", "0e767b36-6822-4044-8307-d58467e04669"]]],
791 "a2a1": ["named-uuid", "row1"],
792 "a2b": ["named-uuid", "row3"]},
793 "uuid-name": "row1"},
797 "a2a": ["set", [["named-uuid", "row1"],
798 ["named-uuid", "row2"]]],
799 "a2a1": ["named-uuid", "row2"],
800 "a2b": ["named-uuid", "row3"]},
801 "uuid-name": "row2"},
805 "a2a": ["set", [["named-uuid", "row1"],
806 ["named-uuid", "row2"]]],
807 "a2a1": ["named-uuid", "row2"],
808 "a2b": ["named-uuid", "row4"]}},
812 "b2a": ["named-uuid", "row1"]},
813 "uuid-name": "row3"},
817 "b2a": ["named-uuid", "row2"]},
818 "uuid-name": "row4"}]]],
819 dnl Check that the nonexistent row UUID we added to row a0 was deleted,
820 dnl and that other rows were inserted as requested.
825 "columns": ["_uuid", "a2a", "a2a1", "a2b"],
831 "columns": ["_uuid", "b", "b2a"],
833 dnl Try to insert invalid all-zeros weak reference (the default) into
834 dnl "a2b", which requires exactly one value.
838 "row": {"a2a1": ["named-uuid", "me"]},
839 "uuid-name": "me"}]]],
840 dnl Try to delete row from "b" that is referred to by weak references
841 dnl from "a" table "a2b" column that requires exactly one value.
845 "where": [["b", "==", 3]]}]]],
846 dnl Try to delete row from "a" that is referred to by weak references
847 dnl from "a" table "a2a1" column that requires exactly one value.
851 "where": [["a", "==", 1]]}]]],
852 dnl Delete the row that had the reference that caused the previous
853 dnl deletion to fail, then check that other rows are unchanged.
857 "where": [["a", "==", 2]]}]]],
862 "columns": ["_uuid", "a2a", "a2a1", "a2b"],
868 "columns": ["_uuid", "b", "b2a"],
870 dnl Delete row a0 then check that references to it were removed.
874 "where": [["a", "==", 0]]}]]],
879 "columns": ["_uuid", "a2a", "a2a1", "a2b"],
885 "columns": ["_uuid", "b", "b2a"],
887 dnl Delete row a1 then check that references to it were removed.
891 "where": [["a", "==", 1]]}]]],
896 "columns": ["_uuid", "a2a", "a2a1", "a2b"],
902 "columns": ["_uuid", "b", "b2a"],
904 [[[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"uuid":["uuid","<2>"]},{"uuid":["uuid","<3>"]},{"uuid":["uuid","<4>"]}]
905 [{"rows":[{"_uuid":["uuid","<0>"],"a2a":["set",[["uuid","<0>"],["uuid","<1>"]]],"a2a1":["uuid","<0>"],"a2b":["uuid","<3>"]},{"_uuid":["uuid","<1>"],"a2a":["set",[["uuid","<0>"],["uuid","<1>"]]],"a2a1":["uuid","<1>"],"a2b":["uuid","<3>"]},{"_uuid":["uuid","<2>"],"a2a":["set",[["uuid","<0>"],["uuid","<1>"]]],"a2a1":["uuid","<1>"],"a2b":["uuid","<4>"]}]}]
906 [{"rows":[{"_uuid":["uuid","<3>"],"b":2,"b2a":["uuid","<0>"]},{"_uuid":["uuid","<4>"],"b":3,"b2a":["uuid","<1>"]}]}]
907 [{"uuid":["uuid","<5>"]},{"details":"Weak reference column \"a2b\" in \"a\" row <5> (inserted within this transaction) contained all-zeros UUID (probably as the default value for this column) but deleting this value caused a constraint volation because this column is not allowed to be empty.","error":"constraint violation"}]
908 [{"count":1},{"details":"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \"a2b\" in \"a\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.","error":"constraint violation"}]
909 [{"count":1},{"details":"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \"a2a1\" in \"a\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.","error":"constraint violation"}]
911 [{"rows":[{"_uuid":["uuid","<0>"],"a2a":["set",[["uuid","<0>"],["uuid","<1>"]]],"a2a1":["uuid","<0>"],"a2b":["uuid","<3>"]},{"_uuid":["uuid","<1>"],"a2a":["set",[["uuid","<0>"],["uuid","<1>"]]],"a2a1":["uuid","<1>"],"a2b":["uuid","<3>"]}]}]
912 [{"rows":[{"_uuid":["uuid","<3>"],"b":2,"b2a":["uuid","<0>"]},{"_uuid":["uuid","<4>"],"b":3,"b2a":["uuid","<1>"]}]}]
914 [{"rows":[{"_uuid":["uuid","<1>"],"a2a":["uuid","<1>"],"a2a1":["uuid","<1>"],"a2b":["uuid","<3>"]}]}]
915 [{"rows":[{"_uuid":["uuid","<3>"],"b":2,"b2a":["set",[]]},{"_uuid":["uuid","<4>"],"b":3,"b2a":["uuid","<1>"]}]}]
918 [{"rows":[{"_uuid":["uuid","<3>"],"b":2,"b2a":["set",[]]},{"_uuid":["uuid","<4>"],"b":3,"b2a":["set",[]]}]}]
921 OVSDB_CHECK_EXECUTION([immutable columns],
927 "uuid-name": "row1"}]]],
942 "mutations": [["i", "-=", 5]]}]]],
947 "mutations": [["i", "*=", 1]]}]]]],
948 [[[{"uuid":["uuid","<0>"]}]
949 [{"details":"Cannot update immutable column i in table a.","error":"constraint violation","syntax":"{\"op\":\"update\",\"row\":{\"i\":10},\"table\":\"a\",\"where\":[]}"}]
950 [{"details":"Cannot update immutable column i in table a.","error":"constraint violation","syntax":"{\"op\":\"update\",\"row\":{\"i\":5},\"table\":\"a\",\"where\":[]}"}]
951 [{"details":"Cannot mutate immutable column i in table a.","error":"constraint violation","syntax":"[\"i\",\"-=\",5]"}]
952 [{"details":"Cannot mutate immutable column i in table a.","error":"constraint violation","syntax":"[\"i\",\"*=\",1]"}]
955 OVSDB_CHECK_EXECUTION([garbage collection],
957 [dnl Check that inserting a row without any references is a no-op.
966 "columns": ["a"]}]]],
967 dnl Check that inserting a chain of rows that reference each other
968 dnl in turn is also a no-op.
972 "row": {"a": 0, "a2a": ["named-uuid", "row1"]},
973 "uuid-name": "row0"},
976 "row": {"a": 1, "a2a": ["named-uuid", "row2"]},
977 "uuid-name": "row1"},
980 "row": {"a": 2, "a2a": ["named-uuid", "row3"]},
981 "uuid-name": "row2"},
985 "uuid-name": "row3"}]]],
990 "columns": ["a"]}]]],
991 dnl Check that inserting a pair of rows that mutually reference each
992 dnl other causes the rows to be retained.
996 "row": {"a": 4, "a2a": ["named-uuid", "row5"]},
997 "uuid-name": "row4"},
1000 "row": {"a": 5, "a2a": ["named-uuid", "row4"]},
1001 "uuid-name": "row5"}]]],
1008 dnl Check that unreferencing one of the rows causes the other to be deleted.
1012 "where": [["a", "==", 4]],
1013 "row": {"a2a": ["set", []]}}]]],
1018 "columns": ["a"]}]]],
1019 dnl Check that inserting a pair of rows that mutually weak reference each
1020 dnl other is a no-op.
1024 "row": {"a": 6, "wa2a": ["named-uuid", "row7"]},
1025 "uuid-name": "row6"},
1028 "row": {"a": 7, "wa2a": ["named-uuid", "row6"]},
1029 "uuid-name": "row7"}]]],
1034 "columns": ["a"]}]]],
1035 dnl Check that a circular chain of rows is retained.
1039 "row": {"a": 8, "a2a": ["named-uuid", "row9"]},
1040 "uuid-name": "row8"},
1043 "row": {"a": 9, "a2a": ["named-uuid", "row10"]},
1044 "uuid-name": "row9"},
1047 "row": {"a": 10, "a2a": ["named-uuid", "row11"]},
1048 "uuid-name": "row10"},
1051 "row": {"a": 11, "a2a": ["named-uuid", "row8"]},
1052 "uuid-name": "row11"}]]],
1059 dnl Check that breaking the chain causes all of the rows to be deleted.
1063 "where": [["a", "==", 9]],
1064 "row": {"a2a": ["set", []]}}]]],
1069 "columns": ["a"]}]]],
1070 dnl Check that inserting a row only referenced by itself is a no-op.
1074 "row": {"a": 12, "a2a": ["named-uuid", "self"]},
1075 "uuid-name": "self"}]]],
1080 "columns": ["a"]}]]]],
1081 [[[{"uuid":["uuid","<0>"]}]
1083 [{"uuid":["uuid","<1>"]},{"uuid":["uuid","<2>"]},{"uuid":["uuid","<3>"]},{"uuid":["uuid","<4>"]}]
1085 [{"uuid":["uuid","<5>"]},{"uuid":["uuid","<6>"]}]
1086 [{"rows":[{"a":4},{"a":5}]}]
1089 [{"uuid":["uuid","<7>"]},{"uuid":["uuid","<8>"]}]
1091 [{"uuid":["uuid","<9>"]},{"uuid":["uuid","<10>"]},{"uuid":["uuid","<11>"]},{"uuid":["uuid","<12>"]}]
1092 [{"rows":[{"a":8},{"a":9},{"a":10},{"a":11}]}]
1095 [{"uuid":["uuid","<13>"]}]