tests/qapi-schema: Rename flat-union-* test cases to union-*

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210917143134.412106-23-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com
This commit is contained in:
Markus Armbruster 2021-09-17 16:31:33 +02:00
parent 4e99f4b12c
commit 8b3b3a16df
65 changed files with 48 additions and 48 deletions

View file

@ -1,2 +0,0 @@
flat-union-array-branch.json: In union 'TestUnion':
flat-union-array-branch.json:8: 'data' member 'value1' cannot be an array

View file

@ -1,2 +0,0 @@
flat-union-bad-base.json: In union 'TestUnion':
flat-union-bad-base.json:8: member 'string' of type 'TestTypeA' collides with base member 'string'

View file

@ -1,2 +0,0 @@
flat-union-bad-discriminator.json: In union 'TestUnion':
flat-union-bad-discriminator.json:11: 'discriminator' requires a string name

View file

@ -1,2 +0,0 @@
flat-union-base-any.json: In union 'TestUnion':
flat-union-base-any.json:8: 'base' requires a struct type, built-in type 'any' isn't

View file

@ -1,2 +0,0 @@
flat-union-base-union.json: In union 'TestUnion':
flat-union-base-union.json:17: 'base' requires a struct type, union type 'UnionBase' isn't

View file

@ -1,2 +0,0 @@
flat-union-clash-member.json: In union 'TestUnion':
flat-union-clash-member.json:11: member 'name' of type 'Branch1' collides with member 'name' of type 'Base'

View file

@ -1,2 +0,0 @@
flat-union-discriminator-bad-name.json: In union 'MyUnion':
flat-union-discriminator-bad-name.json:6: discriminator '*switch' is not a member of 'base'

View file

@ -1,2 +0,0 @@
flat-union-empty.json: In union 'Union':
flat-union-empty.json:4: union has no branches

View file

@ -1,2 +0,0 @@
flat-union-inline-invalid-dict.json: In union 'TestUnion':
flat-union-inline-invalid-dict.json:7: 'data' member 'value1' misses key 'type'

View file

@ -1,2 +0,0 @@
flat-union-int-branch.json: In union 'TestUnion':
flat-union-int-branch.json:8: branch 'value1' cannot use built-in type 'int'

View file

@ -1,2 +0,0 @@
flat-union-invalid-branch-key.json: In union 'TestUnion':
flat-union-invalid-branch-key.json:13: branch 'value_wrong' is not a value of enum type 'TestEnum'

View file

@ -1,2 +0,0 @@
flat-union-invalid-discriminator.json: In union 'TestUnion':
flat-union-invalid-discriminator.json:10: discriminator 'enum_wrong' is not a member of 'base'

View file

@ -1,2 +0,0 @@
flat-union-invalid-if-discriminator.json: In union 'TestUnion':
flat-union-invalid-if-discriminator.json:10: discriminator member 'enum1' of 'base' must not be conditional

View file

@ -1,2 +0,0 @@
flat-union-no-base.json: In union 'TestUnion':
flat-union-no-base.json:8: union misses key 'base'

View file

@ -1,2 +0,0 @@
flat-union-optional-discriminator.json: In union 'MyUnion':
flat-union-optional-discriminator.json:6: discriminator member 'switch' of base type 'Base' must not be optional

View file

@ -1,2 +0,0 @@
flat-union-string-discriminator.json: In union 'TestUnion':
flat-union-string-discriminator.json:13: discriminator member 'kind' of base type 'TestBase' must be of enum type

View file

@ -107,22 +107,6 @@ schemas = [
'features-name-bad-type.json',
'features-no-list.json',
'features-unknown-key.json',
'flat-union-array-branch.json',
'flat-union-bad-base.json',
'flat-union-bad-discriminator.json',
'flat-union-base-any.json',
'flat-union-base-union.json',
'flat-union-clash-member.json',
'flat-union-discriminator-bad-name.json',
'flat-union-empty.json',
'flat-union-inline-invalid-dict.json',
'flat-union-int-branch.json',
'flat-union-invalid-branch-key.json',
'flat-union-invalid-discriminator.json',
'flat-union-invalid-if-discriminator.json',
'flat-union-no-base.json',
'flat-union-optional-discriminator.json',
'flat-union-string-discriminator.json',
'funny-char.json',
'funny-word.json',
'ident-with-escape.json',
@ -190,12 +174,28 @@ schemas = [
'unclosed-list.json',
'unclosed-object.json',
'unclosed-string.json',
'union-array-branch.json',
'union-bad-base.json',
'union-bad-discriminator.json',
'union-base-any.json',
'union-base-empty.json',
'union-base-no-discriminator.json',
'union-base-union.json',
'union-branch-if-invalid.json',
'union-branch-invalid-dict.json',
'union-clash-member.json',
'union-discriminator-bad-name.json',
'union-empty.json',
'union-inline-invalid-dict.json',
'union-int-branch.json',
'union-invalid-base.json',
'union-invalid-branch-key.json',
'union-invalid-data.json',
'union-invalid-discriminator.json',
'union-invalid-if-discriminator.json',
'union-no-base.json',
'union-optional-discriminator.json',
'union-string-discriminator.json',
'union-unknown.json',
'unknown-escape.json',
'unknown-expr-key.json',

View file

@ -0,0 +1,2 @@
union-array-branch.json: In union 'TestUnion':
union-array-branch.json:8: 'data' member 'value1' cannot be an array

View file

@ -0,0 +1,2 @@
union-bad-base.json: In union 'TestUnion':
union-bad-base.json:8: member 'string' of type 'TestTypeA' collides with base member 'string'

View file

@ -0,0 +1,2 @@
union-bad-discriminator.json: In union 'TestUnion':
union-bad-discriminator.json:11: 'discriminator' requires a string name

View file

@ -0,0 +1,2 @@
union-base-any.json: In union 'TestUnion':
union-base-any.json:8: 'base' requires a struct type, built-in type 'any' isn't

View file

@ -0,0 +1,2 @@
union-base-union.json: In union 'TestUnion':
union-base-union.json:17: 'base' requires a struct type, union type 'UnionBase' isn't

View file

@ -0,0 +1,2 @@
union-clash-member.json: In union 'TestUnion':
union-clash-member.json:11: member 'name' of type 'Branch1' collides with member 'name' of type 'Base'

View file

@ -0,0 +1,2 @@
union-discriminator-bad-name.json: In union 'MyUnion':
union-discriminator-bad-name.json:6: discriminator '*switch' is not a member of 'base'

View file

@ -0,0 +1,2 @@
union-empty.json: In union 'Union':
union-empty.json:4: union has no branches

View file

@ -0,0 +1,2 @@
union-inline-invalid-dict.json: In union 'TestUnion':
union-inline-invalid-dict.json:7: 'data' member 'value1' misses key 'type'

View file

@ -0,0 +1,2 @@
union-int-branch.json: In union 'TestUnion':
union-int-branch.json:8: branch 'value1' cannot use built-in type 'int'

View file

@ -0,0 +1,2 @@
union-invalid-branch-key.json: In union 'TestUnion':
union-invalid-branch-key.json:13: branch 'value_wrong' is not a value of enum type 'TestEnum'

View file

@ -0,0 +1,2 @@
union-invalid-discriminator.json: In union 'TestUnion':
union-invalid-discriminator.json:10: discriminator 'enum_wrong' is not a member of 'base'

View file

@ -0,0 +1,2 @@
union-invalid-if-discriminator.json: In union 'TestUnion':
union-invalid-if-discriminator.json:10: discriminator member 'enum1' of 'base' must not be conditional

View file

@ -0,0 +1,2 @@
union-no-base.json: In union 'TestUnion':
union-no-base.json:8: union misses key 'base'

View file

@ -0,0 +1,2 @@
union-optional-discriminator.json: In union 'MyUnion':
union-optional-discriminator.json:6: discriminator member 'switch' of base type 'Base' must not be optional

View file

@ -0,0 +1,2 @@
union-string-discriminator.json: In union 'TestUnion':
union-string-discriminator.json:13: discriminator member 'kind' of base type 'TestBase' must be of enum type