Skip to content

Commit

Permalink
azurerm_linux_web_app and azurerm_linux_web_app_slot - Add Python…
Browse files Browse the repository at this point in the history
… 3.11 support (#20001)
  • Loading branch information
Ondkloss authored Jan 16, 2023
1 parent 7af3b42 commit 1ec5b07
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
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
15 changes: 15 additions & 0 deletions internal/services/appservice/linux_web_app_slot_resource_test.go
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

0 comments on commit 1ec5b07

Please sign in to comment.