mirror of
https://github.com/bitwarden/server
synced 2026-01-08 03:23:20 +00:00
test(auth-validator): [PM-22975] Client Version Validator - added one more test
This commit is contained in:
@@ -30,6 +30,7 @@ public class EncryptionParsingTests
|
|||||||
[InlineData(TestEncryptionConstants.V2PrivateKey, EncryptionType.XChaCha20Poly1305_B64)]
|
[InlineData(TestEncryptionConstants.V2PrivateKey, EncryptionType.XChaCha20Poly1305_B64)]
|
||||||
[InlineData(TestEncryptionConstants.V2WrappedSigningKey, 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.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)
|
public void GetEncryptionType_WithValidString_ReturnsExpected(string input, EncryptionType expected)
|
||||||
{
|
{
|
||||||
var result = EncryptionParsing.GetEncryptionType(input);
|
var result = EncryptionParsing.GetEncryptionType(input);
|
||||||
|
|||||||
Reference in New Issue
Block a user