1- //go:debug rsa1024min=0
21package mercure
32
43import (
@@ -262,7 +261,7 @@ func TestAuthorizeAuthorizationHeaderInvalidSignature(t *testing.T) {
262261}
263262
264263func TestAuthorizeAuthorizationHeaderNoContent (t * testing.T ) {
265- t .Parallel ( )
264+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
266265
267266 for _ , testdata := range AuthTestData {
268267 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -278,7 +277,7 @@ func TestAuthorizeAuthorizationHeaderNoContent(t *testing.T) {
278277}
279278
280279func TestAuthorizeAuthorizationHeader (t * testing.T ) {
281- t .Parallel ( )
280+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
282281
283282 for _ , testdata := range AuthTestData {
284283 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -294,7 +293,7 @@ func TestAuthorizeAuthorizationHeader(t *testing.T) {
294293}
295294
296295func TestAuthorizeAuthorizationHeaderWithCert (t * testing.T ) {
297- t .Parallel ( )
296+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
298297
299298 for _ , testdata := range AuthTestData {
300299 if testdata .validForCert != "" {
@@ -312,7 +311,7 @@ func TestAuthorizeAuthorizationHeaderWithCert(t *testing.T) {
312311}
313312
314313func TestAuthorizeAuthorizationHeaderNamespaced (t * testing.T ) {
315- t .Parallel ( )
314+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
316315
317316 for _ , testdata := range AuthTestData {
318317 if testdata .validNamespaced != "" {
@@ -418,7 +417,7 @@ func TestAuthorizeAuthorizationQueryInvalidSignature(t *testing.T) {
418417}
419418
420419func TestAuthorizeAuthorizationQueryNoContent (t * testing.T ) {
421- t .Parallel ( )
420+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
422421
423422 for _ , testdata := range AuthTestData {
424423 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -436,7 +435,7 @@ func TestAuthorizeAuthorizationQueryNoContent(t *testing.T) {
436435}
437436
438437func TestAuthorizeAuthorizationQuery (t * testing.T ) {
439- t .Parallel ( )
438+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
440439
441440 for _ , testdata := range AuthTestData {
442441 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -454,7 +453,7 @@ func TestAuthorizeAuthorizationQuery(t *testing.T) {
454453}
455454
456455func TestAuthorizeAuthorizationQueryNamespaced (t * testing.T ) {
457- t .Parallel ( )
456+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
458457
459458 for _ , testdata := range AuthTestData {
460459 if testdata .validNamespaced != "" {
@@ -474,7 +473,7 @@ func TestAuthorizeAuthorizationQueryNamespaced(t *testing.T) {
474473}
475474
476475func TestAuthorizeAuthorizationQueryRsaWithCert (t * testing.T ) {
477- t .Parallel ( )
476+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
478477
479478 for _ , testdata := range AuthTestData {
480479 if testdata .validForCert != "" {
@@ -494,7 +493,7 @@ func TestAuthorizeAuthorizationQueryRsaWithCert(t *testing.T) {
494493}
495494
496495func TestAuthorizeAuthorizationQueryWrongAlgorithm (t * testing.T ) {
497- t .Parallel ( )
496+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
498497
499498 for idx , testdata := range AuthTestData {
500499 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -513,7 +512,7 @@ func TestAuthorizeAuthorizationQueryWrongAlgorithm(t *testing.T) {
513512}
514513
515514func TestAuthorizeCookieInvalidAlg (t * testing.T ) {
516- t .Parallel ( )
515+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
517516
518517 for _ , testdata := range AuthTestData {
519518 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -528,7 +527,7 @@ func TestAuthorizeCookieInvalidAlg(t *testing.T) {
528527}
529528
530529func TestAuthorizeCookieInvalidKey (t * testing.T ) {
531- t .Parallel ( )
530+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
532531
533532 for _ , testdata := range AuthTestData {
534533 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -544,7 +543,7 @@ func TestAuthorizeCookieInvalidKey(t *testing.T) {
544543}
545544
546545func TestAuthorizeCookieInvalidSignature (t * testing.T ) {
547- t .Parallel ( )
546+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
548547
549548 for _ , testdata := range AuthTestData {
550549 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -560,7 +559,7 @@ func TestAuthorizeCookieInvalidSignature(t *testing.T) {
560559}
561560
562561func TestAuthorizeCookieNoContent (t * testing.T ) {
563- t .Parallel ( )
562+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
564563
565564 for _ , testdata := range AuthTestData {
566565 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -576,7 +575,7 @@ func TestAuthorizeCookieNoContent(t *testing.T) {
576575}
577576
578577func TestAuthorizeCookie (t * testing.T ) {
579- t .Parallel ( )
578+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
580579
581580 for _ , testdata := range AuthTestData {
582581 r , _ := http .NewRequest (http .MethodGet , defaultHubURL , nil )
@@ -592,7 +591,7 @@ func TestAuthorizeCookie(t *testing.T) {
592591}
593592
594593func TestAuthorizeCookieNoOriginNoReferer (t * testing.T ) {
595- t .Parallel ( )
594+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
596595
597596 for _ , testdata := range AuthTestData {
598597 r , _ := http .NewRequest (http .MethodPost , defaultHubURL , nil )
@@ -655,7 +654,7 @@ func TestAuthorizeCookieInvalidReferer(t *testing.T) {
655654}
656655
657656func TestAuthorizeCookieOriginHasPriority (t * testing.T ) {
658- t .Parallel ( )
657+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
659658
660659 for _ , testdata := range AuthTestData {
661660 r , _ := http .NewRequest (http .MethodPost , defaultHubURL , nil )
@@ -673,7 +672,7 @@ func TestAuthorizeCookieOriginHasPriority(t *testing.T) {
673672}
674673
675674func TestAuthorizeAllOriginsAllowed (t * testing.T ) {
676- t .Parallel ( )
675+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
677676
678677 for _ , testdata := range AuthTestData {
679678 r , _ := http .NewRequest (http .MethodPost , defaultHubURL , nil )
@@ -688,7 +687,7 @@ func TestAuthorizeAllOriginsAllowed(t *testing.T) {
688687}
689688
690689func TestAuthorizeCustomCookieName (t * testing.T ) {
691- t .Parallel ( )
690+ t .Setenv ( "GODEBUG" , "rsa1024min=0" )
692691
693692 for _ , testdata := range AuthTestData {
694693 r , _ := http .NewRequest (http .MethodPost , defaultHubURL , nil )
0 commit comments