@@ -130,7 +130,7 @@ void setUp() {
130
130
@ Test
131
131
void unauthenticated_requests_should_forbid_access () {
132
132
given ().body (
133
- "{ \" artifact\" :\" aaaa\" ,\" artifactId\" : \" string\" , \" description\" : \" string\" , \" groupId\" : \" messging\" , \" metadata\" : {}, \" name\" : \" string\" ,\" origins\" : [ { \" id\" : \" string\" , \" platform\" : false } ], \" version\" : \" string\" }" )
133
+ "{ \" artifact\" :\" aaaa\" ,\" artifactId\" : \" string\" , \" description\" : \" string\" , \" groupId\" : \" messging\" , \" metadata\" : {}, \" name\" : \" string\" ,\" origins\" : [ { \" id\" : \" string\" , \" platform\" : false } ], \" version\" : \" string\" }" )
134
134
.post ("/admin/v1/extension" )
135
135
.then ()
136
136
.statusCode (HttpURLConnection .HTTP_FORBIDDEN );
@@ -225,8 +225,8 @@ void validate_long_input() {
225
225
void delete_extension () {
226
226
// Delete extension version
227
227
given ().formParams ("groupId" , "delete" ,
228
- "artifactId" , "me" ,
229
- "version" , "1.1.0" )
228
+ "artifactId" , "me" ,
229
+ "version" , "1.1.0" )
230
230
.header ("Token" , "test" )
231
231
.delete ("/admin/v1/extension" )
232
232
.then ()
@@ -242,7 +242,7 @@ void delete_extension() {
242
242
243
243
// Delete extension
244
244
given ().formParams ("groupId" , "delete" ,
245
- "artifactId" , "me" )
245
+ "artifactId" , "me" )
246
246
.header ("Token" , "test" )
247
247
.delete ("/admin/v1/extension" )
248
248
.then ()
@@ -261,8 +261,8 @@ void delete_extension() {
261
261
void should_not_delete_extension_release_from_platform () {
262
262
// Should not delete an extension release if it belongs to a platform
263
263
given ().formParams ("groupId" , "delete-platform-groupId" ,
264
- "artifactId" , "delete-platform-artifactId" ,
265
- "version" , "1.0.0" )
264
+ "artifactId" , "delete-platform-artifactId" ,
265
+ "version" , "1.0.0" )
266
266
.header ("Token" , "test" )
267
267
.delete ("/admin/v1/extension" )
268
268
.then ()
@@ -273,7 +273,7 @@ void should_not_delete_extension_release_from_platform() {
273
273
void should_not_delete_extension_from_platform () {
274
274
// Should not delete an extension if any release belongs to a platform
275
275
given ().formParams ("groupId" , "delete-platform-groupId" ,
276
- "artifactId" , "delete-platform-artifactId" )
276
+ "artifactId" , "delete-platform-artifactId" )
277
277
.header ("Token" , "test" )
278
278
.delete ("/admin/v1/extension" )
279
279
.then ()
@@ -312,7 +312,7 @@ void should_honor_unlisted_platform_stream_flag() {
312
312
void delete_extension_catalog () {
313
313
// Delete extension version
314
314
given ().formParams ("platformKey" , "io.quarkus.platform" ,
315
- "version" , "10.0.0.Final" )
315
+ "version" , "10.0.0.Final" )
316
316
.header ("Token" , "test" )
317
317
.delete ("/admin/v1/extension/catalog" )
318
318
.then ()
@@ -427,4 +427,22 @@ void patch_platform_stream_lts() throws IOException {
427
427
.body ("platforms[0].streams.find{it.id = '10.0'}.lts" , is (true ));
428
428
429
429
}
430
+
431
+ @ Test
432
+ void delete_platform_stream () {
433
+ // Delete platform stream
434
+ given ()
435
+ .header ("Token" , "test" )
436
+ .delete ("/admin/v1/stream/io.quarkus.platform/10.0" )
437
+ .then ()
438
+ .statusCode (HttpURLConnection .HTTP_ACCEPTED );
439
+
440
+ given ()
441
+ .get ("/client/platforms/all" )
442
+ .then ()
443
+ .statusCode (HttpURLConnection .HTTP_OK )
444
+ .contentType (ContentType .JSON )
445
+ .body ("platforms[0].streams" , hasSize (1 ),
446
+ "platforms[0].current-stream-id" , is ("9.0" ));
447
+ }
430
448
}
0 commit comments