Skip to content

Commit

Permalink
Add e2e tests for large Git repositories
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Jun 2, 2021
1 parent e1682da commit 2819924
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ jobs:
kubectl -n source-system apply -f ./config/testdata/helmchart-from-bucket/source.yaml
kubectl -n source-system wait bucket/charts --for=condition=ready --timeout=1m
kubectl -n source-system wait helmchart/helmchart-bucket --for=condition=ready --timeout=1m
- name: Run large Git repo tests
run: |
kubectl -n source-system apply -f ./config/testdata/git/large-repo.yaml
kubectl -n source-system wait gitrepository/large-repo-go-git --for=condition=ready --timeout=2m
kubectl -n source-system wait gitrepository/large-repo-libgit2 --for=condition=ready --timeout=2m
- name: Logs
run: |
kubectl -n source-system logs deploy/source-controller
Expand Down
27 changes: 27 additions & 0 deletions config/testdata/git/large-repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: large-repo-go-git
spec:
gitImplementation: go-git
interval: 10m
url: https://github.com/hashgraph/hedera-mirror-node.git
ref:
branch: master
ignore: |
/*
!/charts
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: large-repo-libgit2
spec:
gitImplementation: libgit2
interval: 10m
url: https://github.com/hashgraph/hedera-mirror-node.git
ref:
branch: master
ignore: |
/*
!/charts

0 comments on commit 2819924

Please sign in to comment.