mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
Introduces a comprehensive integration testing setup and local development environment. Changes include: - Add `docker-compose.yml` for local stack orchestration. - Add `docker-compose.integration.yml` for the integration test environment. - Create `mock-upstream` service to simulate external LLM provider responses. - Implement Go-based end-to-end tests verifying control plane configuration and data plane routing. - Add `integration_test.sh` for quick connectivity verification.
14 lines
257 B
Docker
14 lines
257 B
Docker
FROM golang:1.24-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY main.go .
|
|
|
|
RUN go mod init mockupstream && go mod tidy && go build -o mock-upstream main.go
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /app
|
|
COPY --from=builder /app/mock-upstream .
|
|
EXPOSE 8082
|
|
CMD ["./mock-upstream"]
|