aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/returns-whitelist.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/returns-whitelist.json')
-rw-r--r--tests/qapi-schema/returns-whitelist.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/qapi-schema/returns-whitelist.json b/tests/qapi-schema/returns-whitelist.json
new file mode 100644
index 00000000..e8b3cea3
--- /dev/null
+++ b/tests/qapi-schema/returns-whitelist.json
@@ -0,0 +1,11 @@
+# we enforce that 'returns' be a dict or array of dict unless whitelisted
+{ 'command': 'human-monitor-command',
+ 'data': {'command-line': 'str', '*cpu-index': 'int'},
+ 'returns': 'str' }
+{ 'enum': 'TpmModel', 'data': [ 'tpm-tis' ] }
+{ 'command': 'query-tpm-models', 'returns': ['TpmModel'] }
+{ 'command': 'guest-get-time',
+ 'returns': 'int' }
+
+{ 'command': 'no-way-this-will-get-whitelisted',
+ 'returns': [ 'int' ] }