@@ -2,6 +2,7 @@ package sentry
2
2
3
3
import (
4
4
"context"
5
+ "encoding/json"
5
6
"fmt"
6
7
"net/http"
7
8
"testing"
@@ -29,7 +30,8 @@ func TestOrganizationRepositoriesService_List(t *testing.T) {
29
30
"status": "active",
30
31
"dateCreated": "2022-08-15T06:31:49.817916Z",
31
32
"integrationId": "123456",
32
- "externalSlug": "aht4davchml6srhh6mvthluoscl2lzmi"
33
+ "externalSlug": "aht4davchml6srhh6mvthluoscl2lzmi",
34
+ "externalId": "123456"
33
35
}
34
36
]` )
35
37
})
@@ -54,7 +56,8 @@ func TestOrganizationRepositoriesService_List(t *testing.T) {
54
56
Status : "active" ,
55
57
DateCreated : mustParseTime ("2022-08-15T06:31:49.817916Z" ),
56
58
IntegrationId : "123456" ,
57
- ExternalSlug : "aht4davchml6srhh6mvthluoscl2lzmi" ,
59
+ ExternalSlug : json .RawMessage (`"aht4davchml6srhh6mvthluoscl2lzmi"` ),
60
+ ExternalId : "123456" ,
58
61
},
59
62
}
60
63
assert .Equal (t , expected , repos )
@@ -79,7 +82,8 @@ func TestOrganizationRepositoriesService_Create(t *testing.T) {
79
82
"status": "active",
80
83
"dateCreated": "2022-08-15T06:31:49.817916Z",
81
84
"integrationId": "123456",
82
- "externalSlug": "aht4davchml6srhh6mvthluoscl2lzmi"
85
+ "externalSlug": "aht4davchml6srhh6mvthluoscl2lzmi",
86
+ "externalId": "123456"
83
87
}` )
84
88
})
85
89
@@ -102,7 +106,8 @@ func TestOrganizationRepositoriesService_Create(t *testing.T) {
102
106
Status : "active" ,
103
107
DateCreated : mustParseTime ("2022-08-15T06:31:49.817916Z" ),
104
108
IntegrationId : "123456" ,
105
- ExternalSlug : "aht4davchml6srhh6mvthluoscl2lzmi" ,
109
+ ExternalSlug : json .RawMessage (`"aht4davchml6srhh6mvthluoscl2lzmi"` ),
110
+ ExternalId : "123456" ,
106
111
}
107
112
assert .Equal (t , expected , repo )
108
113
}
@@ -128,7 +133,8 @@ func TestOrganizationRepositoriesService_Delete(t *testing.T) {
128
133
"status": "pending_deletion",
129
134
"dateCreated": "2022-08-15T06:31:49.817916Z",
130
135
"integrationId": "123456",
131
- "externalSlug": "aht4davchml6srhh6mvthluoscl2lzmi"
136
+ "externalSlug": "aht4davchml6srhh6mvthluoscl2lzmi",
137
+ "externalId": "123456"
132
138
}` )
133
139
})
134
140
@@ -146,7 +152,8 @@ func TestOrganizationRepositoriesService_Delete(t *testing.T) {
146
152
Status : "pending_deletion" ,
147
153
DateCreated : mustParseTime ("2022-08-15T06:31:49.817916Z" ),
148
154
IntegrationId : "123456" ,
149
- ExternalSlug : "aht4davchml6srhh6mvthluoscl2lzmi" ,
155
+ ExternalSlug : json .RawMessage (`"aht4davchml6srhh6mvthluoscl2lzmi"` ),
156
+ ExternalId : "123456" ,
150
157
}
151
158
assert .Equal (t , expected , repo )
152
159
}
0 commit comments