Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KAA-1551: add primitive and complex types to test schema in 'save CTL…
… schema' test
- Loading branch information
Rybachenko Andrey
committed
Nov 17, 2016
1 parent
5413b20
commit 4b525d2
Showing
3 changed files
with
127 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
server/common/dao/src/test/resources/dao/ctl/flatCtlExample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,112 @@ | |||
{ | |||
"type" : "record", | |||
"name" : "NoDependenciesCtlExample", | |||
"namespace" : "org.kaaproject.kaa", | |||
"displayName" : "example schema", | |||
"version" : 1, | |||
"fields" : [ | |||
{ | |||
"name" : "bytesField", | |||
"type" : "bytes" | |||
}, | |||
{ | |||
"name" : "booleanField", | |||
"type" : "boolean" | |||
}, | |||
{ | |||
"name" : "intField", | |||
"type" : "int" | |||
}, | |||
{ | |||
"name" : "longField", | |||
"type" : "long" | |||
}, | |||
{ | |||
"name" : "floatField", | |||
"type" : "float" | |||
}, | |||
{ | |||
"name" : "doubleField", | |||
"type" : "double" | |||
}, | |||
{ | |||
"name" : "stringField", | |||
"type" : "string" | |||
}, | |||
{ | |||
"name" : "enumField", | |||
"type" : { | |||
"type" : "enum", | |||
"name" : "TestEnum", | |||
"namespace" : "org.kaaproject.kaa", | |||
"symbols" : [ | |||
"SPADES", | |||
"HEARTS", | |||
"DIAMONDS", | |||
"CLUBS" | |||
] | |||
} | |||
}, | |||
{ | |||
"name" : "arrayField", | |||
"type" : { | |||
"type" : "array", | |||
"items" : "string" | |||
} | |||
}, | |||
{ | |||
"name" : "recordsArrayField", | |||
"type" : { | |||
"type" : "array", | |||
"items" : { | |||
"type" : "record", | |||
"name" : "TestArrayRecord", | |||
"fields" : [ | |||
{ | |||
"name" : "bytesFieldInArrayRecord", | |||
"type" : "bytes" | |||
}, | |||
{ | |||
"name" : "booleanFieldInArrayRecord", | |||
"type" : "boolean" | |||
}, | |||
{ | |||
"name" : "intFieldInArrayRecord", | |||
"type" : "int" | |||
}, | |||
{ | |||
"name" : "floatFieldInArrayRecord", | |||
"type" : "float" | |||
} | |||
] | |||
} | |||
} | |||
}, | |||
{ | |||
"name" : "recordField", | |||
"type" : { | |||
"type" : "record", | |||
"name" : "NestedRecord", | |||
"fields": [ | |||
{ | |||
"name": "bytesFieldInRecord", | |||
"type": "bytes" | |||
}, | |||
{ | |||
"name": "booleanFieldInRecord", | |||
"type": "boolean" | |||
}, | |||
{ | |||
"name": "intFieldInRecord", | |||
"type": "int" | |||
}, | |||
{ | |||
"name": "floatFieldInRecord", | |||
"type": "float" | |||
} | |||
] | |||
} | |||
} | |||
], | |||
"dependencies" : [ ] | |||
} |
14 changes: 0 additions & 14 deletions
14
server/common/dao/src/test/resources/dao/ctl/noDependenciesCtl.json
This file was deleted.
Oops, something went wrong.