Skip to content

[load] az load test create should not required field test-id in CLI when set in yaml configuration file. #10020

Description

Source: Azure/azure-cli#32170 (by vlahane)
Affected extension: load (src/load/)


<<UNTRUSTED:issue-32170>>

Issue #32170 (by vlahane)

Title

az load test create should not required field test-id in CLI when set in yaml configuration file.

Body

Describe the bug

Even if a required field is present in the configuration file, the CLI should not prompt for it as a required input.

testId: demosimpleloatst

but current it throws error:
the following arguments are required: --test-id/-t

Related command

z load test create --load-test-resource $LOAD_TEST_RESOURCE -g $LOAD_TEST_RESOURCE_GROUP --load-test-config-file test.yaml --autostop disable

Errors

the following arguments are required: --test-id/-t

Issue script & Debug output

''' yaml
version: v0.1
testId: demosimpleloatst
displayName: Sample Test
description: Load test website home page
testPlan: SampleTest.jmx
testType: JMX
engineInstances: 1
configurationFiles:

  • 'sampledata.csv'
  • 'testfragment.jmx'
    zipArtifacts:
  • bigdata.zip
    '''

Expected behavior

when Load test configuration has ''' testId''' value mentioned then cli should ask for testId in command line or we should remove it from config file

Environment Summary

az --version
azure-cli 2.76.0 *

core 2.76.0 *
telemetry 1.1.0

Extensions:
load 2.1.0
ml 2.38.0
ssh 2.0.6

Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0

Additional context

No response

Comments

Comment by @azure-client-tools-bot-prd[bot]

Hi vlahane,

2.76.0 is not the latest Azure CLI(2.77.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

Comment by Yong Zhang (@yonzhan)

Thank you for opening this issue, we will look into it.
<<END:issue-32170>>

Metadata

Metadata

Labels

Service AttentionThis issue is responsible by Azure service team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions