@@ -81,7 +81,7 @@ func TestOrganizationIntegrationsService_List(t *testing.T) {
81
81
"stacktrace-link" ,
82
82
},
83
83
},
84
- ConfigData : & IntegrationConfigData {} ,
84
+ ConfigData : json . RawMessage ( "{}" ) ,
85
85
ExternalId : "87654321" ,
86
86
OrganizationId : 2 ,
87
87
OrganizationIntegrationStatus : "active" ,
@@ -181,15 +181,15 @@ func TestOrganizationIntegrationsService_Get(t *testing.T) {
181
181
"incident-management" ,
182
182
},
183
183
},
184
- ConfigData : & IntegrationConfigData {
185
- "service_table" : [] interface {}{
186
- map [ string ] interface {} {
187
- "service" : "testing123" ,
188
- "integration_key" : "abc123xyz" ,
189
- "id" : json . Number ( " 22222" ),
190
- },
191
- },
192
- } ,
184
+ ConfigData : json . RawMessage ( ` {
185
+ "service_table": [
186
+ {
187
+ "service": "testing123",
188
+ "integration_key": "abc123xyz",
189
+ "id": 22222
190
+ }
191
+ ]
192
+ }` ) ,
193
193
ExternalId : "999999" ,
194
194
OrganizationId : 2 ,
195
195
OrganizationIntegrationStatus : "active" ,
@@ -207,20 +207,20 @@ func TestOrganizationIntegrationsService_UpdateConfig(t *testing.T) {
207
207
w .Header ().Set ("Content-Type" , "application/json" )
208
208
})
209
209
210
- updateConfigOrganizationIntegrationsParams := UpdateConfigOrganizationIntegrationsParams {
211
- "service_table" : [] interface {}{
212
- map [ string ] interface {} {
213
- "service" : "testing123" ,
210
+ updateConfigOrganizationIntegrationsParams := UpdateConfigOrganizationIntegrationsParams ( ` {
211
+ "service_table": [
212
+ {
213
+ "service": "testing123",
214
214
"integration_key": "abc123xyz",
215
- "id" : json . Number ( " 22222" ),
215
+ "id": 22222
216
216
},
217
- map [ string ] interface {} {
218
- "service" : "testing456" ,
217
+ {
218
+ "service": "testing456",
219
219
"integration_key": "efg456lmn",
220
- "id" : "" ,
221
- },
222
- },
223
- }
220
+ "id": ""
221
+ }
222
+ ]
223
+ }` )
224
224
ctx := context .Background ()
225
225
resp , err := client .OrganizationIntegrations .UpdateConfig (ctx , "the-interstellar-jurisdiction" , "456789" , & updateConfigOrganizationIntegrationsParams )
226
226
assert .NoError (t , err )
0 commit comments