Azure / autorest.az

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

[Reduce Manual Work] Modify tests #818

Open fengzhou-msft opened 3 years ago

fengzhou-msft commented 3 years ago

Issues:

  1. Many example values cannot be used as test values for arguments in CLI. They may be placeholders or invalid values. For instance: --resource-group "{rg}", --zones "earth" "moon", --factory-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.DataFactory/factories/{myFactory}" Check this example test.
  2. You may need to use the output from one command as the input in another command in tests. For instance: --ids needs to get ids from a create/show command first.

Impact: A lot of effort is spent in fixing and running tests.