From f97c1c0858161a8c0e0f64b862aaceea0035d371 Mon Sep 17 00:00:00 2001 From: Divma <26765164+divagant-martian@users.noreply.github.com> Date: Thu, 25 Jul 2024 14:14:13 -0500 Subject: [PATCH] tests(iroh-cli): update to new api (#2549) ## Description We recently update the api from `blob` to `blobs`, and `tag` to `tags`. This adjusts the tests. ## Breaking Changes n/a ## Notes & open questions n/a ## Change checklist - [x] Self-review. - [ ] ~~Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant.~~ - [ ] ~~Tests if relevant.~~ - [ ] ~~All breaking changes documented.~~ --- iroh-cli/tests/cli.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iroh-cli/tests/cli.rs b/iroh-cli/tests/cli.rs index 9d74b2ab37..9da3996da6 100644 --- a/iroh-cli/tests/cli.rs +++ b/iroh-cli/tests/cli.rs @@ -388,18 +388,18 @@ fn cli_bao_store_migration() -> anyhow::Result<()> { ); println!("iroh started up."); - let tags_output = run_cli(&iroh_data_dir, ["tag", "list"])?; + let tags_output = run_cli(&iroh_data_dir, ["tags", "list"])?; let expected = r#""complete": 2vfkw5gcrtbybfsczoxq4mae47svtgcgsniwcvoz7xf36nz45yfa (Raw) "partial": 4yny3v7anmzzsajv2amm3nxpqd2owfw4dqnjwq6anv7nj2djmt2q (Raw) "#; assert_eq!(tags_output, expected); - let blob_output = run_cli(&iroh_data_dir, ["blob", "list", "blobs"])?; + let blob_output = run_cli(&iroh_data_dir, ["blobs", "list", "blobs"])?; let expected = r#" 2vfkw5gcrtbybfsczoxq4mae47svtgcgsniwcvoz7xf36nz45yfa (8 B) "#; assert_eq!(blob_output, expected); - let incomplete_blob_output = run_cli(iroh_data_dir, ["blob", "list", "incomplete-blobs"])?; + let incomplete_blob_output = run_cli(iroh_data_dir, ["blobs", "list", "incomplete-blobs"])?; let expected = r#"4yny3v7anmzzsajv2amm3nxpqd2owfw4dqnjwq6anv7nj2djmt2q (0 B) "#; assert_eq!(incomplete_blob_output, expected); @@ -709,7 +709,7 @@ fn make_get_cmd(iroh_data_dir: &Path, ticket: &str, out: Option) -> duc "--metrics-port", "disabled", "--start", - "blob", + "blobs", "get", ticket, "--out", @@ -830,7 +830,7 @@ fn test_provide_get_loop_single(input: Input, output: Output, hash: Hash) -> Res "--metrics-port", "disabled", "--start", - "blob", + "blobs", "get", "--node", &node,