diff options
| -rw-r--r-- | Cargo.lock | 2 | ||||
| -rw-r--r-- | nix/package.nix | 2 | ||||
| -rw-r--r-- | tests/receptor.rs | 7 |
3 files changed, 9 insertions, 2 deletions
@@ -94,7 +94,7 @@ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" [[package]] name = "config" version = "0.1.0" -source = "git+https://cgit.krebsco.de/continuum#bcb729ce0cae2cd8bbd8f60f8e98a81674bcd4fb" +source = "git+https://cgit.krebsco.de/continuum#34434f7fd5a6bab1884a63c96679f48045f4bffd" dependencies = [ "anyhow", "clap", diff --git a/nix/package.nix b/nix/package.nix index a919061..ecaf41b 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -26,7 +26,7 @@ rustPlatform.buildRustPackage { cargoLock = { lockFile = ../Cargo.lock; - outputHashes."config-0.1.0" = "sha256-qtUSpjOQsC9NFwgDXqDIqzvzU1zZqoD90se/ccWSKNs="; + outputHashes."config-0.1.0" = "sha256-uulfkMx4Nuh22xd7sujqQKSr9AikY8j0CgQygqvs/zw="; }; meta = { diff --git a/tests/receptor.rs b/tests/receptor.rs index 843eaa6..656ed1f 100644 --- a/tests/receptor.rs +++ b/tests/receptor.rs @@ -427,6 +427,9 @@ fn pack_from_sources() { "items": { "a.key": { "source": { "file": "key" } }, "a.pub": { "source": { "command": [lister, "show", "${file:key}"] } }, + // A placeholder in parentheses, as a whole value: text, its trailing line + // breaks removed. + "extra": { "source": format!("$(cmd: {lister} show extra)") }, } }); let path = host.root.join("sources.json"); @@ -442,6 +445,10 @@ fn pack_from_sources() { std::fs::read(out.join("channels/secrets/a.pub")).unwrap(), b"pub-of-K\n\n" ); + assert_eq!( + std::fs::read(out.join("channels/secrets/extra")).unwrap(), + b"pub-of-extra" + ); // The pair validator compares without trailing line breaks ($(cat)). let plan = host.apply(&schema, &out); assert!(plan.accepted, "{plan:?}"); |
