1 AT_BANNER([OVSDB -- schemas])
3 OVSDB_CHECK_POSITIVE_CPY([schema with valid refTables],
24 "refTable": "a"}}}}}}}']],
25 [[{"name":"mydb","tables":{"a":{"columns":{"map":{"type":{"key":{"refTable":"b","type":"uuid"},"value":{"refTable":"a","type":"uuid"}}}}},"b":{"columns":{"aRef":{"type":{"key":{"refTable":"a","type":"uuid"}}}}}},"version":"4.2.1"}]])
27 dnl Ephemeral strong references to root set tables are OK.
28 dnl Ephemeral strong references to non-root set tables are forced to be
30 OVSDB_CHECK_POSITIVE_CPY([schema with ephemeral strong references],
57 [[{"name":"mydb","tables":{"a":{"columns":{"x":{"ephemeral":true,"type":{"key":{"refTable":"b","type":"uuid"}}},"y":{"type":{"key":{"refTable":"a","type":"uuid"}}}}},"b":{"columns":{"aRef":{"type":{"key":{"refTable":"a","type":"uuid"}}}},"isRoot":true}},"version":"4.2.1"}]])
59 dnl Schemas without version numbers are accepted for backward
60 dnl compatibility, but this is a deprecated feature.
61 OVSDB_CHECK_POSITIVE_CPY([schema without version number],
68 "type": "integer"}}}}}']],
69 [{"name":"mydb","tables":{"x":{"columns":{"y":{"type":"integer"}}}}}])
71 OVSDB_CHECK_NEGATIVE_CPY([schema with invalid refTables],
91 "refTable": "a"}}}}}}}']],
92 [[syntax error: column map key refers to undefined table c]])
94 OVSDB_CHECK_NEGATIVE_CPY([schema with invalid version number],
101 "type": "integer"}}}},
102 "version": "xxx"}']],
103 [[schema version "xxx" not in format x.y.z]])