From 599e8a499ad5dddca0d30d1c21ea25be7f2b5b7d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 27 Jan 2026 17:40:34 +0000 Subject: [PATCH 1/4] Initial plan From 25a450e33eec89cf07944397dfaaf0884a1aeb71 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:04:09 +0000 Subject: [PATCH 2/4] Add missing config options Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com> --- cli/azd/cmd/config_options_test.go | 14 ++++++ cli/azd/extensions/azure.ai.finetune/go.mod | 2 +- .../extensions/microsoft.azd.concurx/go.mod | 4 +- .../extensions/microsoft.azd.concurx/go.sum | 8 ++-- cli/azd/pkg/config/config_options_test.go | 13 +++++ cli/azd/resources/config_options.yaml | 47 +++++++++++++++++++ 6 files changed, 81 insertions(+), 7 deletions(-) diff --git a/cli/azd/cmd/config_options_test.go b/cli/azd/cmd/config_options_test.go index 4444de93df0..cf10e1b9ac3 100644 --- a/cli/azd/cmd/config_options_test.go +++ b/cli/azd/cmd/config_options_test.go @@ -50,6 +50,8 @@ func TestConfigOptionsAction_JSON(t *testing.T) { // Verify expected options are present foundDefaults := false foundAlpha := false + foundAuthUseAzCliAuth := false + foundAgentModelType := false for _, opt := range options { if opt.Key == "defaults.subscription" { foundDefaults = true @@ -60,9 +62,17 @@ func TestConfigOptionsAction_JSON(t *testing.T) { require.Contains(t, opt.AllowedValues, "on") require.Contains(t, opt.AllowedValues, "off") } + if opt.Key == "auth.useAzCliAuth" { + foundAuthUseAzCliAuth = true + } + if opt.Key == "ai.agent.model.type" { + foundAgentModelType = true + } } require.True(t, foundDefaults, "defaults.subscription should be present") require.True(t, foundAlpha, "alpha.all should be present") + require.True(t, foundAuthUseAzCliAuth, "auth.useAzCliAuth should be present") + require.True(t, foundAgentModelType, "ai.agent.model.type should be present") } func TestConfigOptionsAction_Table(t *testing.T) { @@ -95,6 +105,8 @@ func TestConfigOptionsAction_Table(t *testing.T) { require.Contains(t, outputStr, "Description") require.Contains(t, outputStr, "defaults.subscription") require.Contains(t, outputStr, "alpha.all") + require.Contains(t, outputStr, "auth.useAzCliAuth") + require.Contains(t, outputStr, "ai.agent.model.type") } func TestConfigOptionsAction_DefaultFormat(t *testing.T) { @@ -130,6 +142,8 @@ func TestConfigOptionsAction_DefaultFormat(t *testing.T) { require.Contains(t, outputStr, "Description:") require.Contains(t, outputStr, "Key: alpha.all") require.Contains(t, outputStr, "Allowed Values:") + require.Contains(t, outputStr, "Key: auth.useAzCliAuth") + require.Contains(t, outputStr, "Key: ai.agent.model.type") } func TestConfigOptionsAction_WithCurrentValues(t *testing.T) { diff --git a/cli/azd/extensions/azure.ai.finetune/go.mod b/cli/azd/extensions/azure.ai.finetune/go.mod index 90b0dd3d22c..c056931f2b3 100644 --- a/cli/azd/extensions/azure.ai.finetune/go.mod +++ b/cli/azd/extensions/azure.ai.finetune/go.mod @@ -12,6 +12,7 @@ require ( github.com/openai/openai-go/v3 v3.2.0 github.com/sethvargo/go-retry v0.3.0 github.com/spf13/cobra v1.10.1 + github.com/stretchr/testify v1.11.1 gopkg.in/yaml.v3 v3.0.1 ) @@ -69,7 +70,6 @@ require ( github.com/rivo/uniseg v0.4.7 // indirect github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect github.com/spf13/pflag v1.0.10 // indirect - github.com/stretchr/testify v1.11.1 // indirect github.com/theckman/yacspin v0.13.12 // indirect github.com/tidwall/gjson v1.18.0 // indirect github.com/tidwall/match v1.2.0 // indirect diff --git a/cli/azd/extensions/microsoft.azd.concurx/go.mod b/cli/azd/extensions/microsoft.azd.concurx/go.mod index 1164ab05cfb..f6ca13b2857 100644 --- a/cli/azd/extensions/microsoft.azd.concurx/go.mod +++ b/cli/azd/extensions/microsoft.azd.concurx/go.mod @@ -76,9 +76,9 @@ require ( go.opentelemetry.io/otel/sdk v1.38.0 // indirect go.opentelemetry.io/otel/trace v1.38.0 // indirect go.uber.org/atomic v1.11.0 // indirect - golang.org/x/net v0.47.0 // indirect + golang.org/x/net v0.48.0 // indirect golang.org/x/sys v0.39.0 // indirect - golang.org/x/term v0.37.0 // indirect + golang.org/x/term v0.38.0 // indirect golang.org/x/text v0.32.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20251007200510-49b9836ed3ff // indirect google.golang.org/grpc v1.76.0 // indirect diff --git a/cli/azd/extensions/microsoft.azd.concurx/go.sum b/cli/azd/extensions/microsoft.azd.concurx/go.sum index f9299daa7c5..a3768ddd5b4 100644 --- a/cli/azd/extensions/microsoft.azd.concurx/go.sum +++ b/cli/azd/extensions/microsoft.azd.concurx/go.sum @@ -205,8 +205,8 @@ go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0 golang.org/x/exp v0.0.0-20250911091902-df9299821621 h1:2id6c1/gto0kaHYyrixvknJ8tUK/Qs5IsmBtrc+FtgU= golang.org/x/exp v0.0.0-20250911091902-df9299821621/go.mod h1:TwQYMMnGpvZyc+JpB/UAuTNIsVJifOlSkrZkhcvpVUk= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= -golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= +golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= +golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -214,8 +214,8 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= -golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU= -golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254= +golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q= +golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= diff --git a/cli/azd/pkg/config/config_options_test.go b/cli/azd/pkg/config/config_options_test.go index eb09650c582..be4b812f32b 100644 --- a/cli/azd/pkg/config/config_options_test.go +++ b/cli/azd/pkg/config/config_options_test.go @@ -20,6 +20,8 @@ func TestGetAllConfigOptions(t *testing.T) { foundDefaultsSubscription := false foundDefaultsLocation := false foundAlphaAll := false + foundAuthUseAzCliAuth := false + foundAgentModelType := false for _, option := range options { require.NotEmpty(t, option.Key, "Config option key should not be empty") @@ -41,6 +43,15 @@ func TestGetAllConfigOptions(t *testing.T) { require.Contains(t, option.AllowedValues, "on") require.Contains(t, option.AllowedValues, "off") require.Equal(t, "AZD_ALPHA_ENABLE_ALL", option.EnvVar) + case "auth.useAzCliAuth": + foundAuthUseAzCliAuth = true + require.Equal(t, "string", option.Type) + require.Contains(t, option.AllowedValues, "true") + require.Contains(t, option.AllowedValues, "false") + case "ai.agent.model.type": + foundAgentModelType = true + require.Equal(t, "string", option.Type) + require.Contains(t, option.AllowedValues, "github-copilot") } } @@ -48,6 +59,8 @@ func TestGetAllConfigOptions(t *testing.T) { require.True(t, foundDefaultsSubscription, "defaults.subscription option should be present") require.True(t, foundDefaultsLocation, "defaults.location option should be present") require.True(t, foundAlphaAll, "alpha.all option should be present") + require.True(t, foundAuthUseAzCliAuth, "auth.useAzCliAuth option should be present") + require.True(t, foundAgentModelType, "ai.agent.model.type option should be present") } func TestConfigOptionStructure(t *testing.T) { diff --git a/cli/azd/resources/config_options.yaml b/cli/azd/resources/config_options.yaml index 0bf7b3a2749..a1fdb3ab336 100644 --- a/cli/azd/resources/config_options.yaml +++ b/cli/azd/resources/config_options.yaml @@ -55,6 +55,53 @@ description: "Custom template sources for azd template list and azd init." type: object example: "template.sources..type" +- key: auth.useAzCliAuth + description: "Use Azure CLI authentication instead of azd-managed credentials." + type: string + allowedValues: ["true", "false"] + example: "true" +- key: extension.sources + description: "Extension sources for azd extension list and search commands." + type: object + example: "extension.sources..type" +- key: extension.installed + description: "Installed extension metadata managed by azd." + type: object + example: "extension.installed..version" +- key: platform.type + description: "Platform type override for azd." + type: string + example: "devcenter" +- key: platform.config + description: "Platform-specific configuration settings." + type: object + example: "platform.config.name" +- key: provision.parameters. + description: "Saved provisioning parameter value for Dev Center environments." + type: string + example: "provision.parameters.repoUrl" +- key: infra.parameters. + description: "Saved infrastructure parameter value from azd provision." + type: string + example: "infra.parameters.sqlAdminUser" +- key: cloud.name + description: "Azure cloud name to use for authentication and resource management." + type: string + allowedValues: ["AzureCloud", "AzureChinaCloud", "AzureUSGovernment"] + example: "AzureCloud" +- key: ai.agent.model.type + description: "Default AI agent model provider." + type: string + allowedValues: ["github-copilot", "azure", "ollama"] + example: "github-copilot" +- key: ai.agent.model.azure + description: "Azure OpenAI model configuration for the AI agent." + type: object + example: "ai.agent.model.azure.model" +- key: ai.agent.model.ollama + description: "Ollama model configuration for the AI agent." + type: object + example: "ai.agent.model.ollama.model" - key: pipeline.config.applicationServiceManagementReference description: "Application Service Management Reference for Azure pipeline configuration." type: string From 3e6d4cca132cc3dc7c5142e6d53d28b887c67294 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:24:48 +0000 Subject: [PATCH 3/4] Adjust config options per review Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com> --- cli/azd/extensions/azure.ai.finetune/go.mod | 2 +- .../extensions/microsoft.azd.concurx/go.mod | 4 +-- .../extensions/microsoft.azd.concurx/go.sum | 8 +++--- cli/azd/pkg/config/config_options_test.go | 3 --- cli/azd/resources/config_options.yaml | 25 ------------------- 5 files changed, 7 insertions(+), 35 deletions(-) diff --git a/cli/azd/extensions/azure.ai.finetune/go.mod b/cli/azd/extensions/azure.ai.finetune/go.mod index c056931f2b3..90b0dd3d22c 100644 --- a/cli/azd/extensions/azure.ai.finetune/go.mod +++ b/cli/azd/extensions/azure.ai.finetune/go.mod @@ -12,7 +12,6 @@ require ( github.com/openai/openai-go/v3 v3.2.0 github.com/sethvargo/go-retry v0.3.0 github.com/spf13/cobra v1.10.1 - github.com/stretchr/testify v1.11.1 gopkg.in/yaml.v3 v3.0.1 ) @@ -70,6 +69,7 @@ require ( github.com/rivo/uniseg v0.4.7 // indirect github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect github.com/spf13/pflag v1.0.10 // indirect + github.com/stretchr/testify v1.11.1 // indirect github.com/theckman/yacspin v0.13.12 // indirect github.com/tidwall/gjson v1.18.0 // indirect github.com/tidwall/match v1.2.0 // indirect diff --git a/cli/azd/extensions/microsoft.azd.concurx/go.mod b/cli/azd/extensions/microsoft.azd.concurx/go.mod index f6ca13b2857..1164ab05cfb 100644 --- a/cli/azd/extensions/microsoft.azd.concurx/go.mod +++ b/cli/azd/extensions/microsoft.azd.concurx/go.mod @@ -76,9 +76,9 @@ require ( go.opentelemetry.io/otel/sdk v1.38.0 // indirect go.opentelemetry.io/otel/trace v1.38.0 // indirect go.uber.org/atomic v1.11.0 // indirect - golang.org/x/net v0.48.0 // indirect + golang.org/x/net v0.47.0 // indirect golang.org/x/sys v0.39.0 // indirect - golang.org/x/term v0.38.0 // indirect + golang.org/x/term v0.37.0 // indirect golang.org/x/text v0.32.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20251007200510-49b9836ed3ff // indirect google.golang.org/grpc v1.76.0 // indirect diff --git a/cli/azd/extensions/microsoft.azd.concurx/go.sum b/cli/azd/extensions/microsoft.azd.concurx/go.sum index a3768ddd5b4..f9299daa7c5 100644 --- a/cli/azd/extensions/microsoft.azd.concurx/go.sum +++ b/cli/azd/extensions/microsoft.azd.concurx/go.sum @@ -205,8 +205,8 @@ go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0 golang.org/x/exp v0.0.0-20250911091902-df9299821621 h1:2id6c1/gto0kaHYyrixvknJ8tUK/Qs5IsmBtrc+FtgU= golang.org/x/exp v0.0.0-20250911091902-df9299821621/go.mod h1:TwQYMMnGpvZyc+JpB/UAuTNIsVJifOlSkrZkhcvpVUk= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= -golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= +golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= +golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -214,8 +214,8 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= -golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q= -golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg= +golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU= +golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= diff --git a/cli/azd/pkg/config/config_options_test.go b/cli/azd/pkg/config/config_options_test.go index be4b812f32b..e5c3d7f3be0 100644 --- a/cli/azd/pkg/config/config_options_test.go +++ b/cli/azd/pkg/config/config_options_test.go @@ -46,12 +46,9 @@ func TestGetAllConfigOptions(t *testing.T) { case "auth.useAzCliAuth": foundAuthUseAzCliAuth = true require.Equal(t, "string", option.Type) - require.Contains(t, option.AllowedValues, "true") - require.Contains(t, option.AllowedValues, "false") case "ai.agent.model.type": foundAgentModelType = true require.Equal(t, "string", option.Type) - require.Contains(t, option.AllowedValues, "github-copilot") } } diff --git a/cli/azd/resources/config_options.yaml b/cli/azd/resources/config_options.yaml index a1fdb3ab336..b91e5dfc99d 100644 --- a/cli/azd/resources/config_options.yaml +++ b/cli/azd/resources/config_options.yaml @@ -60,14 +60,6 @@ type: string allowedValues: ["true", "false"] example: "true" -- key: extension.sources - description: "Extension sources for azd extension list and search commands." - type: object - example: "extension.sources..type" -- key: extension.installed - description: "Installed extension metadata managed by azd." - type: object - example: "extension.installed..version" - key: platform.type description: "Platform type override for azd." type: string @@ -76,14 +68,6 @@ description: "Platform-specific configuration settings." type: object example: "platform.config.name" -- key: provision.parameters. - description: "Saved provisioning parameter value for Dev Center environments." - type: string - example: "provision.parameters.repoUrl" -- key: infra.parameters. - description: "Saved infrastructure parameter value from azd provision." - type: string - example: "infra.parameters.sqlAdminUser" - key: cloud.name description: "Azure cloud name to use for authentication and resource management." type: string @@ -92,16 +76,7 @@ - key: ai.agent.model.type description: "Default AI agent model provider." type: string - allowedValues: ["github-copilot", "azure", "ollama"] example: "github-copilot" -- key: ai.agent.model.azure - description: "Azure OpenAI model configuration for the AI agent." - type: object - example: "ai.agent.model.azure.model" -- key: ai.agent.model.ollama - description: "Ollama model configuration for the AI agent." - type: object - example: "ai.agent.model.ollama.model" - key: pipeline.config.applicationServiceManagementReference description: "Application Service Management Reference for Azure pipeline configuration." type: string From 90c8120e23313f93639ef953b571947f93227f7d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:46:25 +0000 Subject: [PATCH 4/4] Add tests for platform and cloud config options Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com> --- cli/azd/cmd/config_options_test.go | 21 +++++++++++++++++++++ cli/azd/pkg/config/config_options_test.go | 15 +++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/cli/azd/cmd/config_options_test.go b/cli/azd/cmd/config_options_test.go index cf10e1b9ac3..87721fad990 100644 --- a/cli/azd/cmd/config_options_test.go +++ b/cli/azd/cmd/config_options_test.go @@ -51,6 +51,9 @@ func TestConfigOptionsAction_JSON(t *testing.T) { foundDefaults := false foundAlpha := false foundAuthUseAzCliAuth := false + foundPlatformType := false + foundPlatformConfig := false + foundCloudName := false foundAgentModelType := false for _, opt := range options { if opt.Key == "defaults.subscription" { @@ -65,6 +68,15 @@ func TestConfigOptionsAction_JSON(t *testing.T) { if opt.Key == "auth.useAzCliAuth" { foundAuthUseAzCliAuth = true } + if opt.Key == "platform.type" { + foundPlatformType = true + } + if opt.Key == "platform.config" { + foundPlatformConfig = true + } + if opt.Key == "cloud.name" { + foundCloudName = true + } if opt.Key == "ai.agent.model.type" { foundAgentModelType = true } @@ -72,6 +84,9 @@ func TestConfigOptionsAction_JSON(t *testing.T) { require.True(t, foundDefaults, "defaults.subscription should be present") require.True(t, foundAlpha, "alpha.all should be present") require.True(t, foundAuthUseAzCliAuth, "auth.useAzCliAuth should be present") + require.True(t, foundPlatformType, "platform.type should be present") + require.True(t, foundPlatformConfig, "platform.config should be present") + require.True(t, foundCloudName, "cloud.name should be present") require.True(t, foundAgentModelType, "ai.agent.model.type should be present") } @@ -106,6 +121,9 @@ func TestConfigOptionsAction_Table(t *testing.T) { require.Contains(t, outputStr, "defaults.subscription") require.Contains(t, outputStr, "alpha.all") require.Contains(t, outputStr, "auth.useAzCliAuth") + require.Contains(t, outputStr, "platform.type") + require.Contains(t, outputStr, "platform.config") + require.Contains(t, outputStr, "cloud.name") require.Contains(t, outputStr, "ai.agent.model.type") } @@ -143,6 +161,9 @@ func TestConfigOptionsAction_DefaultFormat(t *testing.T) { require.Contains(t, outputStr, "Key: alpha.all") require.Contains(t, outputStr, "Allowed Values:") require.Contains(t, outputStr, "Key: auth.useAzCliAuth") + require.Contains(t, outputStr, "Key: platform.type") + require.Contains(t, outputStr, "Key: platform.config") + require.Contains(t, outputStr, "Key: cloud.name") require.Contains(t, outputStr, "Key: ai.agent.model.type") } diff --git a/cli/azd/pkg/config/config_options_test.go b/cli/azd/pkg/config/config_options_test.go index e5c3d7f3be0..fb633265867 100644 --- a/cli/azd/pkg/config/config_options_test.go +++ b/cli/azd/pkg/config/config_options_test.go @@ -21,6 +21,9 @@ func TestGetAllConfigOptions(t *testing.T) { foundDefaultsLocation := false foundAlphaAll := false foundAuthUseAzCliAuth := false + foundPlatformType := false + foundPlatformConfig := false + foundCloudName := false foundAgentModelType := false for _, option := range options { @@ -46,6 +49,15 @@ func TestGetAllConfigOptions(t *testing.T) { case "auth.useAzCliAuth": foundAuthUseAzCliAuth = true require.Equal(t, "string", option.Type) + case "platform.type": + foundPlatformType = true + require.Equal(t, "string", option.Type) + case "platform.config": + foundPlatformConfig = true + require.Equal(t, "object", option.Type) + case "cloud.name": + foundCloudName = true + require.Equal(t, "string", option.Type) case "ai.agent.model.type": foundAgentModelType = true require.Equal(t, "string", option.Type) @@ -57,6 +69,9 @@ func TestGetAllConfigOptions(t *testing.T) { require.True(t, foundDefaultsLocation, "defaults.location option should be present") require.True(t, foundAlphaAll, "alpha.all option should be present") require.True(t, foundAuthUseAzCliAuth, "auth.useAzCliAuth option should be present") + require.True(t, foundPlatformType, "platform.type option should be present") + require.True(t, foundPlatformConfig, "platform.config option should be present") + require.True(t, foundCloudName, "cloud.name option should be present") require.True(t, foundAgentModelType, "ai.agent.model.type option should be present") }