Skip to content

Commit

Permalink
Skips errors for serverless DMS in GovCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Apr 16, 2024
1 parent 7b93205 commit 1911d1d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions internal/service/dms/dms_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package dms_test

import (
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-provider-aws/internal/acctest"
"github.com/hashicorp/terraform-provider-aws/names"
)

func init() {
acctest.RegisterServiceErrorCheckFunc(names.DMSServiceID, testAccErrorCheckSkip)
}

// testAccErrorCheckSkip skips DMS tests that have error messages indicating unsupported features
func testAccErrorCheckSkip(t *testing.T) resource.ErrorCheckFunc {
return acctest.ErrorCheckSkipMessagesContaining(t,
// Serverless DMS in GovCloud
"SERVERLESS feature is not available",
)
}

0 comments on commit 1911d1d

Please sign in to comment.