1409 lines
33 KiB
JSON
1409 lines
33 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "8d632c51-8d7b-426a-ae7d-baaf5d41dca3",
|
|
"name": "tsg-olap-e2e-test",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
"_exporter_id": "8105037"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "logs",
|
|
"item": [
|
|
{
|
|
"name": "proxy_event_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from proxy_event where vsys_id=1024 and recv_time >={{Last 10 Minutes Start}} and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "voip_record_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from voip_record where vsys_id=1024 and decoded_as='VoIP' and recv_time >={{Last 10 Minutes Start}} and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "monitor_event_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(7);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from monitor_event where vsys_id=1024 and recv_time >={{Last 10 Minutes Start}} and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\":\"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "security_event_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(7);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from security_event where vsys_id=1024 and recv_time >={{Last 10 Minutes Start}} and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\":\"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "session_record_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(7);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from session_record where vsys_id=1024 and recv_time >={{Last 10 Minutes Start}} and data_center='{{data_center}}' group by data_center order by cnt asc\",\n \"output_mode\":\"json\",\n \"exec_mode\":\"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "metrics",
|
|
"item": [
|
|
{
|
|
"name": "traffic_general_stat_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from traffic_general_stat where __time = {{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "application_protocol_stat_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from application_protocol_stat where __time = {{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "statistics_rule_hits_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center,count(*) as cnt from statistics_rule_hits where __time ={{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "security_rule_hits_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"followOriginalHttpMethod": false,
|
|
"followRedirects": false
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from security_rule_hits where __time ={{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "monitor_rule_hits_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from monitor_rule_hits where __time ={{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "proxy_rule_hits_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center,count(*) as cnt from proxy_rule_hits where __time ={{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "service_chaining_rule_hits_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from service_chaining_rule_hits where __time ={{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "object_statistics_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from object_statistics where __time ={{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "statistics_rule_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(Number(responseJson.data[0].cnt)).to.at.least(1);",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"statement\" : \"select data_center, count(*) as cnt from statistics_rule where __time ={{metric_fixed_time}} and vsys_id=1024 and data_center='{{data_center}}' group by data_center order by cnt asc\" ,\n \"output_mode\":\"json\",\n \"exec_mode\": \"oneshot\"\n}",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/query/sql",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"query",
|
|
"sql"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "files",
|
|
"item": [
|
|
{
|
|
"name": "monitor_packet_capture_file_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"disableBodyPruning": true
|
|
},
|
|
"request": {
|
|
"method": "HEAD",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "urlencoded",
|
|
"urlencoded": []
|
|
},
|
|
"url": {
|
|
"raw": "http://{{hos_ip}}:{{hos_port}}/hos/traffic_file_bucket/123e4567-e89b-12d3-a456-426614174001",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{hos_ip}}"
|
|
],
|
|
"port": "{{hos_port}}",
|
|
"path": [
|
|
"hos",
|
|
"traffic_file_bucket",
|
|
"123e4567-e89b-12d3-a456-426614174001"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "http_request_body_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"disableBodyPruning": true
|
|
},
|
|
"request": {
|
|
"method": "HEAD",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "urlencoded",
|
|
"urlencoded": []
|
|
},
|
|
"url": {
|
|
"raw": "http://{{hos_ip}}:{{hos_port}}/hos/traffic_file_bucket/123e4567-e89b-12d3-a456-426614174002",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{hos_ip}}"
|
|
],
|
|
"port": "{{hos_port}}",
|
|
"path": [
|
|
"hos",
|
|
"traffic_file_bucket",
|
|
"123e4567-e89b-12d3-a456-426614174002"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "http_response_body_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"disableBodyPruning": true
|
|
},
|
|
"request": {
|
|
"method": "HEAD",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "urlencoded",
|
|
"urlencoded": []
|
|
},
|
|
"url": {
|
|
"raw": "http://{{hos_ip}}:{{hos_port}}/hos/traffic_file_bucket/123e4567-e89b-12d3-a456-426614174003",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{hos_ip}}"
|
|
],
|
|
"port": "{{hos_port}}",
|
|
"path": [
|
|
"hos",
|
|
"traffic_file_bucket",
|
|
"123e4567-e89b-12d3-a456-426614174003"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "mail_eml_file_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"disableBodyPruning": true
|
|
},
|
|
"request": {
|
|
"method": "HEAD",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "urlencoded",
|
|
"urlencoded": []
|
|
},
|
|
"url": {
|
|
"raw": "http://{{hos_ip}}:{{hos_port}}/hos/traffic_file_bucket/123e4567-e89b-12d3-a456-426614174004",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{hos_ip}}"
|
|
],
|
|
"port": "{{hos_port}}",
|
|
"path": [
|
|
"hos",
|
|
"traffic_file_bucket",
|
|
"123e4567-e89b-12d3-a456-426614174004"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "rtp_pcap_path_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"disableBodyPruning": true
|
|
},
|
|
"request": {
|
|
"method": "HEAD",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "urlencoded",
|
|
"urlencoded": []
|
|
},
|
|
"url": {
|
|
"raw": "http://{{hos_ip}}:{{hos_port}}/hos/traffic_file_bucket/123e4567-e89b-12d3-a456-426614174005",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{hos_ip}}"
|
|
],
|
|
"port": "{{hos_port}}",
|
|
"path": [
|
|
"hos",
|
|
"traffic_file_bucket",
|
|
"123e4567-e89b-12d3-a456-426614174005"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "trouble_shooting_pcap_capture_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
" const responseJson = pm.response.json();",
|
|
" pm.expect(responseJson.data[0].fileName).to.be.not.null;",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"protocolProfileBehavior": {
|
|
"disableBodyPruning": true
|
|
},
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "urlencoded",
|
|
"urlencoded": []
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/hos/troubleshooting_file_bucket/123e4567-e89b-12d3-a456-426614174006",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"hos",
|
|
"troubleshooting_file_bucket",
|
|
"123e4567-e89b-12d3-a456-426614174006"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "clear_test_data",
|
|
"item": [
|
|
{
|
|
"name": "delete_traffic_files_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "token",
|
|
"value": "{{hos_token}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "<Delete>\n <Quiet>true</Quiet>\n <Object>\n <Key>123e4567-e89b-12d3-a456-426614174001</Key>\n </Object>\n <Object>\n <Key>123e4567-e89b-12d3-a456-426614174002</Key>\n </Object>\n <Object>\n <Key>123e4567-e89b-12d3-a456-426614174003</Key>\n </Object>\n <Object>\n <Key>123e4567-e89b-12d3-a456-426614174004</Key>\n </Object>\n <Object>\n <Key>123e4567-e89b-12d3-a456-426614174005</Key>\n </Object>\n</Delete>",
|
|
"options": {
|
|
"raw": {
|
|
"language": "xml"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://{{hos_ip}}:{{hos_port}}/hos/traffic_file_bucket?delete",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{hos_ip}}"
|
|
],
|
|
"port": "{{hos_port}}",
|
|
"path": [
|
|
"hos",
|
|
"traffic_file_bucket"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "delete",
|
|
"value": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "delete_troubleshooting_pcap_files_test",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"pm.test(\"Status code is 200\", function () {",
|
|
" pm.response.to.not.be.error;",
|
|
" pm.response.to.be.json;",
|
|
"});",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
},
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"exec": [
|
|
""
|
|
],
|
|
"type": "text/javascript",
|
|
"packages": {}
|
|
}
|
|
}
|
|
],
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "urlencoded",
|
|
"urlencoded": []
|
|
},
|
|
"url": {
|
|
"raw": "http://{{qgw_ip}}:{{qgw_port}}/v1/hos/traffic_file_bucket?file_names=123e4567-e89b-12d3-a456-426614174006",
|
|
"protocol": "http",
|
|
"host": [
|
|
"{{qgw_ip}}"
|
|
],
|
|
"port": "{{qgw_port}}",
|
|
"path": [
|
|
"v1",
|
|
"hos",
|
|
"traffic_file_bucket"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "file_names",
|
|
"value": "123e4567-e89b-12d3-a456-426614174006"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |