12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
+ using Microsoft . Azure . Commands . ScenarioTest . SqlTests ;
15
16
using Microsoft . Azure . Test ;
16
17
using Microsoft . Azure . Test . HttpRecorder ;
17
18
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
18
19
using Xunit ;
19
20
20
- namespace Microsoft . Azure . Commands . ScenarioTest . SqlTests
21
+ namespace Microsoft . Azure . Commands . Sql . Test . ScenarioTests
21
22
{
22
- public class SecurityTests : SqlTestsBase
23
+ public class AuditingTests : SqlTestsBase
23
24
{
24
25
protected Microsoft . Azure . Management . Storage . StorageManagementClient GetStorageV2Client ( )
25
26
{
@@ -34,195 +35,194 @@ protected Microsoft.Azure.Management.Storage.StorageManagementClient GetStorageV
34
35
35
36
protected override void SetupManagementClients ( )
36
37
{
37
- var sqlCSMClient = GetSqlClient ( ) ; // to interact with the security endpoints
38
+ var sqlCSMClient = GetSqlClient ( ) ;
38
39
var storageClient = GetStorageClient ( ) ;
39
40
var storageV2Client = GetStorageV2Client ( ) ;
40
41
var resourcesClient = GetResourcesClient ( ) ;
41
42
var authorizationClient = GetAuthorizationManagementClient ( ) ;
42
43
helper . SetupSomeOfManagementClients ( sqlCSMClient , storageClient , storageV2Client , resourcesClient , authorizationClient ) ;
43
44
}
44
-
45
45
46
46
[ Fact ]
47
47
[ Trait ( Category . Sql , Category . CheckIn ) ]
48
- public void TestDatabaseUpdatePolicyWithStorage ( )
48
+ public void TestAuditingDatabaseUpdatePolicyWithStorage ( )
49
49
{
50
- RunPowerShellTest ( "Test-DatabaseUpdatePolicyWithStorage " ) ;
50
+ RunPowerShellTest ( "Test-AuditingDatabaseUpdatePolicyWithStorage " ) ;
51
51
}
52
52
53
- [ Fact ( Skip = "Non stable interaction between the test and the testing framework" ) ]
53
+ [ Fact ]
54
54
[ Trait ( Category . Sql , Category . CheckIn ) ]
55
- public void TestDatabaseUpdatePolicyWithStorageV2 ( )
55
+ public void TestAuditingDatabaseUpdatePolicyWithStorageV2 ( )
56
56
{
57
- RunPowerShellTest ( "Test-DatabaseUpdatePolicyWithStorageV2 " ) ;
57
+ RunPowerShellTest ( "Test-AuditingDatabaseUpdatePolicyWithStorageV2 " ) ;
58
58
}
59
59
60
60
[ Fact ]
61
61
[ Trait ( Category . Sql , Category . CheckIn ) ]
62
- public void TestServerUpdatePolicyWithStorage ( )
62
+ public void TestAuditingServerUpdatePolicyWithStorage ( )
63
63
{
64
- RunPowerShellTest ( "Test-ServerUpdatePolicyWithStorage " ) ;
64
+ RunPowerShellTest ( "Test-AuditingServerUpdatePolicyWithStorage " ) ;
65
65
}
66
66
67
67
[ Fact ]
68
68
[ Trait ( Category . Sql , Category . CheckIn ) ]
69
- public void TestDatabaseUpdatePolicyWithEventTypes ( )
69
+ public void TestAuditingDatabaseUpdatePolicyWithEventTypes ( )
70
70
{
71
- RunPowerShellTest ( "Test-DatabaseUpdatePolicyWithEventTypes " ) ;
71
+ RunPowerShellTest ( "Test-AuditingDatabaseUpdatePolicyWithEventTypes " ) ;
72
72
}
73
73
74
74
[ Fact ]
75
75
[ Trait ( Category . Sql , Category . CheckIn ) ]
76
- public void TestServerUpdatePolicyWithEventTypes ( )
76
+ public void TestAuditingServerUpdatePolicyWithEventTypes ( )
77
77
{
78
- RunPowerShellTest ( "Test-ServerUpdatePolicyWithEventTypes " ) ;
78
+ RunPowerShellTest ( "Test-AuditingServerUpdatePolicyWithEventTypes " ) ;
79
79
}
80
80
81
81
[ Fact ]
82
82
[ Trait ( Category . Sql , Category . CheckIn ) ]
83
- public void TestDisableDatabaseAuditing ( )
83
+ public void TestAuditingDisableDatabaseAuditing ( )
84
84
{
85
- RunPowerShellTest ( "Test-DisableDatabaseAuditing " ) ;
85
+ RunPowerShellTest ( "Test-AuditingDisableDatabaseAuditing " ) ;
86
86
}
87
87
88
88
[ Fact ]
89
89
[ Trait ( Category . Sql , Category . CheckIn ) ]
90
- public void TestDisableServerAuditing ( )
90
+ public void TestAuditingDisableServerAuditing ( )
91
91
{
92
- RunPowerShellTest ( "Test-DisableServerAuditing " ) ;
92
+ RunPowerShellTest ( "Test-AuditingDisableServerAuditing " ) ;
93
93
}
94
94
95
95
[ Fact ]
96
96
[ Trait ( Category . Sql , Category . CheckIn ) ]
97
- public void TestDatabaseDisableEnableKeepProperties ( )
97
+ public void TestAuditingDatabaseDisableEnableKeepProperties ( )
98
98
{
99
- RunPowerShellTest ( "Test-DatabaseDisableEnableKeepProperties " ) ;
99
+ RunPowerShellTest ( "Test-AuditingDatabaseDisableEnableKeepProperties " ) ;
100
100
}
101
101
102
102
[ Fact ]
103
103
[ Trait ( Category . Sql , Category . CheckIn ) ]
104
- public void TestServerDisableEnableKeepProperties ( )
104
+ public void TestAuditingServerDisableEnableKeepProperties ( )
105
105
{
106
- RunPowerShellTest ( "Test-ServerDisableEnableKeepProperties " ) ;
106
+ RunPowerShellTest ( "Test-AuditingServerDisableEnableKeepProperties " ) ;
107
107
}
108
108
109
109
[ Fact ]
110
110
[ Trait ( Category . Sql , Category . CheckIn ) ]
111
- public void TestUseServerDefault ( )
111
+ public void TestAuditingUseServerDefault ( )
112
112
{
113
- RunPowerShellTest ( "Test-UseServerDefault " ) ;
113
+ RunPowerShellTest ( "Test-AuditingUseServerDefault " ) ;
114
114
}
115
115
116
116
[ Fact ]
117
117
[ Trait ( Category . Sql , Category . CheckIn ) ]
118
- public void TestFailedDatabaseUpdatePolicyWithNoStorage ( )
118
+ public void TestAuditingFailedDatabaseUpdatePolicyWithNoStorage ( )
119
119
{
120
- RunPowerShellTest ( "Test-FailedDatabaseUpdatePolicyWithNoStorage " ) ;
120
+ RunPowerShellTest ( "Test-AuditingFailedDatabaseUpdatePolicyWithNoStorage " ) ;
121
121
}
122
122
123
123
[ Fact ]
124
124
[ Trait ( Category . Sql , Category . CheckIn ) ]
125
- public void TestFailedServerUpdatePolicyWithNoStorage ( )
125
+ public void TestAuditingFailedServerUpdatePolicyWithNoStorage ( )
126
126
{
127
- RunPowerShellTest ( "Test-FailedServerUpdatePolicyWithNoStorage " ) ;
127
+ RunPowerShellTest ( "Test-AuditingFailedServerUpdatePolicyWithNoStorage " ) ;
128
128
}
129
129
130
130
[ Fact ]
131
131
[ Trait ( Category . Sql , Category . CheckIn ) ]
132
- public void TestFailedUseServerDefault ( )
132
+ public void TestAuditingFailedUseServerDefault ( )
133
133
{
134
- RunPowerShellTest ( "Test-FailedUseServerDefault " ) ;
134
+ RunPowerShellTest ( "Test-AuditingFailedUseServerDefault " ) ;
135
135
}
136
136
137
137
[ Fact ]
138
138
[ Trait ( Category . Sql , Category . CheckIn ) ]
139
- public void TestDatabaseUpdatePolicyWithEventTypeShortcuts ( )
139
+ public void TestAuditingDatabaseUpdatePolicyWithEventTypeShortcuts ( )
140
140
{
141
- RunPowerShellTest ( "Test-DatabaseUpdatePolicyWithEventTypeShortcuts " ) ;
141
+ RunPowerShellTest ( "Test-AuditingDatabaseUpdatePolicyWithEventTypeShortcuts " ) ;
142
142
}
143
143
144
144
[ Fact ]
145
145
[ Trait ( Category . Sql , Category . CheckIn ) ]
146
- public void TestServerUpdatePolicyWithEventTypeShortcuts ( )
146
+ public void TestAuditingServerUpdatePolicyWithEventTypeShortcuts ( )
147
147
{
148
- RunPowerShellTest ( "Test-ServerUpdatePolicyWithEventTypeShortcuts " ) ;
148
+ RunPowerShellTest ( "Test-AuditingServerUpdatePolicyWithEventTypeShortcuts " ) ;
149
149
}
150
150
151
151
[ Fact ]
152
152
[ Trait ( Category . Sql , Category . CheckIn ) ]
153
- public void TestDatabaseUpdatePolicyKeepPreviousStorage ( )
153
+ public void TestAuditingDatabaseUpdatePolicyKeepPreviousStorage ( )
154
154
{
155
- RunPowerShellTest ( "Test-DatabaseUpdatePolicyKeepPreviousStorage " ) ;
155
+ RunPowerShellTest ( "Test-AuditingDatabaseUpdatePolicyKeepPreviousStorage " ) ;
156
156
}
157
157
158
158
[ Fact ]
159
159
[ Trait ( Category . Sql , Category . CheckIn ) ]
160
- public void TestServerUpdatePolicyKeepPreviousStorage ( )
160
+ public void TestAuditingServerUpdatePolicyKeepPreviousStorage ( )
161
161
{
162
- RunPowerShellTest ( "Test-ServerUpdatePolicyKeepPreviousStorage " ) ;
162
+ RunPowerShellTest ( "Test-AuditingServerUpdatePolicyKeepPreviousStorage " ) ;
163
163
}
164
164
165
165
[ Fact ]
166
166
[ Trait ( Category . Sql , Category . CheckIn ) ]
167
- public void TestFailWithBadDatabaseIndentity ( )
167
+ public void TestAuditingFailWithBadDatabaseIndentity ( )
168
168
{
169
- RunPowerShellTest ( "Test-FailWithBadDatabaseIndentity " ) ;
169
+ RunPowerShellTest ( "Test-AuditingFailWithBadDatabaseIndentity " ) ;
170
170
}
171
171
172
172
[ Fact ]
173
173
[ Trait ( Category . Sql , Category . CheckIn ) ]
174
- public void TestFailWithBadServerIndentity ( )
174
+ public void TestAuditingFailWithBadServerIndentity ( )
175
175
{
176
- RunPowerShellTest ( "Test-FailWithBadServerIndentity " ) ;
176
+ RunPowerShellTest ( "Test-AuditingFailWithBadServerIndentity " ) ;
177
177
}
178
178
179
179
[ Fact ]
180
180
[ Trait ( Category . Sql , Category . CheckIn ) ]
181
- public void TestDatabaseStorageKeyRotation ( )
181
+ public void TestAuditingDatabaseStorageKeyRotation ( )
182
182
{
183
- RunPowerShellTest ( "Test-DatabaseStorageKeyRotation " ) ;
183
+ RunPowerShellTest ( "Test-AuditingDatabaseStorageKeyRotation " ) ;
184
184
}
185
185
186
186
[ Fact ]
187
187
[ Trait ( Category . Sql , Category . CheckIn ) ]
188
- public void TestServerStorageKeyRotation ( )
188
+ public void TestAuditingServerStorageKeyRotation ( )
189
189
{
190
- RunPowerShellTest ( "Test-ServerStorageKeyRotation " ) ;
190
+ RunPowerShellTest ( "Test-AuditingServerStorageKeyRotation " ) ;
191
191
}
192
192
193
193
[ Fact ]
194
194
[ Trait ( Category . Sql , Category . CheckIn ) ]
195
- public void TestServerUpdatePolicyWithRetention ( )
195
+ public void TestAuditingServerUpdatePolicyWithRetention ( )
196
196
{
197
- RunPowerShellTest ( "Test-ServerUpdatePolicyWithRetention " ) ;
197
+ RunPowerShellTest ( "Test-AuditingServerUpdatePolicyWithRetention " ) ;
198
198
}
199
199
200
200
[ Fact ]
201
201
[ Trait ( Category . Sql , Category . CheckIn ) ]
202
- public void TestDatabaseUpdatePolicyWithRetention ( )
202
+ public void TestAuditingDatabaseUpdatePolicyWithRetention ( )
203
203
{
204
- RunPowerShellTest ( "Test-DatabaseUpdatePolicyWithRetention " ) ;
204
+ RunPowerShellTest ( "Test-AuditingDatabaseUpdatePolicyWithRetention " ) ;
205
205
}
206
206
207
207
[ Fact ]
208
208
[ Trait ( Category . Sql , Category . CheckIn ) ]
209
- public void TestServerRetentionKeepProperties ( )
209
+ public void TestAuditingServerRetentionKeepProperties ( )
210
210
{
211
- RunPowerShellTest ( "Test-ServerRetentionKeepProperties " ) ;
211
+ RunPowerShellTest ( "Test-AuditingServerRetentionKeepProperties " ) ;
212
212
}
213
213
214
214
[ Fact ]
215
215
[ Trait ( Category . Sql , Category . CheckIn ) ]
216
- public void TestDatabaseRetentionKeepProperties ( )
216
+ public void TestAuditingDatabaseRetentionKeepProperties ( )
217
217
{
218
- RunPowerShellTest ( "Test-DatabaseRetentionKeepProperties " ) ;
218
+ RunPowerShellTest ( "Test-AuditingDatabaseRetentionKeepProperties " ) ;
219
219
}
220
220
221
221
[ Fact ]
222
222
[ Trait ( Category . Sql , Category . CheckIn ) ]
223
- public void TestDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion ( )
223
+ public void TestAuditingDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion ( )
224
224
{
225
- RunPowerShellTest ( "Test-DatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion " ) ;
225
+ RunPowerShellTest ( "Test-AuditingDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion " ) ;
226
226
}
227
227
}
228
228
}
0 commit comments