Skip to content
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
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@ jobs:
with:
target: //test/integration/extension/storage/...

# ---------------------------------------------------------------------------
# CORE TESTS
# ---------------------------------------------------------------------------
consumer-integration-test:
name: Consumer Integration Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- uses: ./.github/actions/run-bazel-test
with:
target: //test/integration/core/consumer/...

# ---------------------------------------------------------------------------
# REQUIRED CHECKS GATE
# ---------------------------------------------------------------------------
Expand All @@ -127,6 +140,7 @@ jobs:
- counter-integration-test
- queue-integration-test
- storage-integration-test
- consumer-integration-test
steps:
- name: All required checks passed
run: |
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LOCAL_PROJECT = submitqueue
# Set REPO_ROOT for docker-compose
export REPO_ROOT := $(shell pwd)

.PHONY: build build-all-linux build-gateway-linux build-orchestrator-linux clean clean-proto deps e2e-test gazelle integration-test integration-test-extensions integration-test-gateway integration-test-orchestrator license-fix lint lint-license local-clean local-gateway-start local-gateway-stop local-init-schemas local-logs local-orchestrator-start local-orchestrator-stop local-ps local-restart local-start local-stop proto query-deps query-targets run-client-gateway run-client-orchestrator run-queue-admin test test-no-cache help
.PHONY: build build-all-linux build-gateway-linux build-orchestrator-linux clean clean-proto deps e2e-test gazelle integration-test integration-test-consumer integration-test-extensions integration-test-gateway integration-test-orchestrator license-fix lint lint-license local-clean local-gateway-start local-gateway-stop local-init-schemas local-logs local-orchestrator-start local-orchestrator-stop local-ps local-restart local-start local-stop proto query-deps query-targets run-client-gateway run-client-orchestrator run-queue-admin test test-no-cache help


build: ## Build all services and examples
Expand Down Expand Up @@ -71,6 +71,10 @@ integration-test: build-all-linux ## Run all integration tests (auto-builds bina
@echo "Running all integration tests..."
@$(BAZEL) test //test/integration/... --test_output=streamed

integration-test-consumer: ## Run Consumer integration tests
@echo "Running Consumer integration tests..."
@$(BAZEL) test //test/integration/core/consumer:consumer_test --test_output=streamed

integration-test-extensions: ## Run extension integration tests
@echo "Running extension integration tests..."
@$(BAZEL) test //test/integration/extension/... --test_output=streamed
Expand Down
23 changes: 23 additions & 0 deletions test/integration/core/consumer/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
load("@rules_go//go:def.bzl", "go_test")

go_test(
name = "consumer_test",
srcs = ["consumer_test.go"],
data = [
"docker-compose.yml",
"//extension/queue/mysql/schema",
],
tags = ["integration"],
deps = [
"//core/consumer",
"//entity/queue",
"//extension/queue",
"//extension/queue/mysql",
"//test/testutil",
"@com_github_go_sql_driver_mysql//:mysql",
"@com_github_stretchr_testify//require",
"@com_github_stretchr_testify//suite",
"@com_github_uber_go_tally_v4//:tally",
"@org_uber_go_zap//zaptest",
],
)
Loading