Describe the bug
ACR team uses the self.cmd command to confirm that our command successfully runs with no errors. However, we have noticed that our test using self.cmd still passes even though our acr agentpool delete command returns an error
|
self.cmd('acr agentpool delete -n {agents2_name} -r {registry_name} -y') |
Related command
acr agentpool delete -n {agents2_name} -r {registry_name}
Errors
NA
Issue script & Debug output
NA
Expected behavior
Test fail when command returns an error message
Environment Summary
{ "auzre-cli": "2.67.0", "azure-cli-core": "2.67.0", "azure-cli-telemetry": "1.1.0", "extensions": { "acrtransfer": "1.1.0" } }
Additional context
No response
Describe the bug
ACR team uses the self.cmd command to confirm that our command successfully runs with no errors. However, we have noticed that our test using self.cmd still passes even though our
acr agentpool deletecommand returns an errorazure-cli/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_agentpool_commands.py
Line 67 in f92f723
Related command
acr agentpool delete -n {agents2_name} -r {registry_name}
Errors
NA
Issue script & Debug output
NA
Expected behavior
Test fail when command returns an error message
Environment Summary
{ "auzre-cli": "2.67.0", "azure-cli-core": "2.67.0", "azure-cli-telemetry": "1.1.0", "extensions": { "acrtransfer": "1.1.0" } }Additional context
No response