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_orbital_contact_profile: remove ForceNew for Channels #25129

Merged
merged 1 commit into from
Mar 5, 2024
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
22 changes: 22 additions & 0 deletions internal/services/orbital/contact_profile_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,28 @@ func TestAccContactProfile_multipleChannels(t *testing.T) {
})
}

func TestAccContactProfile_addChannel(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_orbital_contact_profile", "test")
r := ContactProfileResource{}

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

func TestAccContactProfile_update(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_orbital_contact_profile", "test")
r := ContactProfileResource{}
Expand Down
1 change: 0 additions & 1 deletion internal/services/orbital/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func ChannelSchema() *pluginsdk.Schema {
return &pluginsdk.Schema{
Type: pluginsdk.TypeList,
Required: true,
ForceNew: true,
MinItems: 1,
Elem: &pluginsdk.Resource{
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/orbital_contact_profile.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The following arguments are supported:

A `links` block supports the following:

* `channels` - (Required) A list of contact profile link channels. A `channels` block as defined below. Changing this forces a new resource to be created.
* `channels` - (Required) A list of contact profile link channels. A `channels` block as defined below.

* `direction` - (Required) Direction of the link. Possible values are `Uplink` and `Downlink`.

Expand Down
Loading