Skip to content

Commit

Permalink
fix connectors filter by prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanilo committed Feb 21, 2024
1 parent 085299f commit ac2a991
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ func TestAccDatasourceTwingateConnectorsFilterByPrefix(t *testing.T) {

resourceName := test.RandomResourceName()
connectorName := test.RandomConnectorName()
prefix := connectorName[:len(test.Prefix())+3]
theDatasource := "data.twingate_connectors." + resourceName

resource.Test(t, resource.TestCase{
Expand All @@ -249,7 +248,7 @@ func TestAccDatasourceTwingateConnectorsFilterByPrefix(t *testing.T) {
CheckDestroy: acctests.CheckTwingateResourceDestroy,
Steps: []resource.TestStep{
{
Config: testDatasourceTwingateConnectorsFilter(resourceName, test.RandomName(), connectorName, attr.FilterByPrefix, prefix),
Config: testDatasourceTwingateConnectorsFilter(resourceName, test.RandomName(), connectorName, attr.FilterByPrefix, connectorName),
Check: acctests.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(theDatasource, connectorsLen, "1"),
resource.TestCheckResourceAttr(theDatasource, connectorNamePath, connectorName),
Expand Down

0 comments on commit ac2a991

Please sign in to comment.