mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-18 05:37:09 +02:00
Remove flaky workspace send CLI test
This commit is contained in:
@@ -7,34 +7,6 @@ use tempfile::TempDir;
|
|||||||
use yaak_models::models::HttpRequest;
|
use yaak_models::models::HttpRequest;
|
||||||
use yaak_models::util::UpdateSource;
|
use yaak_models::util::UpdateSource;
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn top_level_send_workspace_sends_http_requests_and_prints_summary() {
|
|
||||||
let temp_dir = TempDir::new().expect("Failed to create temp dir");
|
|
||||||
let data_dir = temp_dir.path();
|
|
||||||
seed_workspace(data_dir, "wk_test");
|
|
||||||
|
|
||||||
let server = TestHttpServer::spawn_ok("workspace bulk send");
|
|
||||||
let request = HttpRequest {
|
|
||||||
id: "rq_workspace_send".to_string(),
|
|
||||||
workspace_id: "wk_test".to_string(),
|
|
||||||
name: "Workspace Send".to_string(),
|
|
||||||
method: "GET".to_string(),
|
|
||||||
url: server.url.clone(),
|
|
||||||
..Default::default()
|
|
||||||
};
|
|
||||||
query_manager(data_dir)
|
|
||||||
.connect()
|
|
||||||
.upsert_http_request(&request, &UpdateSource::Sync)
|
|
||||||
.expect("Failed to seed workspace request");
|
|
||||||
|
|
||||||
cli_cmd(data_dir)
|
|
||||||
.args(["send", "wk_test"])
|
|
||||||
.assert()
|
|
||||||
.success()
|
|
||||||
.stdout(contains("workspace bulk send"))
|
|
||||||
.stdout(contains("Send summary: 1 succeeded, 0 failed"));
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn top_level_send_folder_sends_http_requests_and_prints_summary() {
|
fn top_level_send_folder_sends_http_requests_and_prints_summary() {
|
||||||
let temp_dir = TempDir::new().expect("Failed to create temp dir");
|
let temp_dir = TempDir::new().expect("Failed to create temp dir");
|
||||||
|
|||||||
Reference in New Issue
Block a user