From b6186aa9015f8ddb5d59d1346a2cdc935a26d061 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 27 Jan 2023 08:32:40 +0100 Subject: [PATCH] without integration --- src/cli.rs | 2 +- src/downloader.rs | 4 ++-- tests/integration.rs | 18 ------------------ 3 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 tests/integration.rs diff --git a/src/cli.rs b/src/cli.rs index 0faf23f..7f95946 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -15,7 +15,7 @@ impl Cli { let matches = self.cmd.get_matches_from(args); match matches.subcommand() { - Some(("generate", args)) => Ok(()), + Some(("generate", _args)) => Ok(()), _ => eyre::bail!("command missing"), } } diff --git a/src/downloader.rs b/src/downloader.rs index 57dfbfe..31105bd 100644 --- a/src/downloader.rs +++ b/src/downloader.rs @@ -132,10 +132,10 @@ impl Downloader { Ok(cli_bin_path) } - fn download(&self, path: PathBuf) -> eyre::Result { + fn download(&self, _path: PathBuf) -> eyre::Result { let expected_checksum = self.expected_checksum()?; - let (actual_hash, tempbin) = self.extract_cli_archive()?; + let (actual_hash, _tempbin) = self.extract_cli_archive()?; if expected_checksum != actual_hash { eyre::bail!("downloaded CLI binary checksum doesn't match checksum from checksums.txt") diff --git a/tests/integration.rs b/tests/integration.rs deleted file mode 100644 index 3385c7a..0000000 --- a/tests/integration.rs +++ /dev/null @@ -1,18 +0,0 @@ -#[cfg(test)] -mod test { - use rust::dagger; - - #[test] - fn example_container() { - let client = dagger::connect().unwrap(); - let alpine = client.container().from("alpine:3.16.2").unwrap(); - let out = alpine - .exec(dagger::ContainerExecOpts { - args: vec!["cat", "/etc/alpine-release"], - }) - .stdout() - .unwrap(); - - assert_eq!("3.16.2", out); - } -}