Skip to content

Commit

Permalink
add events list endpoint ot the test
Browse files Browse the repository at this point in the history
  • Loading branch information
azhur committed Apr 23, 2024
1 parent 0fc22c7 commit 52cc60b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/meteroid/tests/integration/test_webhooks_out.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,22 @@ async fn test_webhook_endpoint_out() {

assert_eq!(listed.len(), 1);
assert_eq!(listed[0], created);

// events
let events = clients
.webhooks_out
.clone()
.list_webhook_events(api::webhooks::out::v1::ListWebhookEventsRequest {
order_by: api::webhooks::out::v1::list_webhook_events_request::SortBy::DateDesc as i32,
endpoint_id: created.id,
pagination: None,
})
.await
.unwrap()
.into_inner()
.events;
assert_eq!(events.len(), 0);

// teardown
meteroid_it::container::terminate_meteroid(setup.token, setup.join_handle).await
}
Expand Down

0 comments on commit 52cc60b

Please sign in to comment.