Skip to content

Commit

Permalink
Skip acceptance test errors like 'Error creating License Manager lice…
Browse files Browse the repository at this point in the history
…nse configuration: ResourceLimitExceededException: You have reached the maximum allowed number of license configurations created in one day.'.
  • Loading branch information
ewbankkit committed Nov 3, 2021
1 parent 3c49c1c commit af544da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/service/licensemanager/license_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/conns"
)

func init() {
acctest.RegisterServiceErrorCheckFunc(licensemanager.EndpointsID, testAccErrorCheckSkipLicenseManager)
}

func testAccErrorCheckSkipLicenseManager(t *testing.T) resource.ErrorCheckFunc {
return acctest.ErrorCheckSkipMessagesContaining(t,
"ResourceLimitExceededException",
)
}

func TestAccLicenseManagerLicenseConfiguration_basic(t *testing.T) {
var licenseConfiguration licensemanager.LicenseConfiguration
resourceName := "aws_licensemanager_license_configuration.example"
Expand Down

0 comments on commit af544da

Please sign in to comment.