From ce9f102ef57672ab062ff763ebe3ff24c5fcab21 Mon Sep 17 00:00:00 2001 From: Hentry Martin Date: Mon, 13 Jan 2025 22:42:47 +0100 Subject: [PATCH] fix: removed automated smoke test and removed the option from circle ci --- .circleci/config.yml | 48 ++++++++++++++++----------------- automated-smoke-test/Dockerfile | 35 ------------------------ 2 files changed, 24 insertions(+), 59 deletions(-) delete mode 100644 automated-smoke-test/Dockerfile diff --git a/.circleci/config.yml b/.circleci/config.yml index 6383e3c7c..578f08462 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -260,30 +260,30 @@ jobs: # path: ./automated-smoke-test/test-results # Automated Smoke Testing against Production - Smoke-Testing-On-Production: - <<: *defaults - steps: - # Initialization. - - checkout - - setup_remote_docker - - run: *install_dependency - - run: *install_deploysuite - # Restoration of node_modules from cache. - - restore_cache: *restore_cache_settings_for_build - - run: - name: "configuring environment" - command: | - ./awsconfiguration.sh PROD - ./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar - - run: - name: "Run automation" - no_output_timeout: 20m - command: | - source awsenvconf - source buildenvvar - ./automated-smoke-test/smoketest.sh automation-config-prod.json prod - - store_artifacts: - path: ./automated-smoke-test/test-results + # Smoke-Testing-On-Production: + # <<: *defaults + # steps: + # # Initialization. + # - checkout + # - setup_remote_docker + # - run: *install_dependency + # - run: *install_deploysuite + # # Restoration of node_modules from cache. + # - restore_cache: *restore_cache_settings_for_build + # - run: + # name: "configuring environment" + # command: | + # ./awsconfiguration.sh PROD + # ./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar + # - run: + # name: "Run automation" + # no_output_timeout: 20m + # command: | + # source awsenvconf + # source buildenvvar + # ./automated-smoke-test/smoketest.sh automation-config-prod.json prod + # - store_artifacts: + # path: ./automated-smoke-test/test-results # Test job for the cases when we do not need deployment. It just rapidly # installs (updates) app dependencies, and runs tests (ESLint, Stylelint, diff --git a/automated-smoke-test/Dockerfile b/automated-smoke-test/Dockerfile deleted file mode 100644 index a5ad40ec6..000000000 --- a/automated-smoke-test/Dockerfile +++ /dev/null @@ -1,35 +0,0 @@ -FROM node:10.17.0-stretch -RUN useradd -m -s /bin/bash appuser -RUN apt update -RUN apt install sudo -RUN sudo apt-get update; sudo apt-get install -y openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk openjdk-8-jdk-headless; -RUN curl --silent --show-error --location --fail --retry 3 --output /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ - && (sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb || sudo apt-get -fy install) \ - && rm -rf /tmp/google-chrome-stable_current_amd64.deb \ - && sudo sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' \ - "/opt/google/chrome/google-chrome" \ - && google-chrome --version -RUN export CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE) \ - && curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \ - && cd /tmp \ - && unzip chromedriver_linux64.zip \ - && rm -rf chromedriver_linux64.zip \ - && sudo mv chromedriver /usr/local/bin/chromedriver \ - && sudo chmod +x /usr/local/bin/chromedriver \ - && chromedriver --version -RUN sudo apt-get install -y libgconf-2-4 -RUN sudo apt-get install -y xvfb -RUN sudo apt-get install -y jq -ENV DISPLAY :99 -RUN printf '#!/bin/sh\nXvfb :99 -screen 0 1280x1024x24 &\nexec "$@"\n' > /tmp/entrypoint \ - && chmod +x /tmp/entrypoint \ - && sudo mv /tmp/entrypoint /docker-entrypoint.sh - -COPY . /automated-smoke-test -WORKDIR /automated-smoke-test -RUN chown -R appuser:appuser /automated-smoke-test -USER appuser -RUN npm install -RUN ./node_modules/.bin/webdriver-manager update --versions.chrome=="$(google-chrome -version)" -ENTRYPOINT ["/docker-entrypoint.sh"] -CMD ["/bin/sh"] \ No newline at end of file