Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
135efc95
Commit
135efc95
authored
Apr 11, 2021
by
Diego Molteni
Browse files
added ctag e2etest
parent
4777e7dc
Pipeline
#35583
passed with stages
in 13 minutes and 47 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
tests/e2e/postman_collection.json
View file @
135efc95
{
"info": {
"_postman_id": "
c988bdf3-af9f-48b4-8afd-87ab4650e6d3
",
"name": "
seismic-store-e2e
",
"_postman_id": "
260476ac-bbd1-4440-b4d8-c6984dc7e1da
",
"name": "
SDMS-E2E
",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
...
...
@@ -1477,7 +1477,12 @@
"pm.test(\"Check gtag\", function () {",
" pm.expect(jsonData.gtags.length).to.eql(1);",
" pm.expect(jsonData.gtags[0]).to.eql(\"tagA\");",
"});"
"});",
"",
"pm.test(\"ctag\", function () {",
" postman.setEnvironmentVariable(\"ctag\", jsonData.ctag);",
"});",
""
],
"type": "text/javascript"
}
...
...
@@ -1661,6 +1666,73 @@
},
"response": []
},
{
"name": "DATASET DSX01 CHECK CTAG TRUE",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Validate ctag\", function () {",
" pm.expect(pm.response.json()).eql(true);",
"});",
"",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{STOKEN}}"
},
{
"key": "x-api-key",
"value": "{{SVC_API_KEY}}"
},
{
"key": "appkey",
"value": "{{DE_APP_KEY}}",
"type": "text"
}
],
"url": {
"raw": "{{SVC_URL}}/dataset/tenant/{{tenant}}/subproject/{{subproject}}/dataset/{{dsx01}}/ctagcheck?path={{testPathEncoded}}&ctag={{ctag}}",
"host": [
"{{SVC_URL}}"
],
"path": [
"dataset",
"tenant",
"{{tenant}}",
"subproject",
"{{subproject}}",
"dataset",
"{{dsx01}}",
"ctagcheck"
],
"query": [
{
"key": "path",
"value": "{{testPathEncoded}}"
},
{
"key": "ctag",
"value": "{{ctag}}"
}
]
}
},
"response": []
},
{
"name": "DATASET PATCH",
"event": [
...
...
@@ -1744,6 +1816,73 @@
},
"response": []
},
{
"name": "DATASET DSX01 CHECK CTAG FALSE",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Validate ctag\", function () {",
" pm.expect(pm.response.json()).eql(false);",
"});",
"",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{STOKEN}}"
},
{
"key": "x-api-key",
"value": "{{SVC_API_KEY}}"
},
{
"key": "appkey",
"value": "{{DE_APP_KEY}}",
"type": "text"
}
],
"url": {
"raw": "{{SVC_URL}}/dataset/tenant/{{tenant}}/subproject/{{subproject}}/dataset/{{dsx01}}/ctagcheck?path={{testPathEncoded}}&ctag={{ctag}}",
"host": [
"{{SVC_URL}}"
],
"path": [
"dataset",
"tenant",
"{{tenant}}",
"subproject",
"{{subproject}}",
"dataset",
"{{dsx01}}",
"ctagcheck"
],
"query": [
{
"key": "path",
"value": "{{testPathEncoded}}"
},
{
"key": "ctag",
"value": "{{ctag}}"
}
]
}
},
"response": []
},
{
"name": "DATASET EXIST",
"event": [
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment