Skip to content

Commit

Permalink
verify_sig: fix paths to key files in unit tests
Browse files Browse the repository at this point in the history
Now that we moved verify_sig to update-format-crau, key file paths
should be also updated.
  • Loading branch information
dongsupark committed Sep 27, 2023
1 parent c1fd110 commit 1f3abd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions update-format-crau/src/verify_sig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ mod tests {
use crate::verify_sig::KeyType::{KeyTypePkcs1, KeyTypePkcs8};

const TESTDATA: &str = "test data for verifying signature";
const PRIVKEY_PKCS1_PATH: &str = "./src/testdata/private_key_test_pkcs1.pem";
const PUBKEY_PKCS1_PATH: &str = "./src/testdata/public_key_test_pkcs1.pem";
const PRIVKEY_PKCS8_PATH: &str = "./src/testdata/private_key_test_pkcs8.pem";
const PUBKEY_PKCS8_PATH: &str = "./src/testdata/public_key_test_pkcs8.pem";
const PRIVKEY_PKCS1_PATH: &str = "../src/testdata/private_key_test_pkcs1.pem";
const PUBKEY_PKCS1_PATH: &str = "../src/testdata/public_key_test_pkcs1.pem";
const PRIVKEY_PKCS8_PATH: &str = "../src/testdata/private_key_test_pkcs8.pem";
const PUBKEY_PKCS8_PATH: &str = "../src/testdata/public_key_test_pkcs8.pem";

#[test]
fn test_verify_sig() {
Expand Down

0 comments on commit 1f3abd9

Please sign in to comment.