@@ -3,7 +3,7 @@ package aws
33import (
44 "testing"
55
6- "github.com/databricks/databricks-sdk-go/apierr "
6+ "github.com/databricks/terraform-provider-databricks/common "
77 "github.com/databricks/terraform-provider-databricks/scim"
88
99 "github.com/databricks/terraform-provider-databricks/qa"
@@ -56,7 +56,7 @@ func TestResourceGroupInstanceProfileCreate_Error(t *testing.T) {
5656 {
5757 Method : "PATCH" ,
5858 Resource : "/api/2.0/preview/scim/v2/Groups/abc" ,
59- Response : apierr .APIErrorBody {
59+ Response : common .APIErrorBody {
6060 ErrorCode : "INVALID_REQUEST" ,
6161 Message : "Internal error happened" ,
6262 },
@@ -80,7 +80,7 @@ func TestResourceGroupInstanceProfileCreate_Error_InvalidARN(t *testing.T) {
8080 {
8181 Method : "PATCH" ,
8282 Resource : "/api/2.0/preview/scim/v2/Groups/abc" ,
83- Response : apierr .APIErrorBody {
83+ Response : common .APIErrorBody {
8484 ErrorCode : "INVALID_REQUEST" ,
8585 Message : "Internal error happened" ,
8686 },
@@ -103,7 +103,7 @@ func TestResourceGroupInstanceProfileCreate_Error_OtherARN(t *testing.T) {
103103 {
104104 Method : "PATCH" ,
105105 Resource : "/api/2.0/preview/scim/v2/Groups/abc" ,
106- Response : apierr .APIErrorBody {
106+ Response : common .APIErrorBody {
107107 ErrorCode : "INVALID_REQUEST" ,
108108 Message : "Internal error happened" ,
109109 },
@@ -152,7 +152,7 @@ func TestResourceGroupInstanceProfileRead_NotFound(t *testing.T) {
152152 {
153153 Method : "GET" ,
154154 Resource : "/api/2.0/preview/scim/v2/Groups/abc?attributes=roles" ,
155- Response : apierr .APIErrorBody {
155+ Response : common .APIErrorBody {
156156 ErrorCode : "NOT_FOUND" ,
157157 Message : "Item not found" ,
158158 },
@@ -192,7 +192,7 @@ func TestResourceGroupInstanceProfileRead_Error(t *testing.T) {
192192 {
193193 Method : "GET" ,
194194 Resource : "/api/2.0/preview/scim/v2/Groups/abc?attributes=roles" ,
195- Response : apierr .APIErrorBody {
195+ Response : common .APIErrorBody {
196196 ErrorCode : "INVALID_REQUEST" ,
197197 Message : "Internal error happened" ,
198198 },
@@ -232,7 +232,7 @@ func TestResourceGroupInstanceProfileDelete_Error(t *testing.T) {
232232 {
233233 Method : "PATCH" ,
234234 Resource : "/api/2.0/preview/scim/v2/Groups/abc" ,
235- Response : apierr .APIErrorBody {
235+ Response : common .APIErrorBody {
236236 ErrorCode : "INVALID_REQUEST" ,
237237 Message : "Internal error happened" ,
238238 },
0 commit comments