Skip to content

Commit

Permalink
Update intance-watcher integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaecker committed Aug 17, 2024
1 parent 42aa9ca commit f1fddda
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions nexus/tests/integration_tests/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use nexus_test_utils::resource_helpers::{
};
use nexus_test_utils::ControlPlaneTestContext;
use nexus_test_utils_macros::nexus_test;
use nexus_types::external_api::views::OxqlQueryResult;
use omicron_test_utils::dev::poll::{wait_for_condition, CondCheckError};
use omicron_uuid_kinds::{GenericUuid, InstanceUuid};
use oximeter::types::Datum;
Expand Down Expand Up @@ -307,12 +308,14 @@ pub async fn timeseries_query(
.unwrap_or_else(|e| {
panic!("timeseries query failed: {e:?}\nquery: {query}")
});
rsp.parsed_body().unwrap_or_else(|e| {
panic!(
"could not parse timeseries query response: {e:?}\n\
rsp.parsed_body::<OxqlQueryResult>()
.unwrap_or_else(|e| {
panic!(
"could not parse timeseries query response: {e:?}\n\
query: {query}\nresponse: {rsp:#?}"
);
})
);
})
.tables
}

#[nexus_test]
Expand Down

0 comments on commit f1fddda

Please sign in to comment.