Azure / azure-cli-dev-tools

Developer utilities for Azure CLI command module and extension developers.
MIT License
81 stars 113 forks source link

azdev test doesn't encode or replace the credential info in the test recordings #215

Open qiaozha opened 4 years ago

qiaozha commented 4 years ago

When onboard the datafactory, the command az datafactory integration-runtime regenerate-auth-key datafactory integration-runtime list-auth-key will return a authKey, but in the test recordings it's not encoded or replaced with meaningless strings. which cause the credential scan fail.

to repro: check the branch in this PR https://github.com/Azure/azure-cli-extensions/pull/1321 then run azdev test datafactory --live then search the command above.

haroldrandom commented 4 years ago

It's widely requested feature. But not have to implement in azdev. We will plan it.