Skip to content

Commit

Permalink
azurerm_orbital_contact_profile: remove ForceNew for channels
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyeqf committed Mar 4, 2024
1 parent 0d17c89 commit d58cc1b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
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

0 comments on commit d58cc1b

Please sign in to comment.