datahub/smoke-test/tests/openapi/v3/exceptions.json

264 lines
5.7 KiB
JSON

[
{
"request": {
"url": "/openapi/v3/entity/dataset/urn%3Ali%3Adataset%3A%28urn%3Ali%3AdataPlatform%3Atest%2CpreconditionV3%2CPROD%29",
"description": "Remove test dataset",
"method": "delete"
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset/urn%3Ali%3Adataset%3A%28urn%3Ali%3AdataPlatform%3Atest%2CInvalidExceptions%2CPROD%29",
"description": "Remove dataset used for invalid tests",
"method": "delete"
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset",
"description": "Test Precondition Validation Entity",
"params": {
"async": "false"
},
"json": [
{
"urn": "urn:li:dataset:(urn:li:dataPlatform:test,preconditionV3,PROD)",
"status": {
"value": {
"removed": false
},
"headers": {
"If-Version-Match": "-10000"
}
}
}
]
},
"response": {
"status_codes": [
412
],
"exclude_regex_paths": [
"root\\['message'\\]"
],
"json": {
"error": "Validation Error"
}
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset/urn%3Ali%3Adataset%3A%28urn%3Ali%3AdataPlatform%3Atest%2CpreconditionV3%2CPROD%29/status",
"description": "Test Precondition Validation Aspect",
"params": {
"createIfNotExists": "false",
"async": "false"
},
"json": {
"value": {
"removed": false
},
"headers": {
"If-Version-Match": "-10000"
}
}
},
"response": {
"status_codes": [
412
],
"exclude_regex_paths": [
"root\\['message'\\]"
],
"json": {
"error": "Validation Error"
}
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset",
"description": "Test Invalid URN - SYNC",
"params": {
"createIfNotExists": "false",
"async": "false"
},
"json": [
{
"urn": "urn:li:dataset:(urn:li:dataPlatform:test,InvalidExceptions,INVALID)",
"status": {
"value": {
"removed": false
}
}
}
]
},
"response": {
"status_codes": [
400
]
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset",
"description": "Test Invalid URN - ASYNC",
"params": {
"createIfNotExists": "false",
"async": "true"
},
"json": [
{
"urn": "urn:li:dataset:(urn:li:dataPlatform:test,InvalidExceptions,INVALID)",
"status": {
"value": {
"removed": false
}
}
}
]
},
"response": {
"status_codes": [
400
]
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset",
"description": "Test Invalid Aspect - SYNC",
"params": {
"createIfNotExists": "false",
"async": "false"
},
"json": [
{
"urn": "urn:li:dataset:(urn:li:dataPlatform:test,InvalidExceptions,PROD)",
"INVALID": {
"value": {
"removed": false
}
}
}
]
},
"response": {
"status_codes": [
400
],
"exclude_regex_paths": [
"root\\['message'\\]"
],
"json": {
"error": "Validation Error"
}
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset",
"description": "Test Invalid Aspect - ASYNC",
"params": {
"createIfNotExists": "false",
"async": "true"
},
"json": [
{
"urn": "urn:li:dataset:(urn:li:dataPlatform:test,InvalidExceptions,PROD)",
"INVALID": {
"value": {
"removed": false
}
}
}
]
},
"response": {
"status_codes": [
400
],
"exclude_regex_paths": [
"root\\['message'\\]"
],
"json": {
"error": "Validation Error"
}
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset",
"description": "Test Invalid Entity - SYNC",
"params": {
"createIfNotExists": "false",
"async": "false"
},
"json": [
{
"urn": "urn:li:FOOBAR:(urn:li:dataPlatform:test,InvalidExceptions,PROD)",
"status": {
"value": {
"removed": false
}
}
}
]
},
"response": {
"status_codes": [
400
],
"exclude_regex_paths": [
"root\\['message'\\]"
],
"json": {
"error": "Invalid urn!: urn:li:FOOBAR:(urn:li:dataPlatform:test,InvalidExceptions,PROD)"
}
}
},
{
"request": {
"url": "/openapi/v3/entity/dataset",
"description": "Test Invalid Entity - ASYNC",
"params": {
"createIfNotExists": "false",
"async": "true"
},
"json": [
{
"urn": "urn:li:FOOBAR:(urn:li:dataPlatform:test,InvalidExceptions,PROD)",
"INVALID": {
"value": {
"removed": false
}
}
}
]
},
"response": {
"status_codes": [
400
],
"exclude_regex_paths": [
"root\\['message'\\]"
],
"json": {
"error": "Invalid urn!: urn:li:FOOBAR:(urn:li:dataPlatform:test,InvalidExceptions,PROD)"
}
}
},
{
"request": {
"url": "/openapi/v3/entity/scroll?query=*&count=99999",
"description": "Test count too high, no error limited by max limit transparently.",
"json": {}
},
"response": {
"status_codes": [
200
]
}
}
]