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

Issue #745, adds more options to azurerm_function_app #886

Merged

Conversation

cloudify
Copy link
Contributor

@cloudify cloudify commented Feb 23, 2018

@tombuildsstuff how do you suggest I test this patch? should I create new tests or extend the current ones?

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

Thanks for this PR - I've taken a look and left some comments in-line, but this mostly LGTM. If we can confirm the defaults this should be good to merge :)

Thanks!

"use_32_bit_worker_process": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on this comment I believe this needs to be defaulted to true for Function Apps?

@@ -87,7 +89,12 @@ The following arguments are supported:

`site_config` supports the following:

* `always_on` - (Optional) Should the app be loaded at all times? Defaults to `false`.
* `always_on` - (Optional) Should the Function App be loaded at all times? Defaults to `false`.
* `use_32_bit_worker_process` - (Optional) Should the Function App run in 32 bit mode, rather than 64 bit mode?
Copy link
Contributor

Choose a reason for hiding this comment

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

We should add "Defaults to value" (which should be true, based on above)

@tombuildsstuff tombuildsstuff added this to the 1.1.3 milestone Feb 23, 2018
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 @cloudify

Thanks for pushing those updates - I've taken another look through and if we can add an acceptance test setting a 64 bit worker process, this should be good to merge :)

Thanks!

@@ -410,6 +441,14 @@ func flattenFunctionAppSiteConfig(input *web.SiteConfig) []interface{} {
result["always_on"] = *input.AlwaysOn
}

if input.Use32BitWorkerProcess != nil {
result["use_32_bit_worker_process"] = *input.Use32BitWorkerProcess
}
Copy link
Contributor

Choose a reason for hiding this comment

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

could we add an acceptance test with the 64 bit worker process enabled? here's an example of how we're doing that

Copy link
Contributor

Choose a reason for hiding this comment

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

so that we can get this merged, I've pushed an acceptance test for this - I hope you don't mind!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not at all! thanks for pushing this, I got caught in higher priority tasks and couldn't focus on this now...

@tombuildsstuff tombuildsstuff modified the milestones: 1.1.3, 1.1.4, 1.3.0, Future Feb 28, 2018
```
$ acctests azurerm TestAccAzureRMFunctionApp_3264bit
=== RUN   TestAccAzureRMFunctionApp_3264bit
--- PASS: TestAccAzureRMFunctionApp_3264bit (144.57s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	144.596s
```
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 @cloudify

Thanks for pushing the latest updates - I've pushed a commit which adds an acceptance test for this, but this otherwise LGTM 👍

I'll kick off the test suite now, but this otherwise looks good to merge :)

Thanks!

@tombuildsstuff tombuildsstuff self-assigned this Mar 6, 2018
@tombuildsstuff tombuildsstuff modified the milestones: Future, 1.3.0 Mar 6, 2018
@tombuildsstuff
Copy link
Contributor

Tests pass:

screen shot 2018-03-06 at 09 25 55

@tombuildsstuff tombuildsstuff merged commit 8fca308 into hashicorp:master Mar 6, 2018
tombuildsstuff added a commit that referenced this pull request Mar 6, 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 👉 [email protected]. Thanks!

@ghost ghost 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.

2 participants