aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/event-case.json
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-03-23 10:40:10 +0100
committerMarkus Armbruster <armbru@redhat.com>2021-03-23 22:31:05 +0100
commitd4f4cae8de19d2bdfcf09cdc4676e9b99857dcf2 (patch)
tree09dcfca6c1af3795cc7902b7a0282f5f78182fcc /tests/qapi-schema/event-case.json
parent00ffe242d64f7622965c52c62adb06fd9664ada8 (diff)
qapi: Enforce event naming rules
Event names should be ALL_CAPS with words separated by underscore. Enforce this. The only offenders are in tests/. Fix them. Existing test event-case covers the new error. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-14-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qapi-schema/event-case.json')
-rw-r--r--tests/qapi-schema/event-case.json2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/qapi-schema/event-case.json b/tests/qapi-schema/event-case.json
index 3a92d8b610..4d8a5d8a71 100644
--- a/tests/qapi-schema/event-case.json
+++ b/tests/qapi-schema/event-case.json
@@ -1,3 +1 @@
-# TODO: might be nice to enforce naming conventions; but until then this works
-# even though events should usually be ALL_CAPS
{ 'event': 'oops' }