@@ -12,9 +12,7 @@ use serde::{Deserialize, Serialize};
1212use thiserror:: Error ;
1313use x509_parser:: prelude:: * ;
1414
15- use crate :: attestation:: {
16- dcap:: verify_dcap_attestation_with_given_timestamp, measurements:: MultiMeasurements ,
17- } ;
15+ use crate :: { dcap:: verify_dcap_attestation_with_given_timestamp, measurements:: MultiMeasurements } ;
1816
1917/// The attestation evidence payload that gets sent over the channel
2018#[ derive( Debug , Serialize , Deserialize ) ]
@@ -339,12 +337,12 @@ pub enum MaaError {
339337 #[ error( "HCL runtime claims user-data does not match expected report input data" ) ]
340338 ClaimsUserDataInputMismatch ,
341339 #[ error( "DCAP verification: {0}" ) ]
342- DcapVerification ( #[ from] crate :: attestation :: dcap:: DcapVerificationError ) ,
340+ DcapVerification ( #[ from] crate :: dcap:: DcapVerificationError ) ,
343341}
344342
345343#[ cfg( test) ]
346344mod tests {
347- use crate :: attestation :: measurements:: MeasurementPolicy ;
345+ use crate :: measurements:: MeasurementPolicy ;
348346
349347 use super :: * ;
350348
@@ -363,7 +361,7 @@ mod tests {
363361 #[ tokio:: test]
364362 async fn test_decode_hcl ( ) {
365363 // From cvm-reverse-proxy/internal/attestation/azure/tdx/testdata/hclreport.bin
366- let hcl_bytes: & ' static [ u8 ] = include_bytes ! ( "../../../ test-assets/hclreport.bin" ) ;
364+ let hcl_bytes: & ' static [ u8 ] = include_bytes ! ( "../../test-assets/hclreport.bin" ) ;
367365
368366 let hcl_report = hcl:: HclReport :: new ( hcl_bytes. to_vec ( ) ) . unwrap ( ) ;
369367 let hcl_var_data = hcl_report. var_data ( ) ;
@@ -382,7 +380,7 @@ mod tests {
382380 #[ tokio:: test]
383381 async fn test_verify ( ) {
384382 let attestation_bytes: & ' static [ u8 ] =
385- include_bytes ! ( "../../../ test-assets/azure-tdx-1764662251380464271" ) ;
383+ include_bytes ! ( "../../test-assets/azure-tdx-1764662251380464271" ) ;
386384
387385 // To avoid this test stopping working when the certificate is no longer valid we pass in a
388386 // timestamp
@@ -411,7 +409,7 @@ mod tests {
411409 . unwrap ( ) ;
412410
413411 let collateral_bytes: & ' static [ u8 ] =
414- include_bytes ! ( "../../../ test-assets/azure-collateral02.json" ) ;
412+ include_bytes ! ( "../../test-assets/azure-collateral02.json" ) ;
415413
416414 let collateral = serde_json:: from_slice ( collateral_bytes) . unwrap ( ) ;
417415
@@ -432,14 +430,14 @@ mod tests {
432430 #[ tokio:: test]
433431 async fn test_verify_fails_on_input_mismatch ( ) {
434432 let attestation_bytes: & ' static [ u8 ] =
435- include_bytes ! ( "../../../ test-assets/azure-tdx-1764662251380464271" ) ;
433+ include_bytes ! ( "../../test-assets/azure-tdx-1764662251380464271" ) ;
436434 let now = 1771423480 ;
437435
438436 let mut expected_input_data = input_data_from_attestation ( attestation_bytes) ;
439437 expected_input_data[ 63 ] ^= 0x01 ;
440438
441439 let collateral_bytes: & ' static [ u8 ] =
442- include_bytes ! ( "../../../ test-assets/azure-collateral02.json" ) ;
440+ include_bytes ! ( "../../test-assets/azure-collateral02.json" ) ;
443441 let collateral = serde_json:: from_slice ( collateral_bytes) . unwrap ( ) ;
444442
445443 let err = verify_azure_attestation_with_given_timestamp (
0 commit comments