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

New Resource: azurerm_data_factory #3159

Merged
merged 20 commits into from
Apr 9, 2019
Merged

New Resource: azurerm_data_factory #3159

merged 20 commits into from
Apr 9, 2019

Conversation

mbfrahry
Copy link
Member

@mbfrahry mbfrahry commented Apr 3, 2019

Adding a new resource azurerm_data_factory

This is taking the majority of @hbuckle's work from #1720 and modifying it/updating tests.

--- PASS: TestAccAzureRMDataFactory_disappears (67.48s)
--- PASS: TestAccAzureRMDataFactory_tags (72.79s)
--- PASS: TestAccAzureRMDataFactory_basic (72.79s)
--- PASS: TestAccAzureRMDataFactory_identity (72.82s)
--- PASS: TestAccAzureRMDataFactory_github (86.10s)
--- PASS: TestAccAzureRMDataFactory_tagsUpdated (86.10s)

Fixes #1720

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 @mbfrahry

Thanks for this PR :)

Taking a look through this looks pretty good to me - if we can fix up the minor comments this should otherwise be good to merge 👍

Thanks!

azurerm/resource_arm_data_factory.go Outdated Show resolved Hide resolved
azurerm/resource_arm_data_factory.go Outdated Show resolved Hide resolved
azurerm/resource_arm_data_factory.go Outdated Show resolved Hide resolved
azurerm/resource_arm_data_factory.go Outdated Show resolved Hide resolved
azurerm/resource_arm_data_factory.go Outdated Show resolved Hide resolved
website/docs/r/data_factory_v2.html.markdown Outdated Show resolved Hide resolved
website/docs/r/data_factory_v2.html.markdown Outdated Show resolved Hide resolved
website/docs/r/data_factory_v2.html.markdown Outdated Show resolved Hide resolved
website/docs/r/data_factory_v2.html.markdown Outdated Show resolved Hide resolved
website/docs/r/data_factory_v2.html.markdown Outdated Show resolved Hide resolved
@mbfrahry
Copy link
Member Author

mbfrahry commented Apr 4, 2019

Thanks for the review @tombuildsstuff! I believe I've addressed all your comments

@archmangler
Copy link

archmangler commented Apr 4, 2019

Any idea when this will make it into master? I'd like to take it to prod :-)

@ghost ghost removed the waiting-response label Apr 4, 2019
@tombuildsstuff tombuildsstuff dismissed their stale review April 8, 2019 05:39

dismissing since changes have been pushed

@tombuildsstuff
Copy link
Contributor

Tests pass:

Screenshot 2019-04-08 at 08 14 23

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.

Aside from a few comments i've left inline LGTM @mbfrahry

"tenant_id": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validate.NoEmptyStrings,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could this be validated as an ID?

return fmt.Errorf("Error setting `vsts_configuration`: %+v", err)
}
} else {
d.Set("vsts_configuration", []interface{}{})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we move this and the

d.Set("github_configuration", []interface{}{})

up above the two checks and then remove the else statements?

repositoryName := vsts["repository_name"].(string)
rootFolder := vsts["root_folder"].(string)
tenantID := vsts["tenant_id"].(string)
// https://github.com/Azure/go-autorest/issues/307
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor expanding on this comment as to whats going on beyond a link could be useful

Copy link
Member Author

Choose a reason for hiding this comment

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

Hbuckle found a weird case where you can pass the struct or the address of the struct into the sdk. If you didn't pass the address though, the sdk broke. I don't think we need to track that inside Terraform though since we can just pass the address like we normally do.

resource "azurerm_data_factory" "test" {
name = "acctestdf%d"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we fix the alignment here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Pesky tabs

resource "azurerm_data_factory" "test" {
name = "acctestdf%d"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

And here?

@mbfrahry mbfrahry merged commit 5bcf8cf into master Apr 9, 2019
@mbfrahry mbfrahry deleted the hbuckle-datafactory branch April 9, 2019 03:52
@mbfrahry
Copy link
Member Author

mbfrahry commented Apr 9, 2019

Hey @archmangler, this will make it into the next release 1.25.0

@ghost
Copy link

ghost commented Apr 17, 2019

This has been released in version 1.25.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
	version = "~> 1.25.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented May 9, 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 May 9, 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.

New Resource request: Azure Data Factory
5 participants