Skip to content

Commit d980734

Browse files
Remove skip message from Raw Keyring encrypt tests
1 parent 856742f commit d980734

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

testVectors/TestVectors.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ public override IEnumerator<object[]> GetEnumerator() {
146146
string vectorID = vectorEntry.Key;
147147
TestVector vector = vectorEntry.Value;
148148

149-
bool shouldSkip = VectorContainsMasterkeyOfType(vector, "raw");
149+
// We are unable to test Raw Keyrings untill #137 is resolved.
150+
if (VectorContainsMasterkeyOfType(vector, "raw")) {
151+
continue;
152+
}
150153

151154
string plaintextPath = ManifestURIToPath(vector.plaintext, vectorRoot);
152155
if (!File.Exists(plaintextPath)) {
@@ -156,7 +159,7 @@ public override IEnumerator<object[]> GetEnumerator() {
156159

157160
CMM cmm = CMMFactory.EncryptCMM(vector, keyMap);
158161

159-
yield return new object[] { vectorEntry.Key, cmm, plaintext, client, decryptOracle, shouldSkip };
162+
yield return new object[] { vectorEntry.Key, cmm, plaintext, client, decryptOracle };
160163
}
161164
}
162165
}
@@ -279,10 +282,9 @@ public void CanDecryptTestVector(string vectorID, CMM cmm, byte[] expectedPlaint
279282
}
280283

281284
#pragma warning disable xUnit1026 // Suppress Unused argument warnings for vectorID.
282-
[SkippableTheory]
285+
[Theory]
283286
[ClassData (typeof(EncryptTestVectors))]
284-
public void CanEncryptTestVector(string vectorID, CMM cmm, byte[] plaintext, HttpClient client, string decryptOracle, bool shouldSkip) {
285-
Skip.If(shouldSkip);
287+
public void CanEncryptTestVector(string vectorID, CMM cmm, byte[] plaintext, HttpClient client, string decryptOracle) {
286288
MemoryStream ciphertext = AWSEncryptionSDK.Client.Encrypt(new MemoryStream(plaintext), cmm, new Dictionary<string, string>());
287289

288290
StreamContent content = new StreamContent(ciphertext);

0 commit comments

Comments
 (0)