Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e2a6c5e

Browse files
committedDec 10, 2024··
Add snapshotrestore and token e2e to drone
Signed-off-by: Derek Nola <derek.nola@suse.com>
1 parent 90990dc commit e2a6c5e

File tree

1 file changed

+39
-7
lines changed

1 file changed

+39
-7
lines changed
 

‎.drone.yml

+39-7
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,10 @@ steps:
605605
path: /var/run/docker.sock
606606

607607
# 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:
609609
# - validatecluster and upgradecluster
610-
# - secretsencryption and splitserver
610+
# - secretsencryption and snapshotrestore
611+
# - splitserver and token
611612

612613
- name: cleanup-vms
613614
image: test-e2e
@@ -689,16 +690,44 @@ steps:
689690
go test -v -timeout=30m ./secretsencryption_test.go -ci -local
690691
cp ./coverage.out /tmp/artifacts/se-coverage.out
691692
- |
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
693719
vagrant destroy -f
694720
go test -v -timeout=30m ./splitserver_test.go -ci -local
695721
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+
697728
volumes:
698729
- name: libvirt
699730
path: /var/run/libvirt/
700-
- name: docker
701-
path: /var/run/docker.sock
702731
- name: cache
703732
path: /tmp/artifacts
704733

@@ -707,14 +736,17 @@ steps:
707736
depends_on:
708737
- test-e2e-block1
709738
- test-e2e-block2
739+
- test-e2e-block3
710740
settings:
711741
token:
712742
from_secret: codecov_token
713743
files:
714744
- /tmp/artifacts/validate-coverage.out
745+
- /tmp/artifacts/upgrade-coverage.out
715746
- /tmp/artifacts/se-coverage.out
747+
- /tmp/artifacts/snap-coverage.out
716748
- /tmp/artifacts/split-coverage.out
717-
- /tmp/artifacts/upgrade-coverage.out
749+
- /tmp/artifacts/token-coverage.out
718750
flags:
719751
- e2etests
720752
when:

0 commit comments

Comments
 (0)
Please sign in to comment.