-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add more monitor related e2e testing case (#1391)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
- Loading branch information
1 parent
6283e4d
commit 2e96b62
Showing
8 changed files
with
299 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"detected": false, | ||
"collector": "", | ||
"monitor": { | ||
"intervals": 60, | ||
"tags": [], | ||
"app": "ftp", | ||
"host": "127.0.0.1", | ||
"name": "{{.param.monitorFTP}}" | ||
}, | ||
"params": [ | ||
{ | ||
"field": "host", | ||
"type": 1, | ||
"value": "127.0.0.1" | ||
}, | ||
{ | ||
"field": "port", | ||
"type": 0, | ||
"value": 21 | ||
}, | ||
{ | ||
"field": "direction", | ||
"type": 1, | ||
"value": "127.0.0.1" | ||
}, | ||
{ | ||
"field": "timeout", | ||
"type": 0, | ||
"value": 1000 | ||
}, | ||
{ | ||
"field": "username", | ||
"type": 1 | ||
}, | ||
{ | ||
"field": "password", | ||
"type": 1 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"detected": false, | ||
"collector": "", | ||
"monitor": { | ||
"intervals": 60, | ||
"tags": [], | ||
"app": "ping", | ||
"host": "127.0.0.1", | ||
"name": "{{.param.monitorPing}}" | ||
}, | ||
"params": [ | ||
{ | ||
"field": "host", | ||
"type": 1, | ||
"value": "127.0.0.1" | ||
}, | ||
{ | ||
"field": "timeout", | ||
"type": 0, | ||
"value": 6000 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"detected": false, | ||
"collector": "", | ||
"monitor": { | ||
"intervals": 60, | ||
"tags": [], | ||
"app": "port", | ||
"host": "127.0.0.1", | ||
"name": "{{.param.monitorPort}}" | ||
}, | ||
"params": [ | ||
{ | ||
"field": "host", | ||
"type": 1, | ||
"value": "127.0.0.1" | ||
}, | ||
{ | ||
"field": "port", | ||
"type": 0, | ||
"value": 80 | ||
}, | ||
{ | ||
"field": "timeout", | ||
"type": 0, | ||
"value": 6000 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"detected": false, | ||
"collector": "", | ||
"monitor": { | ||
"intervals": 60, | ||
"tags": [], | ||
"app": "fullsite", | ||
"host": "127.0.0.1", | ||
"name": "{{.param.monitorSiteMap}}" | ||
}, | ||
"params": [ | ||
{ | ||
"field": "host", | ||
"type": 1, | ||
"value": "127.0.0.1" | ||
}, | ||
{ | ||
"field": "port", | ||
"type": 0, | ||
"value": 80 | ||
}, | ||
{ | ||
"field": "sitemap", | ||
"type": 1, | ||
"value": "sitemap.xml" | ||
}, | ||
{ | ||
"field": "ssl", | ||
"type": 1, | ||
"value": false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"detected": false, | ||
"collector": "", | ||
"monitor": { | ||
"intervals": 60, | ||
"tags": [], | ||
"app": "ssl_cert", | ||
"host": "127.0.0.1", | ||
"name": "{{.param.monitorSSL}}" | ||
}, | ||
"params": [ | ||
{ | ||
"field": "host", | ||
"type": 1, | ||
"value": "127.0.0.1" | ||
}, | ||
{ | ||
"field": "port", | ||
"type": 0, | ||
"value": 443 | ||
}, | ||
{ | ||
"field": "uri", | ||
"type": 1 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"detected": false, | ||
"collector": "", | ||
"monitor": { | ||
"intervals": 60, | ||
"tags": [], | ||
"app": "udp_port", | ||
"host": "127.0.0.1", | ||
"name": "{{.param.monitorUDP}}" | ||
}, | ||
"params": [ | ||
{ | ||
"field": "host", | ||
"type": 1, | ||
"value": "127.0.0.1" | ||
}, | ||
{ | ||
"field": "port", | ||
"type": 0, | ||
"value": 81 | ||
}, | ||
{ | ||
"field": "timeout", | ||
"type": 0, | ||
"value": 6000 | ||
}, | ||
{ | ||
"field": "content", | ||
"type": 1 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"detected": false, | ||
"collector": "", | ||
"monitor": { | ||
"intervals": 60, | ||
"tags": [], | ||
"app": "website", | ||
"host": "127.0.0.1", | ||
"name": "{{.param.monitorWebsite}}" | ||
}, | ||
"params": [ | ||
{ | ||
"field": "host", | ||
"type": 1, | ||
"value": "127.0.0.1" | ||
}, | ||
{ | ||
"field": "port", | ||
"type": 0, | ||
"value": 80 | ||
}, | ||
{ | ||
"field": "uri", | ||
"type": 1 | ||
}, | ||
{ | ||
"field": "ssl", | ||
"type": 1, | ||
"value": false | ||
}, | ||
{ | ||
"field": "timeout", | ||
"type": 0 | ||
}, | ||
{ | ||
"field": "authType", | ||
"type": 1 | ||
}, | ||
{ | ||
"field": "username", | ||
"type": 1 | ||
}, | ||
{ | ||
"field": "password", | ||
"type": 1 | ||
}, | ||
{ | ||
"field": "keyword", | ||
"type": 1 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters