-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[WIP] feat(Azure): add new check for private DNS zones #1455
base: master
Are you sure you want to change the base?
[WIP] feat(Azure): add new check for private DNS zones #1455
Conversation
modules/azure/privatednszone.go
Outdated
|
||
// PrivateDNSZoneExists indicates whether the specified private DNS zone exists. | ||
// This function would fail the test if there is an error. | ||
func PrivateDNSZoneExists(t *testing.T, zoneName string, resourceGroupName string, subscriptionID string) bool { |
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.
Unused function 'PrivateDNSZoneExists'
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.
Deleted
modules/azure/privatednszone.go
Outdated
|
||
// GetPrivateDNSZone gets the private DNS zone object | ||
// This function would fail the test if there is an error. | ||
func GetPrivateDNSZone(t *testing.T, zoneName string, resGroupName string, subscriptionID string) *privatedns.PrivateZone { |
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.
Unused function GetPrivateDNSZone
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.
Deleted
modules/azure/client_factory.go
Outdated
// CreatePrivateDnsZonesClientE is a helper function that will setup a private DNS zone client. | ||
func CreatePrivateDnsZonesClientE(subscriptionID string) (*privatedns.PrivateZonesClient, error) { | ||
// Validate Azure subscription ID | ||
subscriptionID, err := getTargetAzureSubscription(subscriptionID) |
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.
I would suggest changing subscriptionID to different name to avoid shadowing
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.
Renamed
@denis256 I have implemented your comments, please review. |
Description
Adds #1454 .
This PR adds an assertion helper for Azure Private DNS Zones.
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added support for Azure Private DNS Zones assertion helpers.