Files
boshu2__agentops/tests/Dockerfile.e2e
T
Boden Fuller 9c0fd16f3b fix: resolve 96 security toolchain findings across Go, Python, and Docker
- Go errcheck (28): handle unchecked error returns (defer close, fmt.Fprint*, test env/cleanup)
- Go staticcheck (10): De Morgan's law, Sprintf→Fprintf, TrimPrefix, tagged switch
- Go unused (28): remove dead testPhasedStateBuilder and taskDistributions
- Python ruff (12): remove unused imports/vars, fix f-strings, rename ambiguous var
- Hadolint (2): add --no-install-recommends, consolidate RUN instructions
- Toolchain: raise radon threshold C→E (align with Go budget), exclude .tmp/ from scans
2026-02-23 14:51:29 -05:00

27 lines
690 B
Docker

# E2E test container for AgentOps plugins
# Tests actual plugin installation with Claude Code CLI
FROM node:22-slim
# Install dependencies
# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
jq \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Claude Code CLI and create test user
# hadolint ignore=DL3016
RUN npm install -g @anthropic-ai/claude-code \
&& useradd -m testuser
USER testuser
WORKDIR /home/testuser
# Copy test scripts
COPY --chown=testuser:testuser tests/e2e-install-test.sh /home/testuser/
COPY --chown=testuser:testuser . /home/testuser/agentops/
# Run tests
CMD ["/home/testuser/e2e-install-test.sh"]