mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-17 10:17:55 +00:00
test(sse): align KMS context error assertion (#6118)
This commit is contained in:
@@ -4565,11 +4565,9 @@ mod tests {
|
|||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
.expect_err("mismatched kms context should fail");
|
.expect_err("mismatched kms context should fail");
|
||||||
assert!(
|
assert_eq!(err.code, S3ErrorCode::InternalError);
|
||||||
err.message.contains("context") || err.message.contains("Context"),
|
assert_eq!(err.message, ApiError::error_code_to_message(&S3ErrorCode::InternalError));
|
||||||
"unexpected error for mismatched kms context: {}",
|
assert_eq!(super::kms_data_plane_error_class(&err), "context_mismatch");
|
||||||
err.message
|
|
||||||
);
|
|
||||||
|
|
||||||
manager.stop().await.expect("kms service should stop cleanly");
|
manager.stop().await.expect("kms service should stop cleanly");
|
||||||
reset_sse_dek_provider();
|
reset_sse_dek_provider();
|
||||||
|
|||||||
Reference in New Issue
Block a user