Skip to content

Commit

Permalink
test getMetricsFromTestServer
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenye committed Nov 19, 2023
1 parent 1dc9beb commit 343cb53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pw-bordercontrol/cmd/bordercontrol/stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ func TestStats(t *testing.T) {
// tests
checkPromMetricsExist(t, body, expectedMetrics)

// test APIs
body = getMetricsFromTestServer(t, fmt.Sprintf("%s/api/v1/feeders/", statsBaseURL))
fmt.Println(body)

// add another beast connection
stats.addConnection(u, &ip, &ip, protoBeast, 3)

Expand Down

0 comments on commit 343cb53

Please sign in to comment.