Skip to content

Commit

Permalink
chore(integration-tests): replace serde_cbor with ciborium
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Diez <[email protected]>
  • Loading branch information
7flying authored and Irene Diez committed Apr 9, 2024
1 parent dbfac37 commit db92675
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ path = "tests/to.rs"

[dev-dependencies]
anyhow = "1"
ciborium = "0.2.0"
hex = "0.4"
tempfile = "3"
tera = "1"
Expand All @@ -28,7 +29,6 @@ libc = "0.2"
reqwest = { version = "0.11", features = ["json"] }
tokio = "1.25.0"
serde = "1"
serde_cbor = "0.11"
serde_json = "1.0"
pretty_assertions = "1.0.0"
paste = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/tests/to.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ ssh-ed25519 sshkey_default [email protected]

fn determine_device_credential_guid(path: &Path) -> Result<Guid> {
let dc_contents = fs::read(path).context("Error reading device credential")?;
let dc: FileDeviceCredential =
serde_cbor::from_slice(&dc_contents).context("Error deserializing device credential")?;
let dc: FileDeviceCredential = ciborium::de::from_reader(dc_contents.as_slice())
.context("Error deserializing device credential")?;
Ok(dc.guid)
}

0 comments on commit db92675

Please sign in to comment.