@@ -3,7 +3,7 @@ package aws
3
3
import (
4
4
"testing"
5
5
6
- "github.com/databricks/databricks-sdk-go/apierr "
6
+ "github.com/databricks/terraform-provider-databricks/common "
7
7
"github.com/databricks/terraform-provider-databricks/scim"
8
8
9
9
"github.com/databricks/terraform-provider-databricks/qa"
@@ -56,7 +56,7 @@ func TestResourceGroupInstanceProfileCreate_Error(t *testing.T) {
56
56
{
57
57
Method : "PATCH" ,
58
58
Resource : "/api/2.0/preview/scim/v2/Groups/abc" ,
59
- Response : apierr .APIErrorBody {
59
+ Response : common .APIErrorBody {
60
60
ErrorCode : "INVALID_REQUEST" ,
61
61
Message : "Internal error happened" ,
62
62
},
@@ -80,7 +80,7 @@ func TestResourceGroupInstanceProfileCreate_Error_InvalidARN(t *testing.T) {
80
80
{
81
81
Method : "PATCH" ,
82
82
Resource : "/api/2.0/preview/scim/v2/Groups/abc" ,
83
- Response : apierr .APIErrorBody {
83
+ Response : common .APIErrorBody {
84
84
ErrorCode : "INVALID_REQUEST" ,
85
85
Message : "Internal error happened" ,
86
86
},
@@ -103,7 +103,7 @@ func TestResourceGroupInstanceProfileCreate_Error_OtherARN(t *testing.T) {
103
103
{
104
104
Method : "PATCH" ,
105
105
Resource : "/api/2.0/preview/scim/v2/Groups/abc" ,
106
- Response : apierr .APIErrorBody {
106
+ Response : common .APIErrorBody {
107
107
ErrorCode : "INVALID_REQUEST" ,
108
108
Message : "Internal error happened" ,
109
109
},
@@ -152,7 +152,7 @@ func TestResourceGroupInstanceProfileRead_NotFound(t *testing.T) {
152
152
{
153
153
Method : "GET" ,
154
154
Resource : "/api/2.0/preview/scim/v2/Groups/abc?attributes=roles" ,
155
- Response : apierr .APIErrorBody {
155
+ Response : common .APIErrorBody {
156
156
ErrorCode : "NOT_FOUND" ,
157
157
Message : "Item not found" ,
158
158
},
@@ -192,7 +192,7 @@ func TestResourceGroupInstanceProfileRead_Error(t *testing.T) {
192
192
{
193
193
Method : "GET" ,
194
194
Resource : "/api/2.0/preview/scim/v2/Groups/abc?attributes=roles" ,
195
- Response : apierr .APIErrorBody {
195
+ Response : common .APIErrorBody {
196
196
ErrorCode : "INVALID_REQUEST" ,
197
197
Message : "Internal error happened" ,
198
198
},
@@ -232,7 +232,7 @@ func TestResourceGroupInstanceProfileDelete_Error(t *testing.T) {
232
232
{
233
233
Method : "PATCH" ,
234
234
Resource : "/api/2.0/preview/scim/v2/Groups/abc" ,
235
- Response : apierr .APIErrorBody {
235
+ Response : common .APIErrorBody {
236
236
ErrorCode : "INVALID_REQUEST" ,
237
237
Message : "Internal error happened" ,
238
238
},
0 commit comments