Skip to content

Commit

Permalink
Fix the live test of developement (#20940)
Browse files Browse the repository at this point in the history
* Fix the live test of developement

* Fix the live test of developement
  • Loading branch information
wyunchi-ms authored Feb 16, 2023
1 parent ed69e86 commit b9ca3d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SpringCloud/LiveTests/TestLiveScenarios.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ Invoke-LiveTestScenario -Name "Create Spring Cloud App Deployment Instance" -Des

$springCloudInstance = New-AzSpringCloud -ResourceGroupName $rgName -Name $springCloudServiceName -Location $location -SkuTier "Basic" -SkuName "B0"
$appInstance = New-AzSpringCloudApp -ResourceGroupName $rgName -ServiceName $springCloudServiceName -Name $appName
$deployment = New-AzSpringCloudAppDeployment -ResourceGroupName $rgName -Name $springCloudServiceName -AppName $appName -DeploymentName $deploymentName
$jarSource = New-AzSpringCloudAppDeploymentJarUploadedObject -RuntimeVersion "Java_8"
$deployment = New-AzSpringCloudAppDeployment -ResourceGroupName $rgName -ServiceName $springCloudServiceName -AppName $appName -DeploymentName $deploymentName -Source $jarSource -EnvironmentVariable @{"env" = "prod"}

Assert-AreEqual $appName $appInstance.Name
}

0 comments on commit b9ca3d2

Please sign in to comment.