Skip to content

Commit

Permalink
fix example tests workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Dec 9, 2024
1 parent 20376b3 commit 86f7103
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
56 changes: 56 additions & 0 deletions e2e/basic/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
services:
envoy:
image: envoyproxy/envoy:v1.31-latest
depends_on:
- limitador
- upstream
command:
- /usr/local/bin/envoy
- --config-path
- /etc/envoy.yaml
- --log-level
- info
- --component-log-level
- wasm:debug,http:debug,router:debug
- --service-cluster
- proxy
expose:
- "80"
- "8001"
ports:
- "18000:80"
- "18001:8001"
volumes:
- ./envoy.yaml:/etc/envoy.yaml
- ../../target/wasm32-unknown-unknown/debug/wasm_shim.wasm:/opt/kuadrant/wasm/wasm_shim.wasm
limitador:
image: quay.io/kuadrant/limitador:latest
command: ["limitador-server", "-vvv", "/opt/kuadrant/limits/limits.yaml"]
ports:
- "18080:8080"
- "18081:8081"
expose:
- "8080"
- "8081"
volumes:
- ./limits.yaml:/opt/kuadrant/limits/limits.yaml
upstream:
image: quay.io/kuadrant/authorino-examples:talker-api
environment:
PORT: 3000
expose:
- "3000"
start_services:
image: alpine
depends_on:
- envoy
command: >
/bin/sh -c "
while ! nc -z envoy 80;
do
echo sleeping;
sleep 1;
done;
echo Connected!
"
4 changes: 2 additions & 2 deletions tests/failures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ fn it_fails_on_first_action_grpc_response() {
Some("#2 on_grpc_call_response: received gRPC call response: token: 42, status: 14"),
)
.expect_get_buffer_bytes(Some(BufferType::GrpcReceiveBuffer))
.returning(Some(&vec![]))
.returning(Some(&[]))
.expect_send_local_response(
Some(500),
Some("Internal Server Error.\n"),
Expand Down Expand Up @@ -565,7 +565,7 @@ fn it_fails_on_second_action_grpc_response() {
).as_str()),
)
.expect_get_buffer_bytes(Some(BufferType::GrpcReceiveBuffer))
.returning(Some(&vec![]))
.returning(Some(&[]))
.expect_send_local_response(
Some(500),
Some("Internal Server Error.\n"),
Expand Down

0 comments on commit 86f7103

Please sign in to comment.