-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skips errors for serverless DMS in GovCloud
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
) | ||
} |