-
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
azurerm_bastion_host: Adding zones
property to resource and data source.
#27909
Conversation
Updating Basic Test to include zones. Updated docs.
} | ||
|
||
resource "azurerm_bastion_host" "test" { | ||
name = "acctestBastion%s" | ||
location = azurerm_resource_group.test.location | ||
resource_group_name = azurerm_resource_group.test.name | ||
zones = azurerm_public_ip.test.zones |
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.
The basic test config should only include properties that are Required
, could you move this to the complete test config?
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.
Sure, will do that.
What should I do with the data source test? Initially included the field in the Basic
because is the dataset used in that test, Should I update it to use the Complete
instead?
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.
Yep I would update the data source test to use the complete config
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 made the changes (and updated the PR description accordingly)
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.
Thanks @CorrenSoft, the check in the basic acceptance test needs to be removed, once that's done this should be good to go.
@@ -27,6 +27,7 @@ func TestAccBastionHost_basic(t *testing.T) { | |||
Config: r.basic(data), | |||
Check: acceptance.ComposeTestCheckFunc( | |||
check.That(data.ResourceName).ExistsInAzure(r), | |||
check.That(data.ResourceName).Key("zones.#").HasValue("3"), |
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.
Can we remove this check since it's not valid for the basic test anymore
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.
Good catch, thank you :)
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.
Thanks @CorrenSoft LGTM 👾
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
zones
property to resource and data source.PR Checklist
Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_bastion_host
- support for thezones
property [Support for Zones in BastionHosts #27783]This is a (please select all that apply):
Related Issue(s)
Fixes #27783
Note
If this PR changes meaningfully during the course of review please update the title and description as required.