tests/qapi-schema: Purge simple unions from tests
commit76432d988b67d95006d0aa66dce2aa5999868d29
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Sep 2021 14:31:31 +0000 (17 16:31 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 Sep 2021 06:23:25 +0000 (27 08:23 +0200)
treed886a9906a8b3dea931da214cc9f08ffa45f56b8
parentbb5821dd8194ed8b50f36a45ecffeac87045937d
tests/qapi-schema: Purge simple unions from tests

Drop tests that are specifically about simple unions:

* SugaredUnion in doc-good: flat unions are covered by @Object.

* union-branch-case and union-clash-branches: branch naming for flat
  unions is enforced for the tag enum instead, which is covered by
  enum-member-case and enum-clash-member.

* union-empty: empty flat unions are covered by flat-union-empty.

Rewrite the remainder to use flat unions: args-union, bad-base,
flat-union-base-union, union-branch-invalid-dict, union-unknown.

Except drop union-optional-branch. because converting this one is not
worth the trouble; we don't explicitly check names beginning with '*'
in other places, either.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210917143134.412106-21-armbru@redhat.com>
26 files changed:
tests/qapi-schema/args-union.err
tests/qapi-schema/args-union.json
tests/qapi-schema/bad-base.err
tests/qapi-schema/bad-base.json
tests/qapi-schema/doc-good.json
tests/qapi-schema/doc-good.out
tests/qapi-schema/doc-good.txt
tests/qapi-schema/flat-union-base-union.err
tests/qapi-schema/flat-union-base-union.json
tests/qapi-schema/meson.build
tests/qapi-schema/union-branch-case.err [deleted file]
tests/qapi-schema/union-branch-case.json [deleted file]
tests/qapi-schema/union-branch-case.out [deleted file]
tests/qapi-schema/union-branch-invalid-dict.err
tests/qapi-schema/union-branch-invalid-dict.json
tests/qapi-schema/union-clash-branches.err [deleted file]
tests/qapi-schema/union-clash-branches.json [deleted file]
tests/qapi-schema/union-clash-branches.out [deleted file]
tests/qapi-schema/union-empty.err [deleted file]
tests/qapi-schema/union-empty.json [deleted file]
tests/qapi-schema/union-empty.out [deleted file]
tests/qapi-schema/union-optional-branch.err [deleted file]
tests/qapi-schema/union-optional-branch.json [deleted file]
tests/qapi-schema/union-optional-branch.out [deleted file]
tests/qapi-schema/union-unknown.err
tests/qapi-schema/union-unknown.json