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
|
||||
.expect_err("mismatched kms context should fail");
|
||||
assert!(
|
||||
err.message.contains("context") || err.message.contains("Context"),
|
||||
"unexpected error for mismatched kms context: {}",
|
||||
err.message
|
||||
);
|
||||
assert_eq!(err.code, S3ErrorCode::InternalError);
|
||||
assert_eq!(err.message, ApiError::error_code_to_message(&S3ErrorCode::InternalError));
|
||||
assert_eq!(super::kms_data_plane_error_class(&err), "context_mismatch");
|
||||
|
||||
manager.stop().await.expect("kms service should stop cleanly");
|
||||
reset_sse_dek_provider();
|
||||
|
||||
Reference in New Issue
Block a user