@@ -88,7 +88,8 @@ void test_download_one_issue() throws IOException {
88
88
response .writeTo (byteStream );
89
89
try (InputStream inputStream = new ByteArrayInputStream (byteStream .toByteArray ())) {
90
90
WsClientTestUtils .addResponse (wsClient ,
91
- "/api/issues/search.protobuf?statuses=OPEN,CONFIRMED,REOPENED,RESOLVED&types=CODE_SMELL,BUG,VULNERABILITY&componentKeys=" + key + "&ps=500&p=1" , inputStream );
91
+ "/api/issues/search.protobuf?statuses=OPEN,CONFIRMED,REOPENED,RESOLVED&types=CODE_SMELL,BUG,VULNERABILITY&s=STATUS&asc=false&componentKeys=" + key + "&ps=500&p=1" ,
92
+ inputStream );
92
93
}
93
94
}
94
95
@@ -134,7 +135,8 @@ void test_download_no_issues() throws IOException {
134
135
response .writeTo (byteStream );
135
136
try (InputStream inputStream = new ByteArrayInputStream (byteStream .toByteArray ())) {
136
137
WsClientTestUtils .addResponse (wsClient ,
137
- "/api/issues/search.protobuf?statuses=OPEN,CONFIRMED,REOPENED,RESOLVED&types=CODE_SMELL,BUG,VULNERABILITY&componentKeys=" + key + "&ps=500&p=1" , inputStream );
138
+ "/api/issues/search.protobuf?statuses=OPEN,CONFIRMED,REOPENED,RESOLVED&types=CODE_SMELL,BUG,VULNERABILITY&s=STATUS&asc=false&componentKeys=" + key + "&ps=500&p=1" ,
139
+ inputStream );
138
140
}
139
141
}
140
142
@@ -148,7 +150,7 @@ void test_fail_other_codes() throws IOException {
148
150
SonarLintWsClient wsClient = WsClientTestUtils .createMock ();
149
151
String key = "dummyKey" ;
150
152
WsClientTestUtils .addFailedResponse (wsClient ,
151
- "/api/issues/search.protobuf?statuses=OPEN,CONFIRMED,REOPENED,RESOLVED&types=CODE_SMELL,BUG,VULNERABILITY&componentKeys=" + key + "&ps=500&p=1" , 503 , "" );
153
+ "/api/issues/search.protobuf?statuses=OPEN,CONFIRMED,REOPENED,RESOLVED&types=CODE_SMELL,BUG,VULNERABILITY&s=STATUS&asc=false& componentKeys=" + key + "&ps=500&p=1" , 503 , "" );
152
154
153
155
IssueDownloader issueDownloader = new IssueDownloader (wsClient , issueStorePaths );
154
156
IllegalStateException thrown = assertThrows (IllegalStateException .class , () -> issueDownloader .download (key , projectConfiguration , PROGRESS ));
0 commit comments