From 564765862b6e0766c3e95399c6b55268ad778aff Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Fri, 15 Sep 2023 08:37:41 +0100 Subject: [PATCH] Add hidden file check to integration tests --- test/integration/docker/deployer/app/Dockerfile | 1 + test/integration/main_test.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/integration/docker/deployer/app/Dockerfile b/test/integration/docker/deployer/app/Dockerfile index 2310ee96..dc270aa9 100644 --- a/test/integration/docker/deployer/app/Dockerfile +++ b/test/integration/docker/deployer/app/Dockerfile @@ -5,4 +5,5 @@ COPY default.conf /etc/nginx/conf.d/default.conf ARG COMMIT_SHA RUN echo $COMMIT_SHA > /usr/share/nginx/html/version RUN mkdir -p /usr/share/nginx/html/versions && echo "version" > /usr/share/nginx/html/versions/$COMMIT_SHA +RUN mkdir -p /usr/share/nginx/html/versions && echo "hidden" > /usr/share/nginx/html/versions/.hidden diff --git a/test/integration/main_test.rb b/test/integration/main_test.rb index 08376f69..df595a0a 100644 --- a/test/integration/main_test.rb +++ b/test/integration/main_test.rb @@ -76,5 +76,7 @@ class MainTest < IntegrationTest versions.each do |version| assert_equal "200", Net::HTTP.get_response(URI.parse("http://localhost:12345/versions/#{version}")).code end + + assert_equal "200", Net::HTTP.get_response(URI.parse("http://localhost:12345/versions/.hidden")).code end end