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

azurerm_linux_web_app and azurerm_linux_web_app_slot - Add Python 3.11 support #20001

Merged
merged 1 commit into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/services/appservice/helpers/app_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ func linuxApplicationStackSchema() *pluginsdk.Schema {
"3.8",
"3.9",
"3.10",
"3.11",
}, false),
ExactlyOneOf: []string{
"site_config.0.application_stack.0.docker_image",
Expand Down
15 changes: 15 additions & 0 deletions internal/services/appservice/linux_web_app_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,21 @@ func TestAccLinuxWebApp_withPython310(t *testing.T) {
})
}

func TestAccLinuxWebApp_withPython311(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_linux_web_app", "test")
r := LinuxWebAppResource{}

data.ResourceTest(t, r, []acceptance.TestStep{
{
Config: r.python(data, "3.11"),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep(),
})
}

func TestAccLinuxWebApp_withRuby26(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_linux_web_app", "test")
r := LinuxWebAppResource{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,21 @@ func TestAccLinuxWebAppSlot_withPython310(t *testing.T) {
})
}

func TestAccLinuxWebAppSlot_withPython311(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_linux_web_app_slot", "test")
r := LinuxWebAppSlotResource{}

data.ResourceTest(t, r, []acceptance.TestStep{
{
Config: r.python(data, "3.11"),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep(),
})
}

func TestAccLinuxWebAppSlot_withRuby26(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_linux_web_app_slot", "test")
r := LinuxWebAppSlotResource{}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/linux_web_app.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ An `application_stack` block supports the following:

~> **NOTE:** versions `5.6` and `7.2` are deprecated and will be removed from the provider in a future version.

* `python_version` - (Optional) The version of Python to run. Possible values include `3.7`, `3.8`, `3.9` and `3.10`.
* `python_version` - (Optional) The version of Python to run. Possible values include `3.7`, `3.8`, `3.9`, `3.10` and `3.11`.

* `ruby_version` - (Optional) Te version of Ruby to run. Possible values include `2.6` and `2.7`.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/linux_web_app_slot.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ An `application_stack` block supports the following:

~> **NOTE:** versions `5.6` and `7.2` are deprecated and will be removed from the provider in a future version.

* `python_version` - (Optional) The version of Python to run. Possible values include `3.7`, `3.8`, `3.9` and `3.10`.
* `python_version` - (Optional) The version of Python to run. Possible values include `3.7`, `3.8`, `3.9`, `3.10` and `3.11`.

* `ruby_version` - (Optional) Te version of Ruby to run. Possible values include `2.6` and `2.7`.

Expand Down