Skip to content
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_configuration_feature - support key property #21252

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

teowa
Copy link
Contributor

@teowa teowa commented Apr 3, 2023

resolves #20985
The key is generated from the feature flag name by default, this PR export a customizable key property, which support : character in feature key. From Portal:
image

test:
image

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @teowa

We have a test failure though

------- Stdout: -------
=== RUN   TestAccAppConfigurationFeature_noLabelUpdate
=== PAUSE TestAccAppConfigurationFeature_noLabelUpdate
=== CONT  TestAccAppConfigurationFeature_noLabelUpdate
testcase.go:110: Step 3/4 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# azurerm_app_configuration_feature.test will be updated in-place
~ resource "azurerm_app_configuration_feature" "test" {
~ enabled                 = true -> false
id                      = "https://testacc-appconf230403091031840358.azconfig.io/kv/.appconfig.featureflag%2Facctest-ackey-230403091031840358?label=
name                    = "acctest-ackey-230403091031840358"
tags                    = {}
# (5 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccAppConfigurationFeature_noLabelUpdate (163.47s)
FAIL

@teowa
Copy link
Contributor Author

teowa commented Apr 3, 2023

the test failure should be caused by unstable API.

@stephybun
Copy link
Member

@teowa if there's an issue on the API side we should raise it with the service team - is there a ticket open on the swagger repo?

@teowa
Copy link
Contributor Author

teowa commented Apr 4, 2023

@teowa if there's an issue on the API side we should raise it with the service team - is there a ticket open on the swagger repo?

I should be more specific, the provided test failure seems hard to reproduce, I have re-run the tests for several times but all test pass. I guess it might be caused by things behind of the provider, like network or unstable API. So I am not sure in this case I can open a ticket on swagger repo.

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @teowa, two comments on the docs which I overlooked yesterday, the validation is caught/checked by the schema, we don't need to outline it in the docs. Once that's fixed up this should be good to go!

website/docs/r/app_configuration_feature.html.markdown Outdated Show resolved Hide resolved
website/docs/r/app_configuration_feature.html.markdown Outdated Show resolved Hide resolved
Signed-off-by: Tao <104055472+teowa@users.noreply.github.com>
@teowa
Copy link
Contributor Author

teowa commented Apr 4, 2023

Hi @stephybun, thanks for reviewing this. I have changed the code per review comment, please take another look. Thanks.

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making those updates @teowa. LGTM 👍

@stephybun stephybun merged commit 9882d94 into hashicorp:main Apr 4, 2023
@github-actions github-actions bot added this to the v3.51.0 milestone Apr 4, 2023
stephybun added a commit that referenced this pull request Apr 4, 2023
@github-actions
Copy link

This functionality has been released in v3.51.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!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azurerm_app_configuration_feature no longer allows colon in key which is valid - (uses key from name)
2 participants