This commit is contained in:
Caroline 2023-04-05 15:29:10 -07:00
Родитель 91e15a64dc
Коммит 921ef1420f
4 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -7,7 +7,7 @@ public class WebAppStaticSite : ResourceType
public override string Id => "Microsoft.Web/staticSites";
public override string FullName => Id;
public override string FriendlyName => "Web Application Static Site";
public override string Prefix => "wass";
public override string Prefix => "azbpwass";
public override string FunctionPrefix => "WebAppStaticSite";
public override IEnumerable<KeyValuePair<string, object>> GetResourceParameters(TestMetadata m)

Просмотреть файл

@ -11,13 +11,13 @@ function Confirm-WebAppStaticSite {
.DESCRIPTION
The Confirm-AzBPWebAppStaticSite cmdlet gets a Web App Static Site using the specified Web App and
Resource Group name.
Resource Group names.
.PARAMETER StaticWebAppName
The name of the Web App Static Site
The name of the Web App Static Site.
.PARAMETER ResourceGroupName
The name of the Resource Group
The name of the Resource Group.
.EXAMPLE
Confirm-AzBPWebAppStaticSite -StaticWebAppName "benchpresstest" -ResourceGroupName "rgbenchpresstest"

Просмотреть файл

@ -1,5 +1,5 @@
BeforeAll {
Import-Module ../../bin/BenchPress.Azure.psd1
Import-Module Az.InfrastructureTesting
$Script:rgName = 'rg-test'
$Script:location = 'westus3'
@ -119,8 +119,8 @@ Describe 'Verify Web App Static Site Exists' {
# The '-ErrorAction SilentlyContinue' command suppresses all errors.
# In this test, it will suppress the error message when a resource cannot be found.
# Remove this field to see all errors.
Confirm-AzBPWebAppStaticSite -ResourceGroupName $rgName -StaticWebAppName $nowebappStaticSiteName -ErrorAction SilentlyContinue
| Should -Not -BeSuccessful
Confirm-AzBPWebAppStaticSite -ResourceGroupName $rgName -StaticWebAppName $nowebappStaticSiteName `
-ErrorAction SilentlyContinue | Should -Not -BeSuccessful
}
It "Should contain a Web App named $webappStaticSiteName in $location" {

Просмотреть файл

@ -1,5 +1,5 @@
param location string = 'EastUS2'
param location string = resourceGroup().location
param appserviceplanName string = 'asp${take(uniqueString(resourceGroup().id), 5)}'
param webappName string = 'webapp${take(uniqueString(resourceGroup().id), 5)}'
param staticwebappName string = 'staticwebapp${take(uniqueString(resourceGroup().id), 5)}'