-
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_mssql_server_microsoft_support_auditing_policy
- New resource
#18609
Conversation
…oft_support_audit_enabled`
1f33ede
to
d466f2a
Compare
e715878
to
59212d1
Compare
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 @aristosvo - 1 small comment
internal/services/mssql/mssql_server_microsoft_support_auditing_policy_resource.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/mssql_server_microsoft_support_auditing_policy_resource.go
Outdated
Show resolved
Hide resolved
azurerm_mssql_server_extended_auditing_policy
- Support for microsoft_support_audit_enabled
azurerm_mssql_server_microsoft_support_auditing_policy
- New resource
Comment resolved! |
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.
Forgotten test cases
internal/services/mssql/mssql_server_microsoft_support_auditing_policy_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/mssql_server_microsoft_support_auditing_policy_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/mssql_server_microsoft_support_auditing_policy_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/mssql_server_microsoft_support_auditing_policy_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/mssql_server_microsoft_support_auditing_policy_resource_test.go
Outdated
Show resolved
Hide resolved
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.
Docs updates
website/docs/r/mssql_server_microsoft_support_auditing_policy.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/mssql_server_microsoft_support_auditing_policy.html.markdown
Outdated
Show resolved
Hide resolved
…g_policy_resource_test.go
…g_policy_resource_test.go
…g_policy_resource_test.go
…g_policy_resource_test.go
…g_policy_resource_test.go
@katbyte Thanks, I must've been sleeping!!😴 I'll blame my son for this who keeps me up at night 😅 |
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.
Docs fix
website/docs/r/mssql_server_microsoft_support_auditing_policy.html.markdown
Outdated
Show resolved
Hide resolved
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 @aristosvo - i think the exist test function needs to account for case:
------- Stdout: -------
=== RUN TestAccMsSqlServerMicrosoftSupportAuditingPolicy_requiresImport
=== PAUSE TestAccMsSqlServerMicrosoftSupportAuditingPolicy_requiresImport
=== CONT TestAccMsSqlServerMicrosoftSupportAuditingPolicy_requiresImport
testcase.go:110: Step 1/2 error: Check failed: Check 1/1 error: running exists func for "azurerm_mssql_server_microsoft_support_auditing_policy.test": ID was missing the `extendedAuditingSettings` element
--- FAIL: TestAccMsSqlServerMicrosoftSupportAuditingPolicy_requiresImport (320.82s)
FAIL
and a typo fixed:
------- Stdout: -------
=== RUN TestAccMsSqlServerMicrosoftSupportAuditingPolicy_complete
=== PAUSE TestAccMsSqlServerMicrosoftSupportAuditingPolicy_complete
=== CONT TestAccMsSqlServerMicrosoftSupportAuditingPolicy_complete
testcase.go:110: Step 1/2 error: Error running pre-apply refresh: exit status 1
Error: Unsupported argument
on terraform_plugin_test.tf line 34, in resource "azurerm_mssql_server_microsoft_support_auditing_policy" "test":
34: storage_account_access_key_is_secondary = false
An argument named "storage_account_access_key_is_secondary" is not expected
here.
Error: Unsupported argument
on terraform_plugin_test.tf line 35, in resource "azurerm_mssql_server_microsoft_support_auditing_policy" "test":
35: retention_in_days = 6
An argument named "retention_in_days" is not expected here.
--- FAIL: TestAccMsSqlServerMicrosoftSupportAuditingPolicy_complete (7.84s)
FAIL
then this should be good!
still getting a test failure 🤔
|
|
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.
Looks good now! thanks @aristosvo
This functionality has been released in v3.30.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Fixes #18607