|
48 | 48 | using Xunit.Abstractions;
|
49 | 49 | using Xunit.Sdk;
|
50 | 50 | using Reflector = MongoDB.Bson.TestHelpers.Reflector;
|
51 |
| -using SkipException = Xunit.SkipException; |
52 | 51 |
|
53 | 52 | namespace MongoDB.Driver.Tests.Specifications.client_side_encryption.prose_tests
|
54 | 53 | {
|
@@ -86,7 +85,7 @@ public ClientEncryptionProseTests(ITestOutputHelper testOutputHelper)
|
86 | 85 | }
|
87 | 86 |
|
88 | 87 | // public methods
|
89 |
| - [SkippableTheory] |
| 88 | + [Theory] |
90 | 89 | [ParameterAttributeData]
|
91 | 90 | public void BsonSizeLimitAndBatchSizeSplittingTest(
|
92 | 91 | [Values(false, true)] bool async)
|
@@ -251,7 +250,7 @@ public void BsonSizeLimitAndBatchSizeSplittingTest(
|
251 | 250 | }
|
252 | 251 | }
|
253 | 252 |
|
254 |
| - [SkippableTheory] |
| 253 | + [Theory] |
255 | 254 | [ParameterAttributeData]
|
256 | 255 | public void BypassMongocryptdClientWhenSharedLibraryTest(
|
257 | 256 | [Values(false, true)] bool async)
|
@@ -320,7 +319,7 @@ void ThreadStart(object param)
|
320 | 319 | }
|
321 | 320 | }
|
322 | 321 |
|
323 |
| - [SkippableTheory] |
| 322 | + [Theory] |
324 | 323 | [ParameterAttributeData]
|
325 | 324 | public void BypassSpawningMongocryptdViaMongocryptdBypassSpawnTest(
|
326 | 325 | [Values(false, true)] bool async)
|
@@ -355,7 +354,7 @@ public enum BypassSpawningMongocryptd
|
355 | 354 | SharedLibrary
|
356 | 355 | }
|
357 | 356 |
|
358 |
| - [SkippableTheory] |
| 357 | + [Theory] |
359 | 358 | [ParameterAttributeData]
|
360 | 359 | public void BypassSpawningMongocryptdTest(
|
361 | 360 | [Values(BypassSpawningMongocryptd.BypassQueryAnalysis, BypassSpawningMongocryptd.BypassAutoEncryption, BypassSpawningMongocryptd.SharedLibrary)] BypassSpawningMongocryptd bypassSpawning,
|
@@ -412,7 +411,7 @@ DisposableMongoClient EnsureEnvironmentAndConfigureTestClientEncrypted()
|
412 | 411 | }
|
413 | 412 | }
|
414 | 413 |
|
415 |
| - [SkippableTheory] |
| 414 | + [Theory] |
416 | 415 | [ParameterAttributeData]
|
417 | 416 | public void CorpusTest(
|
418 | 417 | [Values(false, true)] bool useLocalSchema,
|
@@ -582,7 +581,7 @@ EncryptOptions CreateEncryptOptions(string algorithm, string identifier, string
|
582 | 581 | };
|
583 | 582 | }
|
584 | 583 |
|
585 |
| - [SkippableTheory] |
| 584 | + [Theory] |
586 | 585 | [ParameterAttributeData]
|
587 | 586 | public void CreateDataKeyAndDoubleEncryptionTest(
|
588 | 587 | [Values("local", "aws", "azure", "gcp", "kmip")] string kmsProvider,
|
@@ -658,7 +657,7 @@ public void CreateDataKeyAndDoubleEncryptionTest(
|
658 | 657 | }
|
659 | 658 | }
|
660 | 659 |
|
661 |
| - [SkippableTheory] |
| 660 | + [Theory] |
662 | 661 | // aws
|
663 | 662 | [InlineData("aws", null, null, null)]
|
664 | 663 | [InlineData("aws", "kms.us-east-1.amazonaws.com", null, null)]
|
@@ -820,7 +819,7 @@ void TestCase(ClientEncryption testCaseClientEncription, BsonDocument masterKey,
|
820 | 819 | }
|
821 | 820 | }
|
822 | 821 |
|
823 |
| - [SkippableTheory] |
| 822 | + [Theory] |
824 | 823 | [MemberData(nameof(DeadlockTest_MemberData))]
|
825 | 824 | public void DeadlockTest(
|
826 | 825 | string _,
|
@@ -1023,7 +1022,7 @@ IEnumerable<object[]> CasesWithAsync(
|
1023 | 1022 | }
|
1024 | 1023 | }
|
1025 | 1024 |
|
1026 |
| - [SkippableTheory] |
| 1025 | + [Theory] |
1027 | 1026 | [ParameterAttributeData]
|
1028 | 1027 | public void DecryptionEvents(
|
1029 | 1028 | [Range(1, 4)] int testCase,
|
@@ -1136,7 +1135,7 @@ BsonDocument Aggregate(IMongoCollection<BsonDocument> collection, bool async)
|
1136 | 1135 | }
|
1137 | 1136 | }
|
1138 | 1137 |
|
1139 |
| - [SkippableTheory] |
| 1138 | + [Theory] |
1140 | 1139 | [ParameterAttributeData]
|
1141 | 1140 | public void ExplicitEncryptionTest(
|
1142 | 1141 | [Range(1, 5)] int testCase,
|
@@ -1265,7 +1264,7 @@ void RunTestCase(IMongoCollection<BsonDocument> explicitCollectionFromEncryptedC
|
1265 | 1264 | }
|
1266 | 1265 | }
|
1267 | 1266 |
|
1268 |
| - [SkippableTheory] |
| 1267 | + [Theory] |
1269 | 1268 | [ParameterAttributeData]
|
1270 | 1269 | public void ExternalKeyVaultTest(
|
1271 | 1270 | [Values(false, true)] bool withExternalKeyVault,
|
@@ -1316,7 +1315,7 @@ public void ExternalKeyVaultTest(
|
1316 | 1315 | }
|
1317 | 1316 | }
|
1318 | 1317 |
|
1319 |
| - [SkippableTheory] |
| 1318 | + [Theory] |
1320 | 1319 | [ParameterAttributeData]
|
1321 | 1320 | public void KmsTlsOptionsTest(
|
1322 | 1321 | [Values("aws", "azure", "gcp", "kmip")] string kmsProvider,
|
@@ -1633,7 +1632,7 @@ void KmsProviderEndpointConfigurator(string kmsProviderName, Dictionary<string,
|
1633 | 1632 |
|
1634 | 1633 | [Trait("Category", "CsfleAZUREKMS")]
|
1635 | 1634 | [Trait("Category", "CsfleGCPKMS")]
|
1636 |
| - [SkippableTheory] |
| 1635 | + [Theory] |
1637 | 1636 | [ParameterAttributeData]
|
1638 | 1637 | public void OnDemandCredentialsTest(
|
1639 | 1638 | [Values("aws", "azure", "gcp")] string kmsProvider,
|
@@ -1787,7 +1786,7 @@ void EnsureEnvironmentConfigured(out BsonDocument customMasterKey)
|
1787 | 1786 | }
|
1788 | 1787 | }
|
1789 | 1788 |
|
1790 |
| - [SkippableTheory] |
| 1789 | + [Theory] |
1791 | 1790 | [ParameterAttributeData]
|
1792 | 1791 | public async Task OnDemandAzureIMDSCredentialsUnitTest(
|
1793 | 1792 | [Range(1, 6)] int testCase,
|
@@ -1920,7 +1919,7 @@ public void RewrapTest(
|
1920 | 1919 | }
|
1921 | 1920 | }
|
1922 | 1921 |
|
1923 |
| - [SkippableTheory] |
| 1922 | + [Theory] |
1924 | 1923 | [ParameterAttributeData]
|
1925 | 1924 | public void ViewAreProhibitedTest([Values(false, true)] bool async)
|
1926 | 1925 | {
|
@@ -1948,7 +1947,7 @@ public void ViewAreProhibitedTest([Values(false, true)] bool async)
|
1948 | 1947 | }
|
1949 | 1948 | }
|
1950 | 1949 |
|
1951 |
| - [SkippableTheory] |
| 1950 | + [Theory] |
1952 | 1951 | [ParameterAttributeData]
|
1953 | 1952 | public void UniqueIndexOnKeyAltNames(
|
1954 | 1953 | [Range(1, 2)] int testCase,
|
@@ -2017,7 +2016,7 @@ void RunTestCase(ClientEncryption clientEncryption, Guid existingKey, int testCa
|
2017 | 2016 | }
|
2018 | 2017 |
|
2019 | 2018 | // NOTE: this test is not presented in the prose tests
|
2020 |
| - [SkippableTheory] |
| 2019 | + [Theory] |
2021 | 2020 | [ParameterAttributeData]
|
2022 | 2021 | public void UnsupportedPlatformsTests(
|
2023 | 2022 | [Values("gcp")] string kmsProvider, // the rest kms providers are supported on all supported TFs
|
|
0 commit comments