Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Dec 15, 2022
1 parent 28848f3 commit f82c4c0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions cmd/pint/tests/0025_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,33 @@ level=info msg="Loading configuration file" path=.pint.hcl
"uptime": "up",
"required": true
},
{
"name": "prom-with-failover",
"uri": "http://127.0.0.1",
"failover": [
"http://127.0.0.1",
"http://127.0.0.1"
],
"timeout": "2m0s",
"concurrency": 16,
"rateLimit": 100,
"uptime": "up",
"required": false
},
{
"name": "prom-with-tags",
"uri": "http://127.0.0.1",
"timeout": "2m0s",
"concurrency": 16,
"rateLimit": 100,
"uptime": "up",
"tags": [
"a",
"@",
"1"
],
"required": false
},
{
"name": "custom-concurrency",
"uri": "http://127.0.0.1",
Expand Down Expand Up @@ -155,6 +182,16 @@ prometheus "prom" {
required = true
}

prometheus "prom-with-failover" {
uri = "http://127.0.0.1"
failover = ["http://127.0.0.1", "http://127.0.0.1"]
}

prometheus "prom-with-tags" {
uri = "http://127.0.0.1"
tags = ["a", "@", "1"]
}

prometheus "custom-concurrency" {
uri = "http://127.0.0.1"
required = false
Expand Down

0 comments on commit f82c4c0

Please sign in to comment.