-
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_app_service_connection
: add support for scope
, configuration_info
and public_network_solution
#26387
base: main
Are you sure you want to change the base?
azurerm_app_service_connection
: add support for scope
, configuration_info
and public_network_solution
#26387
Conversation
|
||
--- | ||
|
||
A `configuration_info` block supports the following: |
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.
info is redundent can we remove it?
A `configuration_info` block supports the following: | |
A `configuration` block supports the following: |
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.
Removed.
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 @jiaweitao001 - This appears to be fine, however, the _complete
test now always fails due to timeout? Can you take a look? Also, there's no update coverage at all for this resource, can you take a look at covering that also?
Thanks!
Thanks @jackofallops , I've fixed the failing test, the config was not correctly configured. Actually there's update acc test coverage for this resource. |
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 for the changes @jiaweitao001 - just a couple of items to take another look at if you could?
Thanks!
internal/services/serviceconnector/service_connector_app_service_resource.go
Outdated
Show resolved
Hide resolved
@@ -551,6 +560,16 @@ resource "azurerm_app_service_connection" "test" { | |||
authentication { | |||
type = "systemAssignedIdentity" | |||
} | |||
scope = "default" |
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.
This suggests that the scope value might possibly need a default setting? And will need some validation in the schema?
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.
This is an optional field, no default value is required. As service team said, no specific validation is required.
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.
is ""
a valid? ie should this at least not permit empty strings?
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.
@jiaweitao001 - could you address this comment?
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 for reminding. Addressed.
d6b62c9
to
3abe61f
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 @jiaweitao001 - Just one more comment to check, and as soon as we have the response and values from the service team for the docs / validation we can look to get this merged.
"action": { | ||
Type: pluginsdk.TypeString, | ||
Optional: true, | ||
ValidateFunc: validation.StringInSlice([]string{ | ||
string(servicelinker.ActionTypeOptOut), | ||
string(servicelinker.ActionTypeEnable), | ||
}, false), |
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.
given this is the only property, this should be Required
or there's no point specifying the block?
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.
This is not a Required
field, under some circumstances, users can either omit this or configuration_store
.
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.
Hi @jiaweitao001 - This is the only property in this block? Is there any point specifying the public_network_solution
block if action
is not specified? If not, then action
should be required, or have a default? I'm referring here just to the terraform config, not whether the API marks it as required.
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 got the point. Will change this.
@jiaweitao001 - also, looks like the delete for this now consistently times out on |
I don't see timeout in Team city now, could you please take a look again? |
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.
Hi, we have a test failure:
------- Stdout: -------
=== RUN TestAccServiceConnectorAppServiceCosmosdb_update
=== PAUSE TestAccServiceConnectorAppServiceCosmosdb_update
=== CONT TestAccServiceConnectorAppServiceCosmosdb_update
testcase.go:173: Step 2/4 error: Pre-apply plan check(s) failed:
'azurerm_app_service_connection.test' - expected action to not be Replace
--- FAIL: TestAccServiceConnectorAppServiceCosmosdb_update (949.36s)
FAIL
cb8cfb7
to
c05d200
Compare
…info and public_network_solution
c217e2c
to
9e0f6b1
Compare
Community Note
Description
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”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_app_service_connection
: add support forscope
,configuration_info
andpublic_network_solution
This is a (please select all that apply):
Related Issue(s)
Fixes #0000
Note
If this PR changes meaningfully during the course of review please update the title and description as required.