-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: implement e2e tests Signed-off-by: Philipp Plotnikov <[email protected]> * docs: add information about e2e tests in CONTRIBUTING.md Signed-off-by: Philipp Plotnikov <[email protected]> * refactor: code linting Signed-off-by: Philipp Plotnikov <[email protected]> * refactor: make more stable getMatchHeaderBasedHTTPRouteFetcher; add ability to run specific e2e test; up the timeout constants; set general timeout for process running e2e tests Signed-off-by: Philipp Plotnikov <[email protected]> * refactor: up long period to 10 seconds Signed-off-by: Philipp Plotnikov <[email protected]> * fix: set concrete traefik chart version Signed-off-by: Philipp Plotnikov <[email protected]> * refactor: replace several spaces with tab Signed-off-by: Philipp Plotnikov <[email protected]> * refactor: improve make run-e2e-tests command Signed-off-by: Philipp Plotnikov <[email protected]> --------- Signed-off-by: Philipp Plotnikov <[email protected]>
- Loading branch information
1 parent
80fd3f5
commit 182280f
Showing
24 changed files
with
1,269 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,23 @@ env: | |
GOLANG_VERSION: '1.22' | ||
|
||
jobs: | ||
linting: | ||
name: Go code linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
|
||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
args: --verbose --timeout 6m | ||
|
||
unit-tests: | ||
name: Unit tests running | ||
runs-on: ubuntu-latest | ||
|
@@ -24,26 +41,30 @@ jobs: | |
|
||
- name: Unit tests running | ||
run: | | ||
go test -v ./... | ||
make unit-tests | ||
linting: | ||
name: Go code linting | ||
e2e-tests: | ||
name: E2E tests running | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
|
||
- name: Set up Kind | ||
uses: engineerd/[email protected] | ||
with: | ||
version: "v0.23.0" | ||
skipClusterCreation: true | ||
|
||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
args: --verbose --timeout 6m | ||
|
||
- name: E2E tests running | ||
run: | | ||
make e2e-tests | ||
build: | ||
name: Build creation | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: gateway.networking.k8s.io/v1beta1 | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: GatewayClass | ||
metadata: | ||
name: argo-rollouts-gateway-class | ||
name: traefik | ||
spec: | ||
controllerName: traefik.io/gateway-controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.