-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamTest Frameworkfeature-request
Milestone
Description
Is your feature request related to a problem? Please describe.
When writing unit test for functionality that leverages Azure CLI Configuration, the config is persisted across tests leading to misleading results.
Most recently, new functionality in the az bicep sub-command leveraged Azure CLI Configuration but a bug slipped through the tests due to the config value not being reset with each test, causing numerous build pipeline failures for customers.
Describe the solution you'd like
Better unit testing experience for such functionality. Based on this last experience, here are some thoughts I had:
- Reset config for each test or In-Memory Config for
DummyCLI - Should Config API throw error for
No Section - Lint Rule for
cli_ctx.config.get()without default value. Warning at the minimum.
shenglol
Metadata
Metadata
Assignees
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamTest Frameworkfeature-request