Skip to content
Snippets Groups Projects
Commit 2265a7c4 authored by Sviatoslav Nekhaienko's avatar Sviatoslav Nekhaienko
Browse files

generate sschemas for integration tests

parent e7ac67f0
No related branches found
No related tags found
1 merge request!60Indexer to read from Schema Service as well as Storage Schema
......@@ -45,6 +45,11 @@ public class SchemaToStorageFormatImplTest {
testSingleFile("/converter/first/schema.json", "osdu:osdu:Wellbore:1.0.0");
}
@Test
public void integrationTestSchema1() {
testSingleFile("/converter/integration-tests/index_records_1.json", "KIND_VAL");
}
@Test
public void wkeSchemaPassed() {
testSingleFile("/converter/wks/slb_wke_wellbore.json", "slb:wks:wellbore:1.0.6");
......
{
"properties": {
"data": {
"allOf": [
{
"type": "object",
"properties": {
"Field": {
"type": "string"
},
"Location": {
"$ref": "#/definitions/core_dl_geopoint",
"description": "The wellbore's position .",
"format": "core:dl:geopoint:1.0.0",
"title": "WGS 84 Position",
"type": "object",
"x-slb-aliasProperties": [
"witsml:GeographicLocationWGS84"
]
},
"Basin": {
"type": "string"
},
"County": {
"type": "string"
},
"State": {
"type": "string"
},
"Country": {
"type": "string"
},
"WellStatus": {
"type": "string"
},
"OriginalOperator": {
"type": "string"
},
"WellName": {
"type": "string"
},
"WellType": {
"type": "string"
},
"EmptyAttribute": {
"type": "string"
},
"Rank": {
"type": "integer"
},
"Score": {
"type": "integer"
},
"Established": {
"type": "date-time"
},
"DblArray": {
"description": "The name of the host [cloud environment] region(s) for this OSDU resource object.",
"title": "Resource Host Region ID",
"type": "array",
"items": {
"type": "number"
}
}
}
}
]
}
}
}
{
"kind": "KIND_VAL",
"schema": [
{
"path": "Field",
"kind": "string"
},
{
"path": "Location",
"kind": "core:dl:geopoint:1.0.0"
},
{
"path": "Basin",
"kind": "string"
},
{
"path": "County",
"kind": "string"
},
{
"path": "State",
"kind": "string"
},
{
"path": "Country",
"kind": "string"
},
{
"path": "WellStatus",
"kind": "string"
},
{
"path": "OriginalOperator",
"kind": "string"
},
{
"path": "WellName",
"kind": "string"
},
{
"path": "WellType",
"kind": "string"
},
{
"path": "EmptyAttribute",
"kind": "string"
},
{
"path": "Rank",
"kind": "int"
},
{
"path": "Score",
"kind": "int"
},
{
"path": "Established",
"kind": "datetime"
},
{
"path": "DblArray",
"kind": "[]double"
}
]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment