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

Add azurerm_application_insights_api_key resource #2556

Merged

Conversation

pdecat
Copy link
Contributor

@pdecat pdecat commented Dec 20, 2018

Resolves #2547

TODO:

  • add documentation
  • add changelog

@ghost ghost added the size/XL label Dec 20, 2018
@pdecat pdecat force-pushed the f-azurerm_application_insights_api_key branch from 751c2c7 to 47d9a22 Compare December 20, 2018 16:22
@pdecat
Copy link
Contributor Author

pdecat commented Dec 20, 2018

Acceptance test results:

# make testacc TEST=./azurerm TESTARGS='-run=TestAccAzureRMApplicationInsightsAPIKey_.* -count=1'                                                        
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./azurerm -v -run=TestAccAzureRMApplicationInsightsAPIKey_.* -count=1 -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_requiresImport
--- SKIP: TestAccAzureRMApplicationInsightsAPIKey_requiresImport (0.00s)
    resource_arm_application_insights_api_key_test.go:33: Skipping since resources aren't required to be imported                                         
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission                                                                            
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission                                                                            
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_full_permissions
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_full_permissions
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission                                                                            
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_no_permission (58.52s)
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_full_permissions
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions (92.84s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission (138.72s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission (138.93s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_full_permissions (90.52s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm       149.063s

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @pdecat

Thanks for this PR :)

I've taken a look through and left some comments inline about the design of the resources schema, but this is otherwise off to a good start 👍

Thanks!

azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
azurerm/helpers/azure/app_insights.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
azurerm/helpers/azure/app_insights.go Outdated Show resolved Hide resolved
azurerm/helpers/azure/app_insights.go Outdated Show resolved Hide resolved
@pdecat pdecat force-pushed the f-azurerm_application_insights_api_key branch from 7daf67d to ba3452a Compare December 21, 2018 11:18
@pdecat pdecat force-pushed the f-azurerm_application_insights_api_key branch 2 times, most recently from cab7e78 to 0755c3c Compare December 21, 2018 11:52
@pdecat pdecat force-pushed the f-azurerm_application_insights_api_key branch from 0755c3c to 9e73208 Compare December 21, 2018 11:52
@pdecat
Copy link
Contributor Author

pdecat commented Dec 21, 2018

Updated acceptance test results:

# make testacc TEST=./azurerm TESTARGS='-run=TestAccAzureRMApplicationInsightsAPIKey_.* -count=1'                                                        
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./azurerm -v -run=TestAccAzureRMApplicationInsightsAPIKey_.* -count=1 -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_requiresImport
--- SKIP: TestAccAzureRMApplicationInsightsAPIKey_requiresImport (0.00s)
    resource_arm_application_insights_api_key_test.go:33: Skipping since resources aren't required to be imported                                         
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission                                                                            
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission                                                                            
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_full_permissions
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_full_permissions
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission                                                                            
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_full_permissions
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_no_permission (60.60s)
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission (73.83s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_full_permissions (73.89s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission (75.60s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions (73.05s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm       133.687s

I'll proceed to documentation updates now that the end-user exposed schema should no longer change.

@ghost ghost removed the waiting-response label Dec 21, 2018
@pdecat pdecat force-pushed the f-azurerm_application_insights_api_key branch from 6f0a16e to f5d343e Compare December 21, 2018 15:58
@ghost ghost added the documentation label Dec 21, 2018
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

@pdecat,

This is looking in good shape. I've let a couple comments inline and once they are addressed this should be good to merge 🙂

CHANGELOG.md Outdated Show resolved Hide resolved
azurerm/helpers/azure/app_insights.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_insights_api_key.go Outdated Show resolved Hide resolved
website/docs/r/application_insights_api_key.html.markdown Outdated Show resolved Hide resolved
@pdecat pdecat force-pushed the f-azurerm_application_insights_api_key branch from 35d715d to 3ad1559 Compare December 27, 2018 12:39
@pdecat pdecat force-pushed the f-azurerm_application_insights_api_key branch from a1a8f5a to ec8ad78 Compare December 27, 2018 12:45
@pdecat
Copy link
Contributor Author

pdecat commented Dec 27, 2018

Current acceptance test results:

# make testacc TEST=./azurerm TESTARGS='-run=TestAccAzureRMApplicationInsightsAPIKey_.* -count=1'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./azurerm -v -run=TestAccAzureRMApplicationInsightsAPIKey_.* -count=1 -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_requiresImport
--- SKIP: TestAccAzureRMApplicationInsightsAPIKey_requiresImport (0.00s)
    resource_arm_application_insights_api_key_test.go:33: Skipping since resources aren't required to be imported
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== RUN   TestAccAzureRMApplicationInsightsAPIKey_full_permissions
=== PAUSE TestAccAzureRMApplicationInsightsAPIKey_full_permissions
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_no_permission
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_full_permissions
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission
=== CONT  TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_no_permission (61.67s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_authenticate_permission (74.94s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_full_permissions (74.99s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_read_telemetry_permissions (75.10s)
--- PASS: TestAccAzureRMApplicationInsightsAPIKey_write_annotations_permission (77.97s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm       78.001s

@ghost ghost removed the waiting-response label Dec 27, 2018
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thank you for the updates @pdecat, LGTM now 👍

@katbyte katbyte merged commit 44fb9c4 into hashicorp:master Dec 28, 2018
katbyte added a commit that referenced this pull request Dec 28, 2018
@pdecat pdecat deleted the f-azurerm_application_insights_api_key branch December 28, 2018 09:09
@tombuildsstuff tombuildsstuff added this to the 1.21.0 milestone Dec 28, 2018
@ghost
Copy link

ghost commented Mar 5, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 5, 2019
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.

3 participants