Skip to content

Commit 91f8f3b

Browse files
committed
using TestUtilities.GenerateName to generate random password
1 parent 3eb67ad commit 91f8f3b

File tree

5 files changed

+2036
-2381
lines changed

5 files changed

+2036
-2381
lines changed

src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/Common.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Gets the parameters for import/export tests
259259
function Get-SqlDatabaseImportExportTestEnvironmentParameters ($testSuffix)
260260
{
261261
$databaseName = "sql-ie-cmdlet-db" + $testSuffix;
262-
$password = "Testp@ssw0rd";
262+
$password = [Microsoft.Azure.Test.TestUtilities]::GenerateName("IEp@ssw0rd");
263263
#Fake storage account data. Used for playback mode
264264
$exportBacpacUri = "http://test.blob.core.windows.net/bacpacs"
265265
$importBacpacUri = "http://test.blob.core.windows.net/bacpacs/test.bacpac"

src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/ImportExportTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.ScenarioTest.SqlTests;
16+
using Microsoft.Azure.Test;
1617
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1718
using Xunit;
1819

src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/ImportExportTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
function Test-ExportDatabase
2121
{
2222
# Setup
23-
$testSuffix = 90051
23+
$testSuffix = 90063
2424
$createServer = $true
2525
$createDatabase = $true
2626
$createFirewallRule = $true
@@ -33,7 +33,7 @@ function Test-ExportDatabase
3333
function Test-ImportDatabase
3434
{
3535
# Setup
36-
$testSuffix = 90052
36+
$testSuffix = 90062
3737
$createServer = $true
3838
$createDatabase = $false
3939
$createFirewallRule = $true

0 commit comments

Comments
 (0)