diff options
author | Ben Pfaff <blp@nicira.com> | 2010-02-12 11:13:24 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-02-15 11:28:39 -0800 |
commit | 88942565730a0f7e9abed2b26c00d1bae1392d7d (patch) | |
tree | d21285f262daa72c24413d6ab309f844ad462d57 /tests | |
parent | 204bad294027fef6315b18b963d074139b3dfc52 (diff) |
ovsdb: Fix commit to disk of rows added to a table with all-default values.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ovsdb-execution.at | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ovsdb-execution.at b/tests/ovsdb-execution.at index ca155a1e..ed28b2a9 100644 --- a/tests/ovsdb-execution.at +++ b/tests/ovsdb-execution.at @@ -51,6 +51,22 @@ m4_define([OVSDB_CHECK_EXECUTION], AT_CLEANUP]) 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. +OVSDB_CHECK_EXECUTION([insert default row, query table], + [ORDINAL_SCHEMA], + [[[["ordinals", + {"op": "insert", + "table": "ordinals", + "row": {}}]]], + [[["ordinals", + {"op": "select", + "table": "ordinals", + "where": []}]]]], + [[[{"uuid":["uuid","<0>"]}] +[{"rows":[{"_uuid":["uuid","<0>"],"_version":["uuid","<1>"],"name":"","number":0}]}] +]]) + OVSDB_CHECK_EXECUTION([insert row, query table], [ORDINAL_SCHEMA], [[[["ordinals", |