@@ -605,9 +605,10 @@ steps:
605
605
path : /var/run/docker.sock
606
606
607
607
# For better parallelism, we run the E2E tests in a chunked directed acyclic graph
608
- # First we cleanup any VMs that are older than 2h. Then, tests are split into 2 groups:
608
+ # First we cleanup any VMs that are older than 2h. Then, tests are split into 3 groups:
609
609
# - validatecluster and upgradecluster
610
- # - secretsencryption and splitserver
610
+ # - secretsencryption and snapshotrestore
611
+ # - splitserver and token
611
612
612
613
- name : cleanup-vms
613
614
image : test-e2e
@@ -689,16 +690,44 @@ steps:
689
690
go test -v -timeout=30m ./secretsencryption_test.go -ci -local
690
691
cp ./coverage.out /tmp/artifacts/se-coverage.out
691
692
- |
692
- cd ../splitserver
693
+ cd ../snapshotrestore
694
+ vagrant destroy -f
695
+ go test -v -timeout=30m ./snapshotrestore_test.go -ci -local
696
+ cp ./coverage.out /tmp/artifacts/snap-coverage.out
697
+
698
+ volumes :
699
+ - name : libvirt
700
+ path : /var/run/libvirt/
701
+ - name : cache
702
+ path : /tmp/artifacts
703
+
704
+ - name : test-e2e-block3
705
+ image : test-e2e
706
+ depends_on :
707
+ - cleanup-vms
708
+ pull : never
709
+ resources :
710
+ cpu : 6000
711
+ memory : 10Gi
712
+ environment :
713
+ E2E_GOCOVER : ' true'
714
+ commands :
715
+ - mkdir -p dist/artifacts
716
+ - cp /tmp/artifacts/* dist/artifacts/
717
+ - |
718
+ cd tests/e2e/splitserver
693
719
vagrant destroy -f
694
720
go test -v -timeout=30m ./splitserver_test.go -ci -local
695
721
cp ./coverage.out /tmp/artifacts/split-coverage.out
696
-
722
+ - |
723
+ cd ../token
724
+ vagrant destroy -f
725
+ go test -v -timeout=30m ./token_test.go -ci -local
726
+ cp ./coverage.out /tmp/artifacts/token-coverage.out
727
+
697
728
volumes :
698
729
- name : libvirt
699
730
path : /var/run/libvirt/
700
- - name : docker
701
- path : /var/run/docker.sock
702
731
- name : cache
703
732
path : /tmp/artifacts
704
733
@@ -707,14 +736,17 @@ steps:
707
736
depends_on :
708
737
- test-e2e-block1
709
738
- test-e2e-block2
739
+ - test-e2e-block3
710
740
settings :
711
741
token :
712
742
from_secret : codecov_token
713
743
files :
714
744
- /tmp/artifacts/validate-coverage.out
745
+ - /tmp/artifacts/upgrade-coverage.out
715
746
- /tmp/artifacts/se-coverage.out
747
+ - /tmp/artifacts/snap-coverage.out
716
748
- /tmp/artifacts/split-coverage.out
717
- - /tmp/artifacts/upgrade -coverage.out
749
+ - /tmp/artifacts/token -coverage.out
718
750
flags :
719
751
- e2etests
720
752
when :
0 commit comments