Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gitops test to e2e suite #4196

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3846,6 +3846,46 @@ jobs:
kots-dockerhub-password: '${{ secrets.E2E_DOCKERHUB_PASSWORD }}'


validate-gitops:
runs-on: ubuntu-20.04
needs: [ enable-tests, can-run-ci, build-kots, build-kotsadm, build-e2e, build-kurl-proxy, build-migrations, push-minio, push-rqlite ]
strategy:
fail-fast: false
matrix:
cluster: [
{distribution: kind, version: v1.28.0}
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: download e2e deps
uses: actions/download-artifact@v3
with:
name: e2e
path: e2e/bin/
- run: docker load -i e2e/bin/e2e-deps.tar
- run: chmod +x e2e/bin/*
- name: download kots binary
uses: actions/download-artifact@v3
with:
name: kots
path: bin/
- run: chmod +x bin/*
- uses: ./.github/actions/kots-e2e
with:
test-focus: 'GitOps'
kots-namespace: 'gitops'
k8s-distribution: ${{ matrix.cluster.distribution }}
k8s-version: ${{ matrix.cluster.version }}
testim-access-token: '${{ secrets.TESTIM_ACCESS_TOKEN }}'
testim-branch: ${{ github.head_ref == 'main' && 'master' || github.head_ref }}
aws-access-key-id: '${{ secrets.E2E_SUPPORT_BUNDLE_AWS_ACCESS_KEY_ID }}'
aws-secret-access-key: '${{ secrets.E2E_SUPPORT_BUNDLE_AWS_SECRET_ACCESS_KEY }}'
replicated-api-token: '${{ secrets.C11Y_MATRIX_TOKEN }}'
kots-dockerhub-username: '${{ secrets.E2E_DOCKERHUB_USERNAME }}'
kots-dockerhub-password: '${{ secrets.E2E_DOCKERHUB_PASSWORD }}'


validate-pr-tests:
runs-on: ubuntu-20.04
needs:
Expand All @@ -3869,6 +3909,7 @@ jobs:
- validate-airgap-smoke-test
- validate-config
- validate-support-bundle
- validate-gitops
# non-testim tests
- validate-minimal-rbac
- validate-minimal-rbac-override
Expand Down
1 change: 1 addition & 0 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ var _ = Describe("E2E", func() {
Entry(nil, inventory.NewMultiAppBackupAndRestoreTest()),
Entry(nil, inventory.MultiAppTest()),
Entry(nil, inventory.NewSupportBundle()),
Entry(nil, inventory.NewGitOps()),
)

})
Expand Down
9 changes: 9 additions & 0 deletions e2e/testim/inventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,15 @@ func NewSupportBundle() Test {
}
}

func NewGitOps() Test {
return Test{
Name: "GitOps",
Suite: "gitops",
Namespace: "gitops",
UpstreamURI: "gitops-bobcat/automated",
}
}

func SetupRegressionTest(kubectlCLI *kubectl.CLI) TestimParams {
cmd := kubectlCLI.Command(
context.Background(),
Expand Down
Loading