Skip to content

add consist hash lb e2e test to workflow #252

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

Merged
merged 3 commits into from
Jun 9, 2022
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
2 changes: 1 addition & 1 deletion .code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
---
source:
test_source:
filepath_regex:
filepath_regex:
auto_generate_source:
filepath_regex: [".*/*.pb.go", ".*/*.gen.go"]
third_party_source:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/e2e-metaprotocol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,32 @@ jobs:
run: bash ${SCRIPTS_DIR}/aeraki.sh
- name: test
run: go test -v github.com/aeraki-mesh/aeraki/test/e2e/metaprotocol/ -run TestGlobalRateLimit
TestConsistentHashLb:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: true
name: TestConsistentHashLb
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Install dependencies
run: |
go version
go get golang.org/x/tools/cmd/goimports
- name: build docker
run: make docker-build-e2e
- name: Prepare envrionment
run: bash ${SCRIPTS_DIR}/pre.sh
- name: Install Minikube
run: bash ${SCRIPTS_DIR}/minikube.sh start
- name: Install Istio
run: bash ${SCRIPTS_DIR}/istio.sh -y -f ${COMMON_DIR}/istio-config.yaml
- name: Install aeraki
run: bash ${SCRIPTS_DIR}/aeraki.sh
- name: test
run: go test -v github.com/aeraki-mesh/aeraki/test/e2e/metaprotocol/ -run TestConsistentHashLb
2 changes: 1 addition & 1 deletion demo/metaprotocol-brpc/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ BASEDIR=$(dirname "$0")
kubectl delete -f $BASEDIR/brpc-protocol.yaml -n meta-brpc
kubectl delete -f $BASEDIR/brpc-sample.yaml -n meta-brpc
kubectl delete -f $BASEDIR/service.yaml -n meta-brpc
kubectl delete ns meta-brpc
kubectl delete ns meta-brpc
2 changes: 1 addition & 1 deletion test/e2e/metaprotocol/metaprotocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func TestConsistentHashLb(t *testing.T) {
}
if !(v1 == 10 || v2 == 10) {
t.Errorf("consistent hash lb failed, v1:v2 want: 0:10 or 10:0, got %d:%d", v1, v2)
}
}
}

func TestLocalRateLimit(t *testing.T) {
Expand Down