@@ -81,7 +81,7 @@ func TestOrganizationIntegrationsService_List(t *testing.T) {
8181 "stacktrace-link" ,
8282 },
8383 },
84- ConfigData : & IntegrationConfigData {} ,
84+ ConfigData : json . RawMessage ( "{}" ) ,
8585 ExternalId : "87654321" ,
8686 OrganizationId : 2 ,
8787 OrganizationIntegrationStatus : "active" ,
@@ -181,15 +181,15 @@ func TestOrganizationIntegrationsService_Get(t *testing.T) {
181181 "incident-management" ,
182182 },
183183 },
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+ }` ) ,
193193 ExternalId : "999999" ,
194194 OrganizationId : 2 ,
195195 OrganizationIntegrationStatus : "active" ,
@@ -207,20 +207,20 @@ func TestOrganizationIntegrationsService_UpdateConfig(t *testing.T) {
207207 w .Header ().Set ("Content-Type" , "application/json" )
208208 })
209209
210- updateConfigOrganizationIntegrationsParams := UpdateConfigOrganizationIntegrationsParams {
211- "service_table" : [] interface {}{
212- map [ string ] interface {} {
213- "service" : "testing123" ,
210+ updateConfigOrganizationIntegrationsParams := UpdateConfigOrganizationIntegrationsParams ( ` {
211+ "service_table": [
212+ {
213+ "service": "testing123",
214214 "integration_key": "abc123xyz",
215- "id" : json . Number ( " 22222" ),
215+ "id": 22222
216216 },
217- map [ string ] interface {} {
218- "service" : "testing456" ,
217+ {
218+ "service": "testing456",
219219 "integration_key": "efg456lmn",
220- "id" : "" ,
221- },
222- },
223- }
220+ "id": ""
221+ }
222+ ]
223+ }` )
224224 ctx := context .Background ()
225225 resp , err := client .OrganizationIntegrations .UpdateConfig (ctx , "the-interstellar-jurisdiction" , "456789" , & updateConfigOrganizationIntegrationsParams )
226226 assert .NoError (t , err )
0 commit comments