-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring: Resource Provider Registration / Auth prep. #2197
Conversation
``` $ acctests azurerm TestAccAzureRMEnsureRequiredResourceProvidersAreRegistered === RUN TestAccAzureRMEnsureRequiredResourceProvidersAreRegistered --- PASS: TestAccAzureRMEnsureRequiredResourceProvidersAreRegistered (6.53s) PASS ok github.com/terraform-providers/terraform-provider-azurerm/azurerm 8.404s ```
Tests pass: ``` $ acctests azurerm TestAccAzureRMEnsureRequiredResourceProvidersAreRegistered === RUN TestAccAzureRMEnsureRequiredResourceProvidersAreRegistered --- PASS: TestAccAzureRMEnsureRequiredResourceProvidersAreRegistered (5.90s) PASS ok github.com/terraform-providers/terraform-provider-azurerm/azurerm 7.278s ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once passing testing is shown and potentially documenting/unexporting some of these functions. 🚀
Resource Provider Registration test passes:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This PR refactors the Resource Provider registration out into it's own package; it also moves some of the Authentication related stuff out into it's own package since it's going to be refactored further in the near future.
As a part of refactoring the Resource Provider registration out, I've also inverted the dependency such that we're able to reuse the RP Registration once it's pulled out it's own library - which will become part of the greater shared authentication library (across AzureRM/Public, Azure Stack and the AzureRM Backend in Terraform Core)
In the near future the intention is to have a shared authentication package with feature toggles for AzureCLIParsingAuth, ClientSecretAuth, CloudShellAuth etc - so that we're able to decide what's supported in each location as necessary (for example, CloudShell isn't available in Azure Stack); so whilst some of this PR may seem superfluous, there's some prep work for the upcoming refactor