use dialtone_common::rest::actors::actor_pages_exchanges::GetAllOwnedActorPagesRequest; use dialtone_reqwest::api_v1::actors::page_owned_actors::page_owned_actors; use dialtone_test_util::create_system::create_system_tst_utl; use dialtone_test_util::test_action; use dialtone_test_util::test_constants::{TEST_ACTORADMIN_NAME, TEST_HOSTNAME, TEST_PASSWORD}; use dialtone_test_util::test_pg::test_pg; use dialtone_test_util::test_server::start_test_srv_and_auth; #[tokio::test] #[allow(non_snake_case)] async fn GIVEN_actoradmin_WHEN_page_actors_THEN_succes() { test_pg(move |pool| async move { // GIVEN actoradmin create_system_tst_utl(&pool).await; let sc = start_test_srv_and_auth(pool, TEST_ACTORADMIN_NAME, TEST_PASSWORD).await; // WHEN page_actors let request = GetAllOwnedActorPagesRequest { prev_date: None, next_date: None, limit: 10, visibility: None, actor_type: None, host_name: TEST_HOSTNAME.to_string(), }; let action = page_owned_actors(&sc, &request).await; // THEN success test_action!(action); }) .await; }