Skip to content

Commit 2cc55a9

Browse files
authored
Merge pull request #303 from port-labs/fix/test-port-action
Fixed test for min and max jq
2 parents 906a1d6 + ca3ceb2 commit 2cc55a9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

port/action/resource_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ func TestAccPortActionArrayPropsConflictMaxItemsAndJqQuery(t *testing.T) {
914914
Steps: []resource.TestStep{
915915
{
916916
Config: acctest.ProviderConfig + testAccActionConfigCreate,
917-
ExpectError: regexp.MustCompile(`.*Attribute "max_items_jq_query".*conflicts with.*max_items.*`),
917+
ExpectError: regexp.MustCompile(`Invalid Attribute Combination`),
918918
},
919919
},
920920
})
@@ -953,7 +953,7 @@ func TestAccPortActionArrayPropsConflictMinItemsAndJqQuery(t *testing.T) {
953953
Steps: []resource.TestStep{
954954
{
955955
Config: acctest.ProviderConfig + testAccActionConfigCreate,
956-
ExpectError: regexp.MustCompile(`.*Attribute "min_items_jq_query".*conflicts with.*min_items.*`),
956+
ExpectError: regexp.MustCompile(`Invalid Attribute Combination`),
957957
},
958958
},
959959
})
@@ -3588,7 +3588,6 @@ func TestAccPortActionStepsVisibleJqQuery(t *testing.T) {
35883588
kafka_method = {}
35893589
}`, actionIdentifier, identifier)
35903590

3591-
35923591
resource.Test(t, resource.TestCase{
35933592
PreCheck: func() { acctest.TestAccPreCheck(t) },
35943593
ProtoV6ProviderFactories: acctest.TestAccProtoV6ProviderFactories,
@@ -3611,4 +3610,3 @@ func TestAccPortActionStepsVisibleJqQuery(t *testing.T) {
36113610
},
36123611
})
36133612
}
3614-

0 commit comments

Comments
 (0)