1
0
mirror of https://github.com/bitwarden/server synced 2026-01-02 00:23:40 +00:00

test(auth-validator): [PM-22975] Client Version Validator - added one more test

This commit is contained in:
Patrick Pimentel
2025-12-11 13:17:05 -05:00
parent ad68312432
commit 3f0d7d2b55

View File

@@ -30,6 +30,7 @@ public class EncryptionParsingTests
[InlineData(TestEncryptionConstants.V2PrivateKey, EncryptionType.XChaCha20Poly1305_B64)]
[InlineData(TestEncryptionConstants.V2WrappedSigningKey, EncryptionType.XChaCha20Poly1305_B64)]
[InlineData(TestEncryptionConstants.AES256_CBC_HMAC_EmptySuffix, EncryptionType.AesCbc256_HmacSha256_B64)] // empty suffix still valid
[InlineData(TestEncryptionConstants.XCHACHA20POLY1305_B64_Encstring, EncryptionType.XChaCha20Poly1305_B64)]
public void GetEncryptionType_WithValidString_ReturnsExpected(string input, EncryptionType expected)
{
var result = EncryptionParsing.GetEncryptionType(input);