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 Data Source: azurerm_app_service #1071

Merged
merged 4 commits into from Apr 5, 2018
Merged

Conversation

tombuildsstuff
Copy link
Member

Adding a new Data Source for App Service, since there's use cases for referencing it (e.g. adding a slot / binding a certificate etc)

```
$ acctests azurerm TestAccDataSourceAzureRMAppService_
=== RUN   TestAccDataSourceAzureRMAppService_basic
--- PASS: TestAccDataSourceAzureRMAppService_basic (253.82s)
=== RUN   TestAccDataSourceAzureRMAppService_tags
--- PASS: TestAccDataSourceAzureRMAppService_tags (111.16s)
=== RUN   TestAccDataSourceAzureRMAppService_clientAppAffinityDisabled
--- PASS: TestAccDataSourceAzureRMAppService_clientAppAffinityDisabled (103.34s)
=== RUN   TestAccDataSourceAzureRMAppService_siteConfig
--- PASS: TestAccDataSourceAzureRMAppService_siteConfig (107.17s)
=== RUN   TestAccDataSourceAzureRMAppService_appSettings
--- PASS: TestAccDataSourceAzureRMAppService_appSettings (143.14s)
=== RUN   TestAccDataSourceAzureRMAppService_connectionString
--- PASS: TestAccDataSourceAzureRMAppService_connectionString (125.71s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm       844.388s
```
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.

LGTM aside from a a few of the attributes in the documentation where the tense seems to be off.

}

func testAccDataSourceAppService_siteConfig(rInt int, location string) string {
config := testAccAzureRMAppService_32Bit(rInt, location)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason for the change of the test name from testAccAzureRMAppService_32Bit -> testAccDataSourceAppService_siteConfig?

Copy link
Member Author

Choose a reason for hiding this comment

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

in hindsight probably not, I guess we're checking the siteConfig either way - I've pushed a commit to rename it


* `dotnet_framework_version` - The version of the .net framework's CLR used in this App Service.

* `java_version` - The version of Java to use.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be the "Version of Java in use"

Copy link
Member Author

Choose a reason for hiding this comment

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

👍🏻 fixed


* `java_version` - The version of Java to use.

* `java_container` - The Java Container to use.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as above: "The java container in use"

Copy link
Member Author

Choose a reason for hiding this comment

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

👍🏻 fixed


* `java_container` - The Java Container to use.

* `java_container_version` - The version of the Java Container to use.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as above: "The version of the java container in use"

Copy link
Member Author

Choose a reason for hiding this comment

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

👍🏻 fixed


* `scm_type` - The type of Source Control enabled for this App Service.

* `use_32_bit_worker_process` - Should the App Service run in 32 bit mode, rather than 64 bit mode?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tense seems incorrect for a datasource.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍🏻 fixed


* `use_32_bit_worker_process` - Should the App Service run in 32 bit mode, rather than 64 bit mode?

* `websockets_enabled` - Should WebSockets be enabled?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tense seems incorrect for a datasource.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍🏻 fixed

@tombuildsstuff
Copy link
Member Author

Tests pass (from the previous commit):

$ acctests azurerm TestAccDataSourceAzureRMAppService_
=== RUN   TestAccDataSourceAzureRMAppService_basic
--- PASS: TestAccDataSourceAzureRMAppService_basic (253.82s)
=== RUN   TestAccDataSourceAzureRMAppService_tags
--- PASS: TestAccDataSourceAzureRMAppService_tags (111.16s)
=== RUN   TestAccDataSourceAzureRMAppService_clientAppAffinityDisabled
--- PASS: TestAccDataSourceAzureRMAppService_clientAppAffinityDisabled (103.34s)
=== RUN   TestAccDataSourceAzureRMAppService_siteConfig
--- PASS: TestAccDataSourceAzureRMAppService_siteConfig (107.17s)
=== RUN   TestAccDataSourceAzureRMAppService_appSettings
--- PASS: TestAccDataSourceAzureRMAppService_appSettings (143.14s)
=== RUN   TestAccDataSourceAzureRMAppService_connectionString
--- PASS: TestAccDataSourceAzureRMAppService_connectionString (125.71s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm       844.388s

@tombuildsstuff tombuildsstuff merged commit 657679c into master Apr 5, 2018
@tombuildsstuff tombuildsstuff deleted the data-source-app-service branch April 5, 2018 09:31
tombuildsstuff added a commit that referenced this pull request Apr 5, 2018
@ghost
Copy link

ghost commented Mar 31, 2020

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Mar 31, 2020
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.

None yet

2 participants