Azure / autorest.az

Azure CLI Code Generator
MIT License
22 stars 20 forks source link

Test Scenario: When creating with different parameter set, we need to customize resource name #711

Open Juliehzl opened 3 years ago

Juliehzl commented 3 years ago

Why do you need this feature?

Easy to test more scenarios There two benefits from my side:

  1. Compared with previous hard code version as shown below, it is easy to change parameter value because in most scenarios the value in example could not work as expected. And the check value could be applied to new value automatically. image
  2. When we want to test other parameter set, we could just change the value in test scenario with kwargs change and reuse existing test step. image

Is your feature request related to a problem? Please describe.

If without the feature, I have to write more example steps with different parameter values

Describe the solution you'd like

Generate example steps with customized parameter, e.g. {rg} not hard-coded one e.g. test-resource-group image

Describe alternatives you've considered

Write more example steps with different parameter values manually

Additional context

jsntcy commented 3 years ago

@Juliehzl, you can discuss with @changlong-liu offline if necessary.