-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stats): 'no data' for grafana chart errors count (#1039)
* initialize counter to 0 to avoid 'no data' in grafana * reorg integration tests to allow parallel run
- Loading branch information
Showing
7 changed files
with
37 additions
and
14 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
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,15 @@ | ||
use reqwest::{RequestBuilder, Response}; | ||
|
||
pub async fn send_arbitrary_request(request: RequestBuilder) -> Response { | ||
let response = request | ||
.send() | ||
.await | ||
.unwrap_or_else(|_| panic!("Failed to send request")); | ||
|
||
if !response.status().is_success() { | ||
let status = response.status(); | ||
let message = response.text().await.expect("Read body as text"); | ||
panic!("Invalid status code (success expected). Status: {status}. Message: {message}") | ||
} | ||
response | ||
} |
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
File renamed without changes.
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,5 @@ | ||
mod common; | ||
|
||
mod counters; | ||
mod lines; | ||
mod swagger; |
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
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