File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- Invoke-LiveTestScenario - Name " List ContainerApp" - Description " Test listing ContainerApp" - ScenarioScript `
1
+ Invoke-LiveTestScenario - Name " List ContainerApp" - Description " Test listing ContainerApp" - PowerShellVersion " 5.1 " , " Latest " - ScenarioScript `
2
2
{
3
3
param ($rg )
4
4
$rgName = $rg.ResourceGroupName
@@ -34,7 +34,7 @@ Invoke-LiveTestScenario -Name "List ContainerApp" -Description "Test listing Con
34
34
# Test Updating one specific ContainerApp
35
35
$null = New-AzContainerApp - Name $appName - ResourceGroupName $rgName - Location $appLocation - ConfigurationActiveRevisionsMode ' Single' - ManagedEnvironmentId $EnvId - IngressExternal - IngressTransport ' auto' - IngressTargetPort 80 - TemplateContainer $image - ConfigurationSecret $secretObject - IngressTraffic $trafficWeight - DaprEnabled - DaprAppProtocol ' http' - DaprAppId " container-app-1" - DaprAppPort 8080 - ScaleRule $scaleRule
36
36
$null = Update-AzContainerApp - Name $appName - ResourceGroupName $rgName - DaprAppPort 8888 - Location $appLocation
37
- $actual = Get-AzContainerApp - ResourceGroupName $rgName - Name $appName
37
+ $actual = Get-AzContainerApp - ResourceGroupName $rgName - Name $appName
38
38
Assert-AreEqual $actual.DaprAppPort 8888
39
39
# Test Removing ContainerApp
40
40
$null = New-AzContainerApp - Name $appName - ResourceGroupName $rgName - Location $appLocation - ConfigurationActiveRevisionsMode ' Single' - ManagedEnvironmentId $EnvId - IngressExternal - IngressTransport ' auto' - IngressTargetPort 80 - TemplateContainer $image - ConfigurationSecret $secretObject - IngressTraffic $trafficWeight - DaprEnabled - DaprAppProtocol ' http' - DaprAppId " container-app-1" - DaprAppPort 8080 - ScaleRule $scaleRule
You can’t perform that action at this time.
0 commit comments