Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration tests from Issues #1054

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
2 changes: 1 addition & 1 deletion integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ fi
echo "Running integration tests..."
make out/executor
make out/warmer
go test ./integration/... -v --bucket "${GCS_BUCKET}" --repo "${IMAGE_REPO}" --timeout 30m "$@"
go test ./integration/... -v --bucket "${GCS_BUCKET}" --repo "${IMAGE_REPO}" --timeout 50m "$@"
12 changes: 12 additions & 0 deletions integration/dockerfiles/Dockerfile_test_issue_519
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine as base_stage
RUN echo base_stage
RUN touch meow.txt

FROM base_stage as BUG_stage
RUN echo BUG_stage
RUN touch purr.txt


FROM BUG_stage as final_stage
RUN echo final_stage
RUN touch mew.txt
12 changes: 12 additions & 0 deletions integration/dockerfiles/Dockerfile_test_issue_647
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine:3.8 AS foo
RUN mkdir /foo
WORKDIR /foo
RUN mkdir some_dir
RUN touch some_file
RUN chmod 777 some_dir
RUN chmod 666 some_file
RUN ls -l

FROM alpine:3.8
COPY --from=foo /foo /bar
RUN ls -l /bar
3 changes: 3 additions & 0 deletions integration/dockerfiles/Dockerfile_test_issue_684
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ubuntu:rolling as builder

RUN apt-get update && apt-get -y upgrade && apt-get -y install lib32stdc++6 wget
5 changes: 5 additions & 0 deletions integration/dockerfiles/Dockerfile_test_issue_704
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine

RUN mkdir -p /some/dir/ && echo 'first' > /some/dir/first.txt

RUN rm /some/dir/first.txt