2020-12-29 08:32:57 +00:00
|
|
|
#![cfg(feature = "test-integration")]
|
|
|
|
|
|
|
|
use anyhow::Result;
|
|
|
|
|
|
|
|
use common::TEST_OUTPUT;
|
|
|
|
|
|
|
|
mod common;
|
|
|
|
|
|
|
|
#[tokio::test]
|
2020-12-31 05:47:54 +00:00
|
|
|
async fn main() -> Result<()> {
|
2020-12-29 08:32:57 +00:00
|
|
|
let client = common::new_client().await?;
|
|
|
|
let client = client.outputs();
|
|
|
|
|
|
|
|
client.list_outputs().await?;
|
|
|
|
client.get_output_info(TEST_OUTPUT).await?;
|
|
|
|
client.start_output(TEST_OUTPUT).await?;
|
|
|
|
client.stop_output(TEST_OUTPUT, Some(true)).await?;
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|