Skip to content

[SpringCloud] Update LiveTest unit test case #27807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ 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
$jarSource = New-AzSpringCloudAppDeploymentJarUploadedObject -RuntimeVersion "Java_8"
$deployment = New-AzSpringCloudAppDeployment -ResourceGroupName $rgName -ServiceName $springCloudServiceName -AppName $appName -DeploymentName $deploymentName -Source $jarSource -EnvironmentVariable @{"env" = "prod"} -Name default
$deployment = New-AzSpringCloudAppDeployment -ResourceGroupName $rgName -ServiceName $springCloudServiceName -AppName $appName -DeploymentName $deploymentName -Source $jarSource -EnvironmentVariable @{"env" = "prod"}

Assert-AreEqual $appName $appInstance.Name
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - SpringCloud")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.2")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.4.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.4.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
51 changes: 51 additions & 0 deletions src/SpringCloud/SpringCloud.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,57 @@ directive:
change-effective-date: 2028/03/31
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.

- from: swagger-document
where: $.definitions.JarUploadedUserSourceInfo.allOf.[0]
transform: >-
return {
"$ref": "#/definitions/UserSourceInfo"
}

- from: swagger-document
where: $.definitions.SourceUploadedUserSourceInfo.allOf.[0]
transform: >-
return {
"$ref": "#/definitions/UserSourceInfo"
}

- from: swagger-document
where: $.definitions.NetCoreZipUploadedUserSourceInfo.allOf.[0]
transform: >-
return {
"$ref": "#/definitions/UserSourceInfo"
}

- from: swagger-document
where: $.definitions.UserSourceInfo
transform: >-
return {
"description": "Source with uploaded location",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"description": "Type of the source uploaded",
"type": "string"
},
"version": {
"description": "Version of the source",
"type": "string"
},
"relativePath": {
"description": "Relative path of the storage which stores the source",
"type": "string"
}
},
"discriminator": "type"
}

- from: swagger-document
where: $.definitions
transform: delete $.UploadedUserSourceInfo

- where:
verb: Set
subject: BuildServiceAgentPoolPut
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.SpringCloud
Module Guid: 0bdf0dac-1904-4fb4-8e05-3cf50c7b816e
Module Guid: bced8d1c-4a71-4435-b0cd-b1f90ea30349
Download Help Link: https://learn.microsoft.com/powershell/module/az.springcloud
Help Version: 1.0.0.0
Locale: en-US
Expand Down
2 changes: 1 addition & 1 deletion src/SpringCloud/SpringCloud.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "89a659de-627f-474b-8d97-86ea2d4ada8c"
"generate_Id": "43afc1ee-a6f3-4778-846f-79b340c20523"
}
28 changes: 14 additions & 14 deletions src/SpringCloud/SpringCloud.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpringCloud", "SpringCloud\
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SpringCloud.Autorest", "SpringCloud.Autorest", "{7FF1C548-EFE7-C813-56DE-70201225EC61}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SpringCloud", "..\..\generated\SpringCloud\SpringCloud.Autorest\Az.SpringCloud.csproj", "{52C35453-EE83-4C90-AF91-254EBC833854}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SpringCloud", "..\..\generated\SpringCloud\SpringCloud.Autorest\Az.SpringCloud.csproj", "{17E4D456-D868-4FDD-BD73-55E69550F22B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -117,18 +117,18 @@ Global
{0511202E-1814-41C2-9FCA-E1BB78BA3ACE}.Release|x64.Build.0 = Release|Any CPU
{0511202E-1814-41C2-9FCA-E1BB78BA3ACE}.Release|x86.ActiveCfg = Release|Any CPU
{0511202E-1814-41C2-9FCA-E1BB78BA3ACE}.Release|x86.Build.0 = Release|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|Any CPU.Build.0 = Debug|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|x64.ActiveCfg = Debug|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|x64.Build.0 = Debug|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|x86.ActiveCfg = Debug|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Debug|x86.Build.0 = Debug|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|Any CPU.ActiveCfg = Release|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|Any CPU.Build.0 = Release|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|x64.ActiveCfg = Release|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|x64.Build.0 = Release|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|x86.ActiveCfg = Release|Any CPU
{52C35453-EE83-4C90-AF91-254EBC833854}.Release|x86.Build.0 = Release|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|x64.ActiveCfg = Debug|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|x64.Build.0 = Debug|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|x86.ActiveCfg = Debug|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Debug|x86.Build.0 = Debug|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|Any CPU.Build.0 = Release|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|x64.ActiveCfg = Release|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|x64.Build.0 = Release|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|x86.ActiveCfg = Release|Any CPU
{17E4D456-D868-4FDD-BD73-55E69550F22B}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -140,6 +140,6 @@ Global
{3E373516-4E8D-4BE1-867C-D8FA62049999} = {61EC9815-465C-429F-B333-7867D532C102}
{4EC951CF-4A39-42E4-AA85-A82681E47A4A} = {61EC9815-465C-429F-B333-7867D532C102}
{6D5B754E-0F4B-4FC2-8A77-873E012357D1} = {61EC9815-465C-429F-B333-7867D532C102}
{52C35453-EE83-4C90-AF91-254EBC833854} = {7FF1C548-EFE7-C813-56DE-70201225EC61}
{17E4D456-D868-4FDD-BD73-55E69550F22B} = {7FF1C548-EFE7-C813-56DE-70201225EC61}
EndGlobalSection
EndGlobal
12 changes: 6 additions & 6 deletions src/SpringCloud/SpringCloud/Az.SpringCloud.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 4/30/2025
# Generated on: 2025-05-21
#

@{
Expand Down Expand Up @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''

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

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

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

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
TypesToProcess = @()

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

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

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

} # End of PSData hashtable

} # End of PrivateData hashtable
} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''
Expand Down