Skip to content

Commit 3f8df93

Browse files
author
j82w
committed
Merge branch 'dev' of github.com:Azure/azure-powershell into dev
Conflicts: src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj src/ResourceManager/Sql/Commands.Sql.Test/packages.config src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj src/ResourceManager/Sql/Commands.Sql/packages.config
2 parents 5e8afe7 + d2421d0 commit 3f8df93

File tree

58 files changed

+27164
-29601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+27164
-29601
lines changed

src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj

Lines changed: 56 additions & 47 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/SecurityTests.cs renamed to src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/AuditingTests.cs

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.ScenarioTest.SqlTests;
1516
using Microsoft.Azure.Test;
1617
using Microsoft.Azure.Test.HttpRecorder;
1718
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1819
using Xunit;
1920

20-
namespace Microsoft.Azure.Commands.ScenarioTest.SqlTests
21+
namespace Microsoft.Azure.Commands.Sql.Test.ScenarioTests
2122
{
22-
public class SecurityTests : SqlTestsBase
23+
public class AuditingTests : SqlTestsBase
2324
{
2425
protected Microsoft.Azure.Management.Storage.StorageManagementClient GetStorageV2Client()
2526
{
@@ -34,195 +35,194 @@ protected Microsoft.Azure.Management.Storage.StorageManagementClient GetStorageV
3435

3536
protected override void SetupManagementClients()
3637
{
37-
var sqlCSMClient = GetSqlClient(); // to interact with the security endpoints
38+
var sqlCSMClient = GetSqlClient();
3839
var storageClient = GetStorageClient();
3940
var storageV2Client = GetStorageV2Client();
4041
var resourcesClient = GetResourcesClient();
4142
var authorizationClient = GetAuthorizationManagementClient();
4243
helper.SetupSomeOfManagementClients(sqlCSMClient, storageClient, storageV2Client, resourcesClient, authorizationClient);
4344
}
44-
4545

4646
[Fact]
4747
[Trait(Category.Sql, Category.CheckIn)]
48-
public void TestDatabaseUpdatePolicyWithStorage()
48+
public void TestAuditingDatabaseUpdatePolicyWithStorage()
4949
{
50-
RunPowerShellTest("Test-DatabaseUpdatePolicyWithStorage");
50+
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithStorage");
5151
}
5252

53-
[Fact(Skip="Non stable interaction between the test and the testing framework")]
53+
[Fact]
5454
[Trait(Category.Sql, Category.CheckIn)]
55-
public void TestDatabaseUpdatePolicyWithStorageV2()
55+
public void TestAuditingDatabaseUpdatePolicyWithStorageV2()
5656
{
57-
RunPowerShellTest("Test-DatabaseUpdatePolicyWithStorageV2");
57+
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithStorageV2");
5858
}
5959

6060
[Fact]
6161
[Trait(Category.Sql, Category.CheckIn)]
62-
public void TestServerUpdatePolicyWithStorage()
62+
public void TestAuditingServerUpdatePolicyWithStorage()
6363
{
64-
RunPowerShellTest("Test-ServerUpdatePolicyWithStorage");
64+
RunPowerShellTest("Test-AuditingServerUpdatePolicyWithStorage");
6565
}
6666

6767
[Fact]
6868
[Trait(Category.Sql, Category.CheckIn)]
69-
public void TestDatabaseUpdatePolicyWithEventTypes()
69+
public void TestAuditingDatabaseUpdatePolicyWithEventTypes()
7070
{
71-
RunPowerShellTest("Test-DatabaseUpdatePolicyWithEventTypes");
71+
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithEventTypes");
7272
}
7373

7474
[Fact]
7575
[Trait(Category.Sql, Category.CheckIn)]
76-
public void TestServerUpdatePolicyWithEventTypes()
76+
public void TestAuditingServerUpdatePolicyWithEventTypes()
7777
{
78-
RunPowerShellTest("Test-ServerUpdatePolicyWithEventTypes");
78+
RunPowerShellTest("Test-AuditingServerUpdatePolicyWithEventTypes");
7979
}
8080

8181
[Fact]
8282
[Trait(Category.Sql, Category.CheckIn)]
83-
public void TestDisableDatabaseAuditing()
83+
public void TestAuditingDisableDatabaseAuditing()
8484
{
85-
RunPowerShellTest("Test-DisableDatabaseAuditing");
85+
RunPowerShellTest("Test-AuditingDisableDatabaseAuditing");
8686
}
8787

8888
[Fact]
8989
[Trait(Category.Sql, Category.CheckIn)]
90-
public void TestDisableServerAuditing()
90+
public void TestAuditingDisableServerAuditing()
9191
{
92-
RunPowerShellTest("Test-DisableServerAuditing");
92+
RunPowerShellTest("Test-AuditingDisableServerAuditing");
9393
}
9494

9595
[Fact]
9696
[Trait(Category.Sql, Category.CheckIn)]
97-
public void TestDatabaseDisableEnableKeepProperties()
97+
public void TestAuditingDatabaseDisableEnableKeepProperties()
9898
{
99-
RunPowerShellTest("Test-DatabaseDisableEnableKeepProperties");
99+
RunPowerShellTest("Test-AuditingDatabaseDisableEnableKeepProperties");
100100
}
101101

102102
[Fact]
103103
[Trait(Category.Sql, Category.CheckIn)]
104-
public void TestServerDisableEnableKeepProperties()
104+
public void TestAuditingServerDisableEnableKeepProperties()
105105
{
106-
RunPowerShellTest("Test-ServerDisableEnableKeepProperties");
106+
RunPowerShellTest("Test-AuditingServerDisableEnableKeepProperties");
107107
}
108108

109109
[Fact]
110110
[Trait(Category.Sql, Category.CheckIn)]
111-
public void TestUseServerDefault()
111+
public void TestAuditingUseServerDefault()
112112
{
113-
RunPowerShellTest("Test-UseServerDefault");
113+
RunPowerShellTest("Test-AuditingUseServerDefault");
114114
}
115115

116116
[Fact]
117117
[Trait(Category.Sql, Category.CheckIn)]
118-
public void TestFailedDatabaseUpdatePolicyWithNoStorage()
118+
public void TestAuditingFailedDatabaseUpdatePolicyWithNoStorage()
119119
{
120-
RunPowerShellTest("Test-FailedDatabaseUpdatePolicyWithNoStorage");
120+
RunPowerShellTest("Test-AuditingFailedDatabaseUpdatePolicyWithNoStorage");
121121
}
122122

123123
[Fact]
124124
[Trait(Category.Sql, Category.CheckIn)]
125-
public void TestFailedServerUpdatePolicyWithNoStorage()
125+
public void TestAuditingFailedServerUpdatePolicyWithNoStorage()
126126
{
127-
RunPowerShellTest("Test-FailedServerUpdatePolicyWithNoStorage");
127+
RunPowerShellTest("Test-AuditingFailedServerUpdatePolicyWithNoStorage");
128128
}
129129

130130
[Fact]
131131
[Trait(Category.Sql, Category.CheckIn)]
132-
public void TestFailedUseServerDefault()
132+
public void TestAuditingFailedUseServerDefault()
133133
{
134-
RunPowerShellTest("Test-FailedUseServerDefault");
134+
RunPowerShellTest("Test-AuditingFailedUseServerDefault");
135135
}
136136

137137
[Fact]
138138
[Trait(Category.Sql, Category.CheckIn)]
139-
public void TestDatabaseUpdatePolicyWithEventTypeShortcuts()
139+
public void TestAuditingDatabaseUpdatePolicyWithEventTypeShortcuts()
140140
{
141-
RunPowerShellTest("Test-DatabaseUpdatePolicyWithEventTypeShortcuts");
141+
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithEventTypeShortcuts");
142142
}
143143

144144
[Fact]
145145
[Trait(Category.Sql, Category.CheckIn)]
146-
public void TestServerUpdatePolicyWithEventTypeShortcuts()
146+
public void TestAuditingServerUpdatePolicyWithEventTypeShortcuts()
147147
{
148-
RunPowerShellTest("Test-ServerUpdatePolicyWithEventTypeShortcuts");
148+
RunPowerShellTest("Test-AuditingServerUpdatePolicyWithEventTypeShortcuts");
149149
}
150150

151151
[Fact]
152152
[Trait(Category.Sql, Category.CheckIn)]
153-
public void TestDatabaseUpdatePolicyKeepPreviousStorage()
153+
public void TestAuditingDatabaseUpdatePolicyKeepPreviousStorage()
154154
{
155-
RunPowerShellTest("Test-DatabaseUpdatePolicyKeepPreviousStorage");
155+
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyKeepPreviousStorage");
156156
}
157157

158158
[Fact]
159159
[Trait(Category.Sql, Category.CheckIn)]
160-
public void TestServerUpdatePolicyKeepPreviousStorage()
160+
public void TestAuditingServerUpdatePolicyKeepPreviousStorage()
161161
{
162-
RunPowerShellTest("Test-ServerUpdatePolicyKeepPreviousStorage");
162+
RunPowerShellTest("Test-AuditingServerUpdatePolicyKeepPreviousStorage");
163163
}
164164

165165
[Fact]
166166
[Trait(Category.Sql, Category.CheckIn)]
167-
public void TestFailWithBadDatabaseIndentity()
167+
public void TestAuditingFailWithBadDatabaseIndentity()
168168
{
169-
RunPowerShellTest("Test-FailWithBadDatabaseIndentity");
169+
RunPowerShellTest("Test-AuditingFailWithBadDatabaseIndentity");
170170
}
171171

172172
[Fact]
173173
[Trait(Category.Sql, Category.CheckIn)]
174-
public void TestFailWithBadServerIndentity()
174+
public void TestAuditingFailWithBadServerIndentity()
175175
{
176-
RunPowerShellTest("Test-FailWithBadServerIndentity");
176+
RunPowerShellTest("Test-AuditingFailWithBadServerIndentity");
177177
}
178178

179179
[Fact]
180180
[Trait(Category.Sql, Category.CheckIn)]
181-
public void TestDatabaseStorageKeyRotation()
181+
public void TestAuditingDatabaseStorageKeyRotation()
182182
{
183-
RunPowerShellTest("Test-DatabaseStorageKeyRotation");
183+
RunPowerShellTest("Test-AuditingDatabaseStorageKeyRotation");
184184
}
185185

186186
[Fact]
187187
[Trait(Category.Sql, Category.CheckIn)]
188-
public void TestServerStorageKeyRotation()
188+
public void TestAuditingServerStorageKeyRotation()
189189
{
190-
RunPowerShellTest("Test-ServerStorageKeyRotation");
190+
RunPowerShellTest("Test-AuditingServerStorageKeyRotation");
191191
}
192192

193193
[Fact]
194194
[Trait(Category.Sql, Category.CheckIn)]
195-
public void TestServerUpdatePolicyWithRetention()
195+
public void TestAuditingServerUpdatePolicyWithRetention()
196196
{
197-
RunPowerShellTest("Test-ServerUpdatePolicyWithRetention");
197+
RunPowerShellTest("Test-AuditingServerUpdatePolicyWithRetention");
198198
}
199199

200200
[Fact]
201201
[Trait(Category.Sql, Category.CheckIn)]
202-
public void TestDatabaseUpdatePolicyWithRetention()
202+
public void TestAuditingDatabaseUpdatePolicyWithRetention()
203203
{
204-
RunPowerShellTest("Test-DatabaseUpdatePolicyWithRetention");
204+
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithRetention");
205205
}
206206

207207
[Fact]
208208
[Trait(Category.Sql, Category.CheckIn)]
209-
public void TestServerRetentionKeepProperties()
209+
public void TestAuditingServerRetentionKeepProperties()
210210
{
211-
RunPowerShellTest("Test-ServerRetentionKeepProperties");
211+
RunPowerShellTest("Test-AuditingServerRetentionKeepProperties");
212212
}
213213

214214
[Fact]
215215
[Trait(Category.Sql, Category.CheckIn)]
216-
public void TestDatabaseRetentionKeepProperties()
216+
public void TestAuditingDatabaseRetentionKeepProperties()
217217
{
218-
RunPowerShellTest("Test-DatabaseRetentionKeepProperties");
218+
RunPowerShellTest("Test-AuditingDatabaseRetentionKeepProperties");
219219
}
220220

221221
[Fact]
222222
[Trait(Category.Sql, Category.CheckIn)]
223-
public void TestDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion()
223+
public void TestAuditingDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion()
224224
{
225-
RunPowerShellTest("Test-DatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion");
225+
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion");
226226
}
227227
}
228228
}

0 commit comments

Comments
 (0)