@@ -419,6 +419,8 @@ func TestGitSSHAuth(t *testing.T) {
419
419
base64Key := base64 .StdEncoding .EncodeToString ([]byte (testSSHKey ))
420
420
421
421
t .Run ("Base64/Success" , func (t * testing.T ) {
422
+ t .Parallel ()
423
+
422
424
signer , err := gossh .ParsePrivateKey ([]byte (testSSHKey ))
423
425
require .NoError (t , err )
424
426
require .NotNil (t , signer )
@@ -440,6 +442,8 @@ func TestGitSSHAuth(t *testing.T) {
440
442
})
441
443
442
444
t .Run ("Base64/Failure" , func (t * testing.T ) {
445
+ t .Parallel ()
446
+
443
447
_ , randomKey , err := ed25519 .GenerateKey (nil )
444
448
require .NoError (t , err )
445
449
signer , err := gossh .NewSignerFromKey (randomKey )
@@ -591,6 +595,8 @@ func TestBuildFromDockerfile(t *testing.T) {
591
595
}
592
596
593
597
func TestBuildPrintBuildOutput (t * testing.T ) {
598
+ t .Parallel ()
599
+
594
600
// Ensures that a Git repository with a Dockerfile is cloned and built.
595
601
srv := gittest .CreateGitServer (t , gittest.Options {
596
602
Files : map [string ]string {
@@ -619,6 +625,8 @@ func TestBuildPrintBuildOutput(t *testing.T) {
619
625
}
620
626
621
627
func TestBuildIgnoreVarRunSecrets (t * testing.T ) {
628
+ t .Parallel ()
629
+
622
630
// Ensures that a Git repository with a Dockerfile is cloned and built.
623
631
srv := gittest .CreateGitServer (t , gittest.Options {
624
632
Files : map [string ]string {
@@ -631,6 +639,8 @@ func TestBuildIgnoreVarRunSecrets(t *testing.T) {
631
639
require .NoError (t , err )
632
640
633
641
t .Run ("ReadWrite" , func (t * testing.T ) {
642
+ t .Parallel ()
643
+
634
644
ctr , err := runEnvbuilder (t , runOpts {
635
645
env : []string {
636
646
envbuilderEnv ("GIT_URL" , srv .URL ),
@@ -645,6 +655,8 @@ func TestBuildIgnoreVarRunSecrets(t *testing.T) {
645
655
})
646
656
647
657
t .Run ("ReadOnly" , func (t * testing.T ) {
658
+ t .Parallel ()
659
+
648
660
ctr , err := runEnvbuilder (t , runOpts {
649
661
env : []string {
650
662
envbuilderEnv ("GIT_URL" , srv .URL ),
@@ -660,6 +672,8 @@ func TestBuildIgnoreVarRunSecrets(t *testing.T) {
660
672
}
661
673
662
674
func TestBuildWithSetupScript (t * testing.T ) {
675
+ t .Parallel ()
676
+
663
677
// Ensures that a Git repository with a Dockerfile is cloned and built.
664
678
srv := gittest .CreateGitServer (t , gittest.Options {
665
679
Files : map [string ]string {
@@ -751,6 +765,8 @@ func TestBuildFromDevcontainerInRoot(t *testing.T) {
751
765
}
752
766
753
767
func TestBuildCustomCertificates (t * testing.T ) {
768
+ t .Parallel ()
769
+
754
770
srv := gittest .CreateGitServer (t , gittest.Options {
755
771
Files : map [string ]string {
756
772
"Dockerfile" : "FROM " + testImageAlpine ,
@@ -772,6 +788,8 @@ func TestBuildCustomCertificates(t *testing.T) {
772
788
}
773
789
774
790
func TestBuildStopStartCached (t * testing.T ) {
791
+ t .Parallel ()
792
+
775
793
// Ensures that a Git repository with a Dockerfile is cloned and built.
776
794
srv := gittest .CreateGitServer (t , gittest.Options {
777
795
Files : map [string ]string {
@@ -1269,6 +1287,8 @@ func setupPassthroughRegistry(t *testing.T, image string, opts *setupPassthrough
1269
1287
}
1270
1288
1271
1289
func TestNoMethodFails (t * testing.T ) {
1290
+ t .Parallel ()
1291
+
1272
1292
_ , err := runEnvbuilder (t , runOpts {env : []string {}})
1273
1293
require .ErrorContains (t , err , envbuilder .ErrNoFallbackImage .Error ())
1274
1294
}
@@ -1340,6 +1360,8 @@ COPY %s .`, testImageAlpine, inclFile)
1340
1360
tc := tc
1341
1361
1342
1362
t .Run (tc .name , func (t * testing.T ) {
1363
+ t .Parallel ()
1364
+
1343
1365
srv := gittest .CreateGitServer (t , gittest.Options {
1344
1366
Files : tc .files ,
1345
1367
})
0 commit comments