Skip to content

Commit f8128e4

Browse files
authored
[SpringCloud] Update LiveTest unit test case (#27807)
1 parent 8441f8c commit f8128e4

File tree

7 files changed

+76
-25
lines changed

7 files changed

+76
-25
lines changed

src/SpringCloud/LiveTests/SpringCloud.Autorest/TestLiveScenarios.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Invoke-LiveTestScenario -Name "Create Spring Cloud App Deployment Instance" -Des
3939
$springCloudInstance = New-AzSpringCloud -ResourceGroupName $rgName -Name $springCloudServiceName -Location $location -SkuTier "Basic" -SkuName "B0"
4040
$appInstance = New-AzSpringCloudApp -ResourceGroupName $rgName -ServiceName $springCloudServiceName -Name $appName
4141
$jarSource = New-AzSpringCloudAppDeploymentJarUploadedObject -RuntimeVersion "Java_8"
42-
$deployment = New-AzSpringCloudAppDeployment -ResourceGroupName $rgName -ServiceName $springCloudServiceName -AppName $appName -DeploymentName $deploymentName -Source $jarSource -EnvironmentVariable @{"env" = "prod"} -Name default
42+
$deployment = New-AzSpringCloudAppDeployment -ResourceGroupName $rgName -ServiceName $springCloudServiceName -AppName $appName -DeploymentName $deploymentName -Source $jarSource -EnvironmentVariable @{"env" = "prod"}
4343

4444
Assert-AreEqual $appName $appInstance.Name
4545
}

src/SpringCloud/SpringCloud.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - SpringCloud")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.2")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.2")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.4.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.4.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/SpringCloud/SpringCloud.Autorest/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,57 @@ directive:
6868
change-effective-date: 2028/03/31
6969
change-description: Azure Spring Apps, including the Standard consumption and dedicated (currently in Public Preview only), Basic, Standard, and Enterprise plans, will be retired, please see details on https://aka.ms/asaretirement.
7070

71+
- from: swagger-document
72+
where: $.definitions.JarUploadedUserSourceInfo.allOf.[0]
73+
transform: >-
74+
return {
75+
"$ref": "#/definitions/UserSourceInfo"
76+
}
77+
78+
- from: swagger-document
79+
where: $.definitions.SourceUploadedUserSourceInfo.allOf.[0]
80+
transform: >-
81+
return {
82+
"$ref": "#/definitions/UserSourceInfo"
83+
}
84+
85+
- from: swagger-document
86+
where: $.definitions.NetCoreZipUploadedUserSourceInfo.allOf.[0]
87+
transform: >-
88+
return {
89+
"$ref": "#/definitions/UserSourceInfo"
90+
}
91+
92+
- from: swagger-document
93+
where: $.definitions.UserSourceInfo
94+
transform: >-
95+
return {
96+
"description": "Source with uploaded location",
97+
"type": "object",
98+
"required": [
99+
"type"
100+
],
101+
"properties": {
102+
"type": {
103+
"description": "Type of the source uploaded",
104+
"type": "string"
105+
},
106+
"version": {
107+
"description": "Version of the source",
108+
"type": "string"
109+
},
110+
"relativePath": {
111+
"description": "Relative path of the storage which stores the source",
112+
"type": "string"
113+
}
114+
},
115+
"discriminator": "type"
116+
}
117+
118+
- from: swagger-document
119+
where: $.definitions
120+
transform: delete $.UploadedUserSourceInfo
121+
71122
- where:
72123
verb: Set
73124
subject: BuildServiceAgentPoolPut

src/SpringCloud/SpringCloud.Autorest/docs/Az.SpringCloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.SpringCloud
3-
Module Guid: 0bdf0dac-1904-4fb4-8e05-3cf50c7b816e
3+
Module Guid: bced8d1c-4a71-4435-b0cd-b1f90ea30349
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.springcloud
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "89a659de-627f-474b-8d97-86ea2d4ada8c"
2+
"generate_Id": "43afc1ee-a6f3-4778-846f-79b340c20523"
33
}

src/SpringCloud/SpringCloud.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpringCloud", "SpringCloud\
2121
EndProject
2222
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SpringCloud.Autorest", "SpringCloud.Autorest", "{7FF1C548-EFE7-C813-56DE-70201225EC61}"
2323
EndProject
24-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SpringCloud", "..\..\generated\SpringCloud\SpringCloud.Autorest\Az.SpringCloud.csproj", "{52C35453-EE83-4C90-AF91-254EBC833854}"
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SpringCloud", "..\..\generated\SpringCloud\SpringCloud.Autorest\Az.SpringCloud.csproj", "{17E4D456-D868-4FDD-BD73-55E69550F22B}"
2525
EndProject
2626
Global
2727
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -117,18 +117,18 @@ Global
117117
{0511202E-1814-41C2-9FCA-E1BB78BA3ACE}.Release|x64.Build.0 = Release|Any CPU
118118
{0511202E-1814-41C2-9FCA-E1BB78BA3ACE}.Release|x86.ActiveCfg = Release|Any CPU
119119
{0511202E-1814-41C2-9FCA-E1BB78BA3ACE}.Release|x86.Build.0 = Release|Any CPU
120-
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121-
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|Any CPU.Build.0 = Debug|Any CPU
122-
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|x64.ActiveCfg = Debug|Any CPU
123-
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|x64.Build.0 = Debug|Any CPU
124-
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|x86.ActiveCfg = Debug|Any CPU
125-
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|x86.Build.0 = Debug|Any CPU
126-
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|Any CPU.ActiveCfg = Release|Any CPU
127-
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|Any CPU.Build.0 = Release|Any CPU
128-
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|x64.ActiveCfg = Release|Any CPU
129-
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|x64.Build.0 = Release|Any CPU
130-
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|x86.ActiveCfg = Release|Any CPU
131-
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|x86.Build.0 = Release|Any CPU
120+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|Any CPU.Build.0 = Debug|Any CPU
122+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|x64.ActiveCfg = Debug|Any CPU
123+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|x64.Build.0 = Debug|Any CPU
124+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|x86.ActiveCfg = Debug|Any CPU
125+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|x86.Build.0 = Debug|Any CPU
126+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|Any CPU.ActiveCfg = Release|Any CPU
127+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|Any CPU.Build.0 = Release|Any CPU
128+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|x64.ActiveCfg = Release|Any CPU
129+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|x64.Build.0 = Release|Any CPU
130+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|x86.ActiveCfg = Release|Any CPU
131+
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|x86.Build.0 = Release|Any CPU
132132
EndGlobalSection
133133
GlobalSection(SolutionProperties) = preSolution
134134
HideSolutionNode = FALSE
@@ -140,6 +140,6 @@ Global
140140
{3E373516-4E8D-4BE1-867C-D8FA62049999} = {61EC9815-465C-429F-B333-7867D532C102}
141141
{4EC951CF-4A39-42E4-AA85-A82681E47A4A} = {61EC9815-465C-429F-B333-7867D532C102}
142142
{6D5B754E-0F4B-4FC2-8A77-873E012357D1} = {61EC9815-465C-429F-B333-7867D532C102}
143-
{52C35453-EE83-4C90-AF91-254EBC833854} = {7FF1C548-EFE7-C813-56DE-70201225EC61}
143+
{17E4D456-D868-4FDD-BD73-55E69550F22B} = {7FF1C548-EFE7-C813-56DE-70201225EC61}
144144
EndGlobalSection
145145
EndGlobal

src/SpringCloud/SpringCloud/Az.SpringCloud.psd1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 4/30/2025
6+
# Generated on: 2025-05-21
77
#
88

99
@{
@@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.2.0'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.0.0'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'SpringCloud.Autorest/bin/Az.SpringCloud.private.dll'
5858

5959
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
60+
ScriptsToProcess = @()
6161

6262
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
63+
TypesToProcess = @()
6464

6565
# Format files (.ps1xml) to be loaded when importing this module
6666
FormatsToProcess = 'SpringCloud.Autorest/Az.SpringCloud.format.ps1xml'
@@ -159,7 +159,7 @@ PrivateData = @{
159159
PSData = @{
160160

161161
# Tags applied to this module. These help with module discovery in online galleries.
162-
Tags = 'Azure','ResourceManager','ARM','PSModule','SpringCloud'
162+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'SpringCloud'
163163

164164
# A URL to the license for this module.
165165
LicenseUri = 'https://aka.ms/azps-license'
@@ -185,7 +185,7 @@ PrivateData = @{
185185

186186
} # End of PSData hashtable
187187

188-
} # End of PrivateData hashtable
188+
} # End of PrivateData hashtable
189189

190190
# HelpInfo URI of this module
191191
# HelpInfoURI = ''

0 commit comments

Comments
 (0)