X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fovsdb-execution.at;fp=tests%2Fovsdb-execution.at;h=3a360416afd0acc460613d002ee282b34a62bda3;hb=e9f8f9367e9e654b9582279608af86ea3744a2a0;hp=8b2bc0b1fb43d9b4583e8899f87d67555c9cddfb;hpb=a105c27b4e24ac0d29ba131eca00793bc3385dca;p=openvswitch diff --git a/tests/ovsdb-execution.at b/tests/ovsdb-execution.at index 8b2bc0b1..3a360416 100644 --- a/tests/ovsdb-execution.at +++ b/tests/ovsdb-execution.at @@ -104,6 +104,30 @@ OVSDB_CHECK_EXECUTION([insert rows, update rows by value], [{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<2>"],"name":"nought","number":0},{"_uuid":["uuid","<1>"],"_version":["uuid","<3>"],"name":"one","number":1}]}] ]]) +OVSDB_CHECK_EXECUTION([insert rows, mutate rows], + [ORDINAL_SCHEMA], + [[[[{"op": "insert", + "table": "ordinals", + "row": {"number": 0, "name": "zero"}, + "uuid-name": "first"}]]], + [[[{"op": "insert", + "table": "ordinals", + "row": {"number": 1, "name": "one"}, + "uuid-name": "first"}]]], + [[[{"op": "mutate", + "table": "ordinals", + "where": [["name", "==", "zero"]], + "mutations": [["number", "+=", 2]]}]]], + [[[{"op": "select", + "table": "ordinals", + "where": [], + "sort": ["number"]}]]]], + [[[{"uuid":["uuid","<0>"]}] +[{"uuid":["uuid","<1>"]}] +[{"count":1}] +[{"rows":[{"_uuid":["uuid","<1>"],"_version":["uuid","<2>"],"name":"one","number":1},{"_uuid":["uuid","<0>"],"_version":["uuid","<3>"],"name":"zero","number":2}]}] +]]) + OVSDB_CHECK_EXECUTION([insert rows, delete by named-uuid], [ORDINAL_SCHEMA], [[[[{"op": "insert",