@@ -297,60 +297,6 @@ QUnit.test("http promise recursive", assert => {
297
297
assert . equal ( typeof promise3 . input , "function" , "promise3.input()" ) ;
298
298
} ) ;
299
299
300
- QUnit . test ( "http keep alive" , async assert => {
301
- assert . expect ( 1 ) ;
302
-
303
- // connection sharing is not implemented in the pybridge
304
- if ( await mock_info ( "pybridge" ) ) {
305
- assert . rejects (
306
- cockpit . http ( { port : test_server . port , connection : "one" } ) . get ( "/mock/connection" ) ,
307
- ex => ex . problem == "protocol-error" && ex . status == undefined ,
308
- "rejects connection option on python bridge" ) ;
309
- return ;
310
- }
311
-
312
- /*
313
- * The /mock/connection handler returns an identifier that changes if
314
- * a different connection is used.
315
- */
316
- const first = await cockpit . http ( { port : test_server . port , connection : "marmalade" } ) . get ( "/mock/connection" ) ;
317
- const second = await cockpit . http ( { port : test_server . port , connection : "marmalade" } ) . get ( "/mock/connection" ) ;
318
- assert . equal ( first , second , "same connection" ) ;
319
- } ) ;
320
-
321
- QUnit . test ( "http connection different" , async assert => {
322
- assert . expect ( 1 ) ;
323
-
324
- // connection sharing is not implemented in the pybridge
325
- if ( await mock_info ( "pybridge" ) ) {
326
- assert . ok ( true ) ;
327
- return ;
328
- }
329
-
330
- /*
331
- * The /mock/connection handler returns an identifier that changes if
332
- * a different connection is used.
333
- */
334
- const first = await cockpit . http ( { port : test_server . port , connection : "one" } ) . get ( "/mock/connection" ) ;
335
- const second = await cockpit . http ( { port : test_server . port , connection : "two" } ) . get ( "/mock/connection" ) ;
336
- assert . notEqual ( first , second , "different connection" ) ;
337
- } ) ;
338
-
339
- QUnit . test ( "http connection without address" , async assert => {
340
- assert . expect ( 1 ) ;
341
-
342
- // connection sharing is not implemented in the pybridge
343
- if ( await mock_info ( "pybridge" ) ) {
344
- assert . ok ( true ) ;
345
- return ;
346
- }
347
-
348
- // Able to reuse connection client info and not specify address again.
349
- const first = await cockpit . http ( { port : test_server . port , connection : "one" } ) . get ( "/mock/connection" ) ;
350
- const second = await cockpit . http ( { connection : "one" } ) . get ( "/mock/connection" ) ;
351
- assert . equal ( first , second , "same connection" ) ;
352
- } ) ;
353
-
354
300
QUnit . test ( "no dns address" , assert => {
355
301
assert . expect ( 1 ) ;
356
302
@@ -406,15 +352,10 @@ QUnit.test("wrong options", async assert => {
406
352
ex => ex . problem == "protocol-error" && ex . status == undefined ,
407
353
"rejects request with both port and unix option" ) ;
408
354
409
- // This is disallowed in the pybridge, but allowed in the C bridge
410
- if ( await mock_info ( "pybridge" ) ) {
411
- assert . rejects (
412
- cockpit . http ( { unix : "/nonexisting/socket" , tls : { } } ) . get ( "/" ) ,
413
- ex => ex . problem == "protocol-error" && ex . status == undefined ,
414
- "rejects request with both unix and tls option" ) ;
415
- } else {
416
- assert . ok ( true , "skipping on python bridge, not implemented" ) ;
417
- }
355
+ assert . rejects (
356
+ cockpit . http ( { unix : "/nonexisting/socket" , tls : { } } ) . get ( "/" ) ,
357
+ ex => ex . problem == "protocol-error" && ex . status == undefined ,
358
+ "rejects request with both unix and tls option" ) ;
418
359
} ) ;
419
360
420
361
QUnit . test ( "parallel stress test" , async assert => {
0 commit comments