Skip to content

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

@vlahane

Description

@vlahane

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-ResolveAuto resolve by botService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions