Skip to content

Commit

Permalink
Merge pull request #303 from sigstore/dependabot/cargo/testcontainers…
Browse files Browse the repository at this point in the history
…-0.15

chore(deps): Update testcontainers requirement from 0.14 to 0.15
  • Loading branch information
flavio authored Oct 11, 2023
2 parents 78eb89d + c94d6f7 commit 4386eaf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ openssl = "0.10.38"
rstest = "0.18.1"
serial_test = "2.0.0"
tempfile = "3.3.0"
testcontainers = "0.14"
testcontainers = "0.15"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
hex = "0.4.3"

Expand Down
10 changes: 3 additions & 7 deletions src/cosign/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,7 @@ mod tests {
use crate::crypto::{CosignVerificationKey, SigningScheme};

#[cfg(feature = "test-registry")]
use testcontainers::{
clients,
core::WaitFor,
images::{self, generic::GenericImage},
};
use testcontainers::{clients, core::WaitFor};

pub(crate) const REKOR_PUB_KEY: &str = r#"-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2G2Y+2tabdTV5BcGiBIx0a9fAFwr
Expand Down Expand Up @@ -674,8 +670,8 @@ TNMea7Ix/stJ5TfcLLeABLE4BNJOsQ4vnBHJ
}

#[cfg(feature = "test-registry")]
fn registry_image() -> GenericImage {
images::generic::GenericImage::new("docker.io/library/registry", "2")
fn registry_image() -> testcontainers::GenericImage {
testcontainers::GenericImage::new("docker.io/library/registry", "2")
.with_wait_for(WaitFor::message_on_stderr("listening on "))
}
}
3 changes: 1 addition & 2 deletions src/crypto/signing_key/kdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ impl ScryptKDF {
self.params.p,
scrypt::Params::RECOMMENDED_LEN,
)?;
let mut res = Vec::new();
res.resize(BOX_KEY_SIZE, 0x00);
let mut res = vec![0; BOX_KEY_SIZE];
scrypt::scrypt(password, &self.salt, &params, &mut res)?;
Ok(res)
}
Expand Down

0 comments on commit 4386eaf

Please sign in to comment.