-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support mtls Signed-off-by: Ling Samuel (WSL) <[email protected]> * fix conf Signed-off-by: Ling Samuel (WSL) <[email protected]> * fix linter Signed-off-by: Ling Samuel (WSL) <[email protected]> * sleep more time to destroy apisix Signed-off-by: Ling Samuel (WSL) <[email protected]> * fix destroy apisix Signed-off-by: Ling Samuel (WSL) <[email protected]> * split to 2 test is faster than 1 Signed-off-by: Ling Samuel (WSL) <[email protected]> --------- Signed-off-by: Ling Samuel (WSL) <[email protected]>
- Loading branch information
1 parent
198d901
commit 40130e1
Showing
70 changed files
with
1,337 additions
and
91 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
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Run CLI mTLS E2E Test Suites | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
pull_request: | ||
branches: | ||
- main | ||
- release/** | ||
permissions: read-all | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
outputs: | ||
src: ${{ steps.filter.outputs.src }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
filters: | | ||
src: | ||
- '*.go' | ||
- '**/*.go' | ||
- 'go.mod' | ||
- 'go.sum' | ||
- 'Makefile' | ||
- '.github/**' | ||
- 'internal/**' | ||
run-test: | ||
needs: changes | ||
if: | | ||
(needs.changes.outputs.src == 'true') | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Setup Go Environment | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20.3' | ||
|
||
- name: Install ginkgo | ||
run: | | ||
go install github.com/onsi/ginkgo/v2/ginkgo | ||
sudo cp ~/go/bin/ginkgo /usr/local/bin | ||
- name: Build ADC | ||
working-directory: ./ | ||
run: | | ||
make build | ||
- name: Deploy Apache APISIX (mTLS) | ||
run: | | ||
sh utils/quickstart-mtls.sh | ||
docker run --name httpbin --network apisix-quickstart-net --hostname httpbin -d kennethreitz/httpbin | ||
- name: Run E2E mTLS Test Suites | ||
working-directory: ./ | ||
run: | | ||
export PATH=$PWD/bin:$PATH | ||
make test-mtls |
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
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.