Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Nov 29, 2024
1 parent 90df372 commit 94c53e3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ARG TARGETARCH
USER root
RUN microdnf install -y tar gzip make which gcc gcc-c++ cyrus-sasl-lib findutils git

# install platform specific go version
RUN curl -O -J https://dl.google.com/go/go1.22.5.linux-${TARGETARCH}.tar.gz
RUN tar -C /usr/local -xzf go1.22.5.linux-${TARGETARCH}.tar.gz
RUN ln -s /usr/local/go/bin/go /usr/local/bin/go
Expand All @@ -20,13 +19,10 @@ COPY api ./api
COPY test/e2e .

RUN go mod tidy
RUN go test -c -o e2e-inventory-tests
RUN go test ./test/e2e -v -coverprofile=coverage.out

FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10-1130

COPY --from=builder /workspace/e2e-inventory-tests /usr/local/bin/
COPY --from=builder /workspace/coverage.out /workspace/

USER 1001
ENV PATH="$PATH:/usr/local/bin"
# Run the e2e tests
CMD ["./usr/local/bin/e2e-inventory-tests", "-test.v"]
CMD ["sh", "-c", "echo 'Test Coverage Summary:' && go tool cover -func=/workspace/coverage.out"]

0 comments on commit 94c53e3

Please sign in to comment.