Add e2e tests for large Git repositories

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2021-06-02 12:44:50 +03:00
parent e1682da795
commit 2819924c78
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
2 changed files with 32 additions and 0 deletions

View File

@ -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

27
config/testdata/git/large-repo.yaml vendored Normal file
View File

@ -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