@@ -153,6 +153,43 @@ unittest
153
153
postGitHubHook(" dlang_phobos_synchronize_4921.json" );
154
154
}
155
155
156
+ @(" multiple-severity-labels" )
157
+ unittest
158
+ {
159
+ setAPIExpectations(
160
+ " /github/repos/dlang/phobos/pulls/4921/commits" , (ref Json j) {
161
+ j[0 ][" commit" ][" message" ] = " Fix Issue 8573, 8574" ;
162
+ },
163
+ " /github/repos/dlang/phobos/issues/4921/comments" ,
164
+ " /bugzilla/buglist.cgi?bug_id=8573,8574&ctype=csv&columnlist=short_desc,bug_status,resolution,bug_severity,priority,keywords" ,
165
+ (scope HTTPServerRequest req, scope HTTPServerResponse res){
166
+ res.writeBody(
167
+ ` bug_id,"short_desc","bug_status","resolution","bug_severity","priority","keywords"
168
+ 8573,"A simpler Phobos function that returns the index of the mix or max item","NEW","---","enhancement","P2",
169
+ 8574,"Some Bug","NEW","---","normal","P2",` );
170
+ },
171
+ " /github/repos/dlang/phobos/issues/4921/labels" ,
172
+ " /github/repos/dlang/phobos/issues/4921/labels" , (ref Json j) {
173
+ j = Json.emptyArray;
174
+ },
175
+ " /github/orgs/dlang/public_members?per_page=100" ,
176
+ " /github/repos/dlang/phobos/issues/comments/262784442" ,
177
+ (scope HTTPServerRequest req, scope HTTPServerResponse res){
178
+ },
179
+ " /github/repos/dlang/phobos/issues/4921/labels" ,
180
+ (scope HTTPServerRequest req, scope HTTPServerResponse res){
181
+ assert (req.json[].sort.equal([" Bug Fix" , " Enhancement" ]));
182
+ },
183
+ " /trello/1/search?query=name:%22Issue%208573%22&" ~ trelloAuth,
184
+ " /trello/1/search?query=name:%22Issue%208574%22&" ~ trelloAuth,
185
+ " /bugzilla/jsonrpc.cgi" , // Bug.comments (#8573,#8574)
186
+ " /bugzilla/jsonrpc.cgi" , // Bug.update (#8573)
187
+ " /bugzilla/jsonrpc.cgi" , // Bug.update (#8574)
188
+ );
189
+
190
+ postGitHubHook(" dlang_phobos_synchronize_4921.json" );
191
+ }
192
+
156
193
@(" do-not-readd-labels-1-#97" )
157
194
unittest
158
195
{
0 commit comments