postman API tests for different databases

pull/595/head
hunterlong 2020-05-18 13:50:09 -07:00
parent 429170f006
commit 416984d083
7 changed files with 1511 additions and 148 deletions

View File

@ -160,8 +160,7 @@ jobs:
- name: Postman Tests
uses: matt-ball/newman-action@master
with:
postmanApiKey: ${{ secrets.POSTMAN_API }}
collection: 1898229-94807b85-ef65-4370-9144-b1a74e04cb0e
environment: ./dev/postman_environment.json
collection: ./dev/postman.json
environment: ./dev/postman_environment_sqlite.json
timeoutRequest: 15000
delayRequest: 1000
delayRequest: 500

View File

@ -183,11 +183,7 @@ jobs:
with:
postmanApiKey: ${{ secrets.POSTMAN_API }}
collection: 1898229-3c6a7841-0b39-4878-a3a6-1c76832b7679
globals:
- values:
endpoint: http://127.0.0.1:8080
api_key: demosecret123
db_connection: sqlite
environment: ./dev/postman_env_sqlite.json
timeoutRequest: 15000
delayRequest: 500
@ -242,16 +238,7 @@ jobs:
with:
postmanApiKey: ${{ secrets.POSTMAN_API }}
collection: 1898229-3c6a7841-0b39-4878-a3a6-1c76832b7679
globals:
- values:
endpoint: http://127.0.0.1:8080
api_key: demosecret123
db_connection: mysql
db_host: localhost
db_user: root
db_password: password123
db_database: statping
db_port: 3306
environment: ./dev/postman_env_mysql.json
timeoutRequest: 15000
delayRequest: 500
@ -307,16 +294,7 @@ jobs:
with:
postmanApiKey: ${{ secrets.POSTMAN_API }}
collection: 1898229-3c6a7841-0b39-4878-a3a6-1c76832b7679
globals:
- values:
endpoint: http://127.0.0.1:8080
api_key: demosecret123
db_connection: postgres
db_host: localhost
db_user: root
db_password: password123
db_database: statping
db_port: 5432
environment: ./dev/postman_env_postgres.json
timeoutRequest: 15000
delayRequest: 500

1456
dev/postman.json vendored

File diff suppressed because one or more lines are too long

49
dev/postman_env_mysql.json vendored Normal file
View File

@ -0,0 +1,49 @@
{
"id": "0ff1dcd6-54f3-44a7-9c18-cc3c8e7df357",
"name": "Local Statping",
"values": [
{
"key": "endpoint",
"value": "http://0.0.0.0:8585",
"enabled": true
},
{
"key": "api_key",
"value": "demosecret123",
"enabled": true
},
{
"key": "db_connection",
"value": "mysql",
"enabled": true
},
{
"key": "db_host",
"value": "localhost",
"enabled": true
},
{
"key": "db_user",
"value": "root",
"enabled": true
},
{
"key": "db_password",
"value": "password123",
"enabled": true
},
{
"key": "db_database",
"value": "statping",
"enabled": true
},
{
"key": "db_port",
"value": "3306",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2020-05-18T20:44:05.571Z",
"_postman_exported_using": "Postman/7.24.0"
}

49
dev/postman_env_postgres.json vendored Normal file
View File

@ -0,0 +1,49 @@
{
"id": "0ff1dcd6-54f3-44a7-9c18-cc3c8e7df357",
"name": "Local Statping",
"values": [
{
"key": "endpoint",
"value": "http://0.0.0.0:8585",
"enabled": true
},
{
"key": "api_key",
"value": "demosecret123",
"enabled": true
},
{
"key": "db_connection",
"value": "postgres",
"enabled": true
},
{
"key": "db_host",
"value": "localhost",
"enabled": true
},
{
"key": "db_user",
"value": "root",
"enabled": true
},
{
"key": "db_password",
"value": "password123",
"enabled": true
},
{
"key": "db_database",
"value": "statping",
"enabled": true
},
{
"key": "db_port",
"value": "5432",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2020-05-18T20:44:05.571Z",
"_postman_exported_using": "Postman/7.24.0"
}

49
dev/postman_env_sqlite.json vendored Normal file
View File

@ -0,0 +1,49 @@
{
"id": "0ff1dcd6-54f3-44a7-9c18-cc3c8e7df357",
"name": "Local Statping",
"values": [
{
"key": "endpoint",
"value": "http://0.0.0.0:8585",
"enabled": true
},
{
"key": "api_key",
"value": "demosecret123",
"enabled": true
},
{
"key": "db_connection",
"value": "sqlite",
"enabled": true
},
{
"key": "db_host",
"value": "localhost",
"enabled": true
},
{
"key": "db_user",
"value": "root",
"enabled": true
},
{
"key": "db_password",
"value": "password123",
"enabled": true
},
{
"key": "db_database",
"value": "statping",
"enabled": true
},
{
"key": "db_port",
"value": "3306",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2020-05-18T20:44:05.571Z",
"_postman_exported_using": "Postman/7.24.0"
}

View File

@ -1,21 +0,0 @@
{
"id": "0ff1dcd6-54f3-44a7-9c18-cc3c8e7df357",
"name": "Local Statping",
"values": [
{
"key": "endpoint",
"value": "http://127.0.0.1:8080",
"description": "",
"enabled": true
},
{
"key": "api_key",
"value": "demosecret123",
"description": "",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2018-11-17T16:55:15.031Z",
"_postman_exported_using": "Postman/6.5.2"
}