Skip to content

Commit 21eb3c5

Browse files
committed
Add e2e tests for large Git repositories
Signed-off-by: Stefan Prodan <[email protected]>
1 parent e1682da commit 21eb3c5

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ jobs:
9797
kubectl -n source-system apply -f ./config/testdata/helmchart-from-bucket/source.yaml
9898
kubectl -n source-system wait bucket/charts --for=condition=ready --timeout=1m
9999
kubectl -n source-system wait helmchart/helmchart-bucket --for=condition=ready --timeout=1m
100+
- name: Run large Git repo tests
101+
run: |
102+
kubectl -n source-system apply -f ./config/testdata/git/large-repo.yaml
103+
kubectl -n source-system wait gitrepository/large-repo-go-git --for=condition=ready --timeout=2m
104+
kubectl -n source-system wait gitrepository/large-repo-libgit2 --for=condition=ready --timeout=2m
100105
- name: Logs
101106
run: |
102107
kubectl -n source-system logs deploy/source-controller

config/testdata/git/large-repo.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: source.toolkit.fluxcd.io/v1beta1
2+
kind: GitRepository
3+
metadata:
4+
name: large-repo-go-git
5+
spec:
6+
gitImplementation: go-git
7+
interval: 10m
8+
url: https://github.com/hashgraph/hedera-mirror-node.git
9+
ref:
10+
branch: master
11+
ignore: |
12+
/*
13+
!/charts
14+
---
15+
apiVersion: source.toolkit.fluxcd.io/v1beta1
16+
kind: GitRepository
17+
metadata:
18+
name: large-repo-libgit2
19+
spec:
20+
gitImplementation: libgit2
21+
interval: 10m
22+
url:https://github.com/hashgraph/hedera-mirror-node.git
23+
ref:
24+
branch: master
25+
ignore: |
26+
/*
27+
!/charts

0 commit comments

Comments
 (0)