@@ -13,9 +13,11 @@ public class TestTrustedMasterKeyPaths : IClassFixture<SQLSetupStrategyCertStore
13
13
14
14
public TestTrustedMasterKeyPaths ( SQLSetupStrategyCertStoreProvider fixture )
15
15
{
16
+ Console . WriteLine ( "Start: TestTrustedMasterKeyPaths()" ) ;
16
17
columnMasterKeyPath = string . Format ( @"{0}/{1}/{2}" , StoreLocation . CurrentUser . ToString ( ) , @"my" , CertificateUtility . CreateCertificate ( ) . Thumbprint ) ;
17
18
this . fixture = fixture ;
18
19
tableName = fixture . TrustedMasterKeyPathsTestTable . Name ;
20
+ Console . WriteLine ( "End: TestTrustedMasterKeyPaths()" ) ;
19
21
}
20
22
21
23
/// <summary>
@@ -24,6 +26,7 @@ public TestTrustedMasterKeyPaths(SQLSetupStrategyCertStoreProvider fixture)
24
26
/// <param name="sqlDataReader"></param>
25
27
private void ValidateResultSet ( SqlDataReader sqlDataReader )
26
28
{
29
+ Console . WriteLine ( "Start: ValidateResultSet()" ) ;
27
30
// Validate the result set
28
31
int rowsFound = 0 ;
29
32
while ( sqlDataReader . Read ( ) )
@@ -42,13 +45,15 @@ private void ValidateResultSet(SqlDataReader sqlDataReader)
42
45
rowsFound ++ ;
43
46
}
44
47
Assert . True ( rowsFound == 1 , "Incorrect number of rows returned in first execution." ) ;
48
+ Console . WriteLine ( "End: ValidateResultSet()" ) ;
45
49
}
46
50
47
51
[ PlatformSpecific ( TestPlatforms . Windows ) ]
48
52
[ ConditionalTheory ( typeof ( DataTestUtility ) , nameof ( DataTestUtility . AreConnStringSetupForAE ) ) ]
49
53
[ ClassData ( typeof ( AEConnectionStringProvider ) ) ]
50
54
public void TestTrustedColumnEncryptionMasterKeyPathsWithNullDictionary ( string connection )
51
55
{
56
+ Console . WriteLine ( $ "Start: TestTrustedColumnEncryptionMasterKeyPathsWithNullDictionary(); connection string: { connection } ") ;
52
57
SqlConnectionStringBuilder connBuilder = new SqlConnectionStringBuilder ( connection ) ;
53
58
connBuilder . ConnectTimeout = 10000 ;
54
59
string connStringNow = connBuilder . ToString ( ) ;
@@ -81,13 +86,15 @@ FROM [{tableName}]
81
86
}
82
87
// Clear out trusted key paths
83
88
SqlConnection . ColumnEncryptionTrustedMasterKeyPaths . Clear ( ) ;
89
+ Console . WriteLine ( "End: TestTrustedColumnEncryptionMasterKeyPathsWithNullDictionary()" ) ;
84
90
}
85
91
86
92
[ PlatformSpecific ( TestPlatforms . Windows ) ]
87
93
[ ConditionalTheory ( typeof ( DataTestUtility ) , nameof ( DataTestUtility . AreConnStringSetupForAE ) ) ]
88
94
[ ClassData ( typeof ( AEConnectionStringProvider ) ) ]
89
95
public void TestTrustedColumnEncryptionMasterKeyPathsWithOneServer ( string connection )
90
96
{
97
+ Console . WriteLine ( $ "Start: TestTrustedColumnEncryptionMasterKeyPathsWithOneServer(); connection string: { connection } ") ;
91
98
SqlConnectionStringBuilder connBuilder = new SqlConnectionStringBuilder ( connection ) ;
92
99
connBuilder . ConnectTimeout = 10000 ;
93
100
string connStringNow = connBuilder . ToString ( ) ;
@@ -127,13 +134,15 @@ FROM [{tableName}]
127
134
}
128
135
// Clear out trusted key paths
129
136
SqlConnection . ColumnEncryptionTrustedMasterKeyPaths . Clear ( ) ;
137
+ Console . WriteLine ( "End: TestTrustedColumnEncryptionMasterKeyPathsWithOneServer()" ) ;
130
138
}
131
139
132
140
[ PlatformSpecific ( TestPlatforms . Windows ) ]
133
141
[ ConditionalTheory ( typeof ( DataTestUtility ) , nameof ( DataTestUtility . AreConnStringSetupForAE ) ) ]
134
142
[ ClassData ( typeof ( AEConnectionStringProvider ) ) ]
135
143
public void TestTrustedColumnEncryptionMasterKeyPathsWithMultipleServers ( string connection )
136
144
{
145
+ Console . WriteLine ( $ "Start: TestTrustedColumnEncryptionMasterKeyPathsWithMultipleServers(); connection string: { connection } ") ;
137
146
SqlConnectionStringBuilder connBuilder = new SqlConnectionStringBuilder ( connection ) ;
138
147
connBuilder . ConnectTimeout = 10000 ;
139
148
string connStringNow = connBuilder . ToString ( ) ;
@@ -190,13 +199,15 @@ FROM [{tableName}]
190
199
}
191
200
// Clear out trusted key paths
192
201
SqlConnection . ColumnEncryptionTrustedMasterKeyPaths . Clear ( ) ;
202
+ Console . WriteLine ( "End: TestTrustedColumnEncryptionMasterKeyPathsWithMultipleServers()" ) ;
193
203
}
194
204
195
205
[ PlatformSpecific ( TestPlatforms . Windows ) ]
196
206
[ ConditionalTheory ( typeof ( DataTestUtility ) , nameof ( DataTestUtility . AreConnStringSetupForAE ) ) ]
197
207
[ ClassData ( typeof ( AEConnectionStringProvider ) ) ]
198
208
public void TestTrustedColumnEncryptionMasterKeyPathsWithInvalidInputs ( string connection )
199
209
{
210
+ Console . WriteLine ( $ "Start: TestTrustedColumnEncryptionMasterKeyPathsWithInvalidInputs(); connection string: { connection } ") ;
200
211
SqlConnectionStringBuilder connBuilder = new SqlConnectionStringBuilder ( connection ) ;
201
212
connBuilder . ConnectTimeout = 10000 ;
202
213
string connStringNow = connBuilder . ToString ( ) ;
@@ -303,6 +314,7 @@ FROM [{tableName}]
303
314
304
315
// Clear out trusted key paths
305
316
SqlConnection . ColumnEncryptionTrustedMasterKeyPaths . Clear ( ) ;
317
+ Console . WriteLine ( "End: TestTrustedColumnEncryptionMasterKeyPathsWithInvalidInputs()" ) ;
306
318
}
307
319
}
308
320
}
0 commit comments