Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Azs.AzureBridge.Admin/test/Common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ $global:SkippedTests = @(
)

$global:Provider = "Microsoft.AzureBridge.Admin"

$global:ActivationName = "default"
$global:ResourceGroupName = "azurestack-activation"
$global:ProductName1 = "microsoft.windowsserver2016datacenter-arm-2016.127.20171216"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"AzsAzureBridgeActivation+[NoContext]+TestListAzsAzureBridgeActivation+$GET+https://adminmanagement.local.azurestack.external/subscriptions/e63d3264-fc11-487e-a076-717498a81298/resourcegroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations?api-version=2016-01-01+1": {
"AzsAzureBridgeActivation+[NoContext]+TestListAzsAzureBridgeActivation+$GET+https://management.azure.com/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourcegroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations?api-version=2016-01-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.local.azurestack.external/subscriptions/e63d3264-fc11-487e-a076-717498a81298/resourcegroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations?api-version=2016-01-01",
"RequestUri": "https://management.azure.com/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourcegroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations?api-version=2016-01-01",
"Content": null,
"Headers": {
"x-ms-unique-id": [ "21" ],
"x-ms-unique-id": [ "23", "24" ],
"x-ms-client-request-id": [ "58375638-0c9f-4eae-9262-ecf1c37e43d5" ],
"CommandName": [ "Get-AzsAzureBridgeActivation" ],
"FullCommandName": [ "Get-AzsAzureBridgeActivation_List" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowerShell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
Expand All @@ -15,31 +19,35 @@
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-request-id": [ "0409e69f-80ba-4b43-82ee-d844b3d4af69" ],
"x-ms-correlation-request-id": [ "fed3a05d-b5fa-489c-ae84-adc4c764c1dd" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14818" ],
"x-ms-routing-request-id": [ "LOCAL:20200211T192901Z:fed3a05d-b5fa-489c-ae84-adc4c764c1dd" ],
"x-ms-request-id": [ "4e3f4da4-cbe2-4d37-89cd-b843167ca00d" ],
"x-ms-correlation-request-id": [ "64847c56-8827-4ce3-8584-2a65a2b9b3a8" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14724" ],
"x-ms-routing-request-id": [ "NORTHWEST:20200528T200602Z:64847c56-8827-4ce3-8584-2a65a2b9b3a8" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Cache-Control": [ "no-cache" ],
"Date": [ "Tue, 11 Feb 2020 19:29:01 GMT" ]
"Date": [ "Thu, 28 May 2020 20:06:01 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "725" ],
"Content-Length": [ "717" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"value\":[{\"id\":\"/subscriptions/e63d3264-fc11-487e-a076-717498a81298/resourceGroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default\",\"name\":\"default\",\"type\":\"Microsoft.AzureBridge.Admin/activations\",\"etag\":\"W/\\\"datetime\u00272020-02-06T20%3A45%3A55.9594366Z\u0027\\\"\",\"location\":\"local\",\"properties\":{\"displayName\":\"Azure Stack Activation\",\"azureRegistrationResourceIdentifier\":\"/subscriptions/9001f36e-41de-4edb-9913-780fa5d06b36/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/AzsT-test-iotulai01\",\"azureEnvironmentName\":\"AzureCloud\",\"expiration\":\"9999-12-30T23:59:59.9999999Z\",\"marketplaceSyndicationEnabled\":true,\"usageReportingEnabled\":true,\"provisioningState\":\"Succeeded\"}}]}"
"Content": "{\"value\":[{\"id\":\"/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default\",\"name\":\"default\",\"type\":\"Microsoft.AzureBridge.Admin/activations\",\"etag\":\"W/\\\"datetime\u00272018-11-15T04%3A23%3A22.2578987Z\u0027\\\"\",\"location\":\"northwest\",\"properties\":{\"displayName\":\"Azure Stack Activation\",\"azureRegistrationResourceIdentifier\":\"/subscriptions/b31316d4-de02-43a4-903d-eb74f8258b00/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/AZS-LongHaul-02\",\"azureEnvironmentName\":\"AzureCloud\",\"expiration\":\"9999-12-30T23:59:59Z\",\"marketplaceSyndicationEnabled\":true,\"usageReportingEnabled\":true,\"provisioningState\":\"Succeeded\"}}]}"
}
},
"AzsAzureBridgeActivation+[NoContext]+TestGetAzsAzureBridgeActivationByName+$GET+https://adminmanagement.local.azurestack.external/subscriptions/e63d3264-fc11-487e-a076-717498a81298/resourcegroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default?api-version=2016-01-01+1": {
"AzsAzureBridgeActivation+[NoContext]+TestGetAzsAzureBridgeActivationByName+$GET+https://management.azure.com/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourcegroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default?api-version=2016-01-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.local.azurestack.external/subscriptions/e63d3264-fc11-487e-a076-717498a81298/resourcegroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default?api-version=2016-01-01",
"RequestUri": "https://management.azure.com/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourcegroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default?api-version=2016-01-01",
"Content": null,
"Headers": {
"x-ms-unique-id": [ "22" ],
"x-ms-unique-id": [ "25", "26" ],
"x-ms-client-request-id": [ "a77824fd-ef40-486e-9e48-c05c64243ae5" ],
"CommandName": [ "Get-AzsAzureBridgeActivation" ],
"FullCommandName": [ "Get-AzsAzureBridgeActivation_Get" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowerShell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
Expand All @@ -49,23 +57,23 @@
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-request-id": [ "f9c4b524-f7df-423f-82eb-7b6e8fedb9a1" ],
"x-ms-correlation-request-id": [ "a6f2dcfa-7eab-413d-bad7-8ab10aefe475" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14817" ],
"x-ms-routing-request-id": [ "LOCAL:20200211T192901Z:a6f2dcfa-7eab-413d-bad7-8ab10aefe475" ],
"ETag": [ "W/\"datetime\u00272018-11-15T04%3A23%3A22.2578987Z\u0027\"" ],
"x-ms-request-id": [ "fb62db5d-ad7d-4706-8239-09b777e8c4cc" ],
"x-ms-correlation-request-id": [ "39940a63-3344-48a8-83dc-810293248f0c" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14723" ],
"x-ms-routing-request-id": [ "NORTHWEST:20200528T200602Z:39940a63-3344-48a8-83dc-810293248f0c" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Cache-Control": [ "no-cache" ],
"Date": [ "Tue, 11 Feb 2020 19:29:01 GMT" ],
"ETag": [ "W/\"datetime\u00272020-02-06T20%3A45%3A55.9594366Z\u0027\"" ]
"Date": [ "Thu, 28 May 2020 20:06:01 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "713" ],
"Content-Length": [ "705" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"id\":\"/subscriptions/e63d3264-fc11-487e-a076-717498a81298/resourceGroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default\",\"name\":\"default\",\"type\":\"Microsoft.AzureBridge.Admin/activations\",\"etag\":\"W/\\\"datetime\u00272020-02-06T20%3A45%3A55.9594366Z\u0027\\\"\",\"location\":\"local\",\"properties\":{\"displayName\":\"Azure Stack Activation\",\"azureRegistrationResourceIdentifier\":\"/subscriptions/9001f36e-41de-4edb-9913-780fa5d06b36/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/AzsT-test-iotulai01\",\"azureEnvironmentName\":\"AzureCloud\",\"expiration\":\"9999-12-30T23:59:59.9999999Z\",\"marketplaceSyndicationEnabled\":true,\"usageReportingEnabled\":true,\"provisioningState\":\"Succeeded\"}}"
"Content": "{\"id\":\"/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default\",\"name\":\"default\",\"type\":\"Microsoft.AzureBridge.Admin/activations\",\"etag\":\"W/\\\"datetime\u00272018-11-15T04%3A23%3A22.2578987Z\u0027\\\"\",\"location\":\"northwest\",\"properties\":{\"displayName\":\"Azure Stack Activation\",\"azureRegistrationResourceIdentifier\":\"/subscriptions/b31316d4-de02-43a4-903d-eb74f8258b00/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/AZS-LongHaul-02\",\"azureEnvironmentName\":\"AzureCloud\",\"expiration\":\"9999-12-30T23:59:59Z\",\"marketplaceSyndicationEnabled\":true,\"usageReportingEnabled\":true,\"provisioningState\":\"Succeeded\"}}"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1'
if (-Not (Test-Path -Path $loadEnvPath)) {
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1'
}
. ($loadEnvPath)

$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzsAzureBridgeActivation.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1'
if (-Not (Test-Path -Path $loadEnvPath)) {
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1'
}
. ($loadEnvPath)

$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzsAzureBridgeDownloadedProduct.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1'
if (-Not (Test-Path -Path $loadEnvPath)) {
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1'
}
. ($loadEnvPath)

$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzsAzureBridgeProduct.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
Expand Down Expand Up @@ -48,7 +54,8 @@ Describe 'Get-AzsAzureBridgeProduct' {

It "TestGetAzsAzureBridgeProductByName" -Skip:$("TestGetAzsAzureBridgeProductByName" -in $global:SkippedTests) {
$global:TestName = "TestGetAzsAzureBridgeProductByName"
$Product = Get-AzsAzureBridgeProduct -ActivationName $global:ActivationName -ResourceGroupName $global:ResourceGroupName -Name $global:ProductName1
$productName = (Get-AzsAzureBridgeProduct -ActivationName $global:ActivationName -ResourceGroupName $global:ResourceGroupName)[0].Name.Split("/")[1]
$Product = Get-AzsAzureBridgeProduct -ActivationName $global:ActivationName -ResourceGroupName $global:ResourceGroupName -Name $productName
ValidateProductInfo $Product
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"Invoke-AzsAzureBridgeProductDownload+[NoContext]+TestDownloadAzsAzureBridgeProduct+$POST+https://management.azure.com/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default/products/microsoft.windowsserver2016datacenter-arm-2016.127.20171216/download?api-version=2016-01-01+1": {
"Request": {
"Method": "POST",
"RequestUri": "https://management.azure.com/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/azurestack-activation/providers/Microsoft.AzureBridge.Admin/activations/default/products/microsoft.windowsserver2016datacenter-arm-2016.127.20171216/download?api-version=2016-01-01",
"Content": null,
"Headers": {
"x-ms-unique-id": [ "9", "10" ],
"x-ms-client-request-id": [ "70c06c85-8d48-44b5-8053-d256bff3c721" ],
"CommandName": [ "Invoke-AzsAzureBridgeProductDownload" ],
"FullCommandName": [ "Invoke-AzsAzureBridgeProductDownload_Download" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowerShell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 404,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-failure-cause": [ "gateway" ],
"x-ms-request-id": [ "7980eaf8-9eb8-491d-8b5e-d1615372d6d6" ],
"x-ms-correlation-request-id": [ "7980eaf8-9eb8-491d-8b5e-d1615372d6d6" ],
"x-ms-routing-request-id": [ "NORTHWEST:20200617T203506Z:7980eaf8-9eb8-491d-8b5e-d1615372d6d6" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Wed, 17 Jun 2020 20:35:06 GMT" ]
},
"ContentHeaders": {
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ],
"Content-Length": [ "129" ]
},
"Content": "{\"error\":{\"code\":\"SubscriptionNotFound\",\"message\":\"The subscription \u002774c72bdc-d917-431c-a377-8ca80f4238a0\u0027 could not be found.\"}}"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1'
if (-Not (Test-Path -Path $loadEnvPath)) {
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1'
}
. ($loadEnvPath)

$TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzsAzureBridgeProductDownload.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
Expand Down Expand Up @@ -40,12 +46,12 @@ Describe 'Invoke-AzsAzureBridgeProductDownload' {

It "TestDownloadAzsAzureBridgeProduct" -Skip:$("TestDownloadAzsAzureBridgeProduct" -in $global:SkippedTests) {
$global:TestName = "TestDownloadAzsAzureBridgeProduct"
Invoke-AzsAzureBridgeProductDownload -ActivationName $global:ActivationName -Name $global:ProductName1 -ResourceGroupName $global:ResourceGroupName -Force -ErrorAction Stop
Invoke-AzsAzureBridgeProductDownload -ActivationName $global:ActivationName -Name $global:ProductName1 -ResourceGroupName $global:ResourceGroupName -ErrorAction Stop
}

It "TestDownloadAzsAzureBridgeProductPipeline" -Skip:$("TestDownloadAzsAzureBridgeProductPipeline" -in $global:SkippedTests) {
$global:TestName = "TestDownloadAzsAzureBridgeProductPipeline"
$DownloadedProduct = (Get-AzsAzureBridgeProduct -ActivationName $global:ActivationName -Name $global:ProductName2 -ResourceGroupName $global:ResourceGroupName) | Invoke-AzsAzureBridgeProductDownload -Force
$DownloadedProduct = (Get-AzsAzureBridgeProduct -ActivationName $global:ActivationName -Name $global:ProductName2 -ResourceGroupName $global:ResourceGroupName) | Invoke-AzsAzureBridgeProductDownload
ValidateProductInfo $DownloadedProduct
}
}
1 change: 0 additions & 1 deletion src/Azs.AzureBridge.Admin/test/Override.ps1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1'
if (-Not (Test-Path -Path $loadEnvPath)) {
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1'
}
. ($loadEnvPath)

$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzsAzureBridgeDownloadedProduct.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
Expand Down Expand Up @@ -40,13 +46,13 @@ Describe 'Remove-AzsAzureBridgeDownloadedProduct' {

It "TestRemoveAzsAzureBridgeDownloadedProduct" -Skip:$("TestRemoveAzsAzureBridgeDownloadedProduct" -in $global:SkippedTests) {
$global:TestName = "TestRemoveAzsAzureBridgeDownloadedProduct"
Remove-AzsAzureBridgeDownloadedProduct -ActivationName $global:ActivationName -ResourceGroupName $global:ResourceGroupName -Name $global:ProductName1 -Force
Remove-AzsAzureBridgeDownloadedProduct -ActivationName $global:ActivationName -ResourceGroupName $global:ResourceGroupName -Name $global:ProductName1
Get-AzsAzureBridgeDownloadedProduct -ActivationName $global:ActivationName -ResourceGroupName $global:ResourceGroupName -Name $global:ProductName1 | Should Be $null
}

It "TestRemoveAzsAzureBridgeDownloadedProductPipeline" -Skip:$("TestRemoveAzsAzureBridgeDownloadedProductPipeline" -in $global:SkippedTests) {
$global:TestName = "TestRemoveAzsAzureBridgeDownloadedProductPipeline"
(Get-AzsAzureBridgeDownloadedProduct -ActivationName $global:ActivationName -Name $global:ProductName2 -ResourceGroupName $global:ResourceGroupName ) | Remove-AzsAzureBridgeDownloadedProduct -Force
(Get-AzsAzureBridgeDownloadedProduct -ActivationName $global:ActivationName -Name $global:ProductName2 -ResourceGroupName $global:ResourceGroupName ) | Remove-AzsAzureBridgeDownloadedProduct
Get-AzsAzureBridgeDownloadedProduct -ActivationName $global:ActivationName -ResourceGroupName $global:ResourceGroupName -Name $global:ProductName2 | Should Be $null
}
}
23 changes: 23 additions & 0 deletions src/Azs.AzureBridge.Admin/test/Utils.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
function RandomString([bool]$allChars, [int32]$len) {
if ($allChars) {
return -join ((33..126) | Get-Random -Count $len | % {[char]$_})
} else {
return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_})
}
}
$env = @{}
function setupEnv() {
# Preload subscriptionId and tenant from context, which will be used in test
# as default. You could change them if needed.
$env.SubscriptionId = (Get-AzContext).Subscription.Id
$env.Tenant = (Get-AzContext).Tenant.Id
# For any resources you created for test, you should add it to $env here.
$envFile = 'env.json'
if ($TestMode -eq 'live') {
$envFile = 'localEnv.json'
}
set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env)
}
function cleanupEnv() {
# Clean resources you create for testing
}
6 changes: 6 additions & 0 deletions src/Azs.AzureBridge.Admin/test/env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"Tenant": "01884692-6d96-44fa-8c58-11b4e90fef19",
"SubscriptionId": "74c72bdc-d917-431c-a377-8ca80f4238a0",
"ResourceGroup": "testrg",
"Location": "redmond"
}
29 changes: 29 additions & 0 deletions src/Azs.AzureBridge.Admin/test/loadEnv.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
$envFile = 'env.json'
Write-Host "Loading env.json"
if ($TestMode -eq 'live') {
$envFile = 'localEnv.json'
}

if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) {
$envFilePath = Join-Path $PSScriptRoot $envFile
} else {
$envFilePath = Join-Path $PSScriptRoot '..\$envFile'
}
$env = @{}
if (Test-Path -Path $envFilePath) {
$env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json
$PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant}
}
2 changes: 0 additions & 2 deletions src/Azs.Backup.Admin/test/Common.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
$global:SkippedTests = @(
)

$global:Location = "redmond"
$global:Provider = "Microsoft.Backup.Admin"
$global:ResourceGroupName = "System.redmond"
$global:username = "AzureStackAdmin"
$global:passwordStr = "password"
[SecureString]$global:password = ConvertTo-SecureString -String $global:passwordStr -AsPlainText -Force
Expand Down
Loading