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

Bugfix: azurerm_data_factory_dataset_delimited_text - Ensure optional variables are set correctly #12921

Merged
merged 3 commits into from
Aug 12, 2021
Merged

Bugfix: azurerm_data_factory_dataset_delimited_text - Ensure optional variables are set correctly #12921

merged 3 commits into from
Aug 12, 2021

Conversation

henrymcconville
Copy link
Contributor

@henrymcconville henrymcconville commented Aug 10, 2021

Changes:

  • Update documentation to accurately reflect optional values as per Microsoft docs
  • Only set optional type property values if they are supplied, otherwise omit them so that defaults are used instead of an empty string
  • Make filepath/filename optional for azure_blob_storage_location

Tests:

➜  ~/go/src/github.com/hashicorp/terraform-provider-azurerm: git:(adf-dataset-delimited-fix) ✗ make acctests SERVICE='datafactory/data_factory_dataset_delimited_text_resource_test.go' TESTTIMEOUT='60m'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/datafactory/data_factory_dataset_delimited_text_resource_test.go  -timeout 60m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccDataFactoryDatasetDelimitedText_http
=== PAUSE TestAccDataFactoryDatasetDelimitedText_http
=== RUN   TestAccDataFactoryDatasetDelimitedText_http_update
=== PAUSE TestAccDataFactoryDatasetDelimitedText_http_update
=== RUN   TestAccDataFactoryDatasetDelimitedText_blob_basic
=== PAUSE TestAccDataFactoryDatasetDelimitedText_blob_basic
=== RUN   TestAccDataFactoryDatasetDelimitedText_blob
=== PAUSE TestAccDataFactoryDatasetDelimitedText_blob
=== RUN   TestAccDataFactoryDatasetDelimitedText_blobFS
=== PAUSE TestAccDataFactoryDatasetDelimitedText_blobFS
=== CONT  TestAccDataFactoryDatasetDelimitedText_http
=== CONT  TestAccDataFactoryDatasetDelimitedText_blob
=== CONT  TestAccDataFactoryDatasetDelimitedText_blob_basic
=== CONT  TestAccDataFactoryDatasetDelimitedText_http_update
=== CONT  TestAccDataFactoryDatasetDelimitedText_blobFS
--- PASS: TestAccDataFactoryDatasetDelimitedText_http (134.67s)
--- PASS: TestAccDataFactoryDatasetDelimitedText_blob_basic (140.30s)
--- PASS: TestAccDataFactoryDatasetDelimitedText_blob (153.20s)
--- PASS: TestAccDataFactoryDatasetDelimitedText_http_update (182.64s)
--- PASS: TestAccDataFactoryDatasetDelimitedText_blobFS (187.94s)
PASS
ok  	command-line-arguments	191.105s

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.

Thanks @henrymcconville - LGTM 🚀

@katbyte katbyte merged commit 081d807 into hashicorp:main Aug 12, 2021
katbyte added a commit that referenced this pull request Aug 12, 2021
@github-actions
Copy link

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

@henrymcconville henrymcconville deleted the adf-dataset-delimited-fix branch August 12, 2021 09:32
@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2021
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.

2 participants