From 4313a3d6b976aa76da0ebc64279943071f78acd5 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Sat, 2 Mar 2019 17:16:06 +0100 Subject: [PATCH] Remove useless integration tests script. --- scripts/integration-tests.sh | 57 ------------------------------------ 1 file changed, 57 deletions(-) delete mode 100755 scripts/integration-tests.sh diff --git a/scripts/integration-tests.sh b/scripts/integration-tests.sh deleted file mode 100755 index f84f969d..00000000 --- a/scripts/integration-tests.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -DC_SCRIPT=./scripts/example-commit/dc-example.sh -EXPECTED_SERVICES_COUNT=8 - -build_services() { - $DC_SCRIPT build authelia -} - -expect_services_count() { - EXPECTED_COUNT=$1 - service_count=`docker ps -a | grep "Up " | wc -l` - - if [ "${service_count}" -eq "$EXPECTED_COUNT" ] - then - echo "Services are up and running." - else - echo "Some services exited..." - docker ps -a - exit 1 - fi -} - -run_integration_tests() { - ./node_modules/.bin/grunt test-int -} - -run_other_tests() { - echo "Test dev environment deployment (commands in README)" - ./scripts/example-commit/deploy-example.sh - expect_services_count $EXPECTED_SERVICES_COUNT - ./scripts/example-commit/undeploy-example.sh -} - -run_other_tests_docker() { - echo "Test dev docker deployment (commands in README)" - ./scripts/example-dockerhub/deploy-example.sh - expect_services_count $EXPECTED_SERVICES_COUNT - ./scripts/example-dockerhub/undeploy-example.sh -} - -set -e - -# Build the container -build_services - -# Pull all images -$DC_SCRIPT pull - -# Prepare & test example from end user perspective -run_integration_tests - -# Other tests like executing the deployment script -run_other_tests - -# Test example with precompiled container -run_other_tests_docker