File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
internal/service/opensearch Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 88 "fmt"
99 "testing"
1010
11+ "github.com/YakDriver/regexache"
1112 awstypes "github.com/aws/aws-sdk-go-v2/service/opensearch/types"
1213 "github.com/hashicorp/terraform-plugin-testing/helper/resource"
1314 "github.com/hashicorp/terraform-plugin-testing/terraform"
@@ -87,6 +88,11 @@ func TestAccOpenSearchPackage_packageTypeZipPlugin(t *testing.T) {
8788 "package_source" , // This isn't returned by the API
8889 },
8990 },
91+ {
92+ // If engin_version is different from specified in the plugin zip file, it should return an error
93+ Config : testAccPackageConfig_packageTypeZipPlugin (pkgName , "OpenSearch_2.11" ),
94+ ExpectError : regexache .MustCompile (`doesn't matches with the provided EngineVersion` ),
95+ },
9096 },
9197 })
9298}
You can’t perform that action at this time.
0 commit comments