mod common;
use common::{MockTransport, client_with_mock, request_keys};
use serde_json::json;
use std::sync::Arc;
#[tokio::test]
async fn run_constructs_expected_request() {
let mock = Arc::new(MockTransport::default());
let client = client_with_mock(mock.clone());
client.exec().run("ws/a", json!({})).await.unwrap();
assert!(request_keys(&mock).contains(&"POST /api/v1/workspaces/ws%2Fa/exec".to_string()));
}