Skip to content

Commit

Permalink
add aem and selenium hub checks
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Nov 4, 2019
1 parent 838add2 commit c79b424
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions automation-testing
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

PARENT_PROJECT_PATH="$(pwd)"
SCRIPT_PARAMS="$@"
SKIP_PRINT_CONFIG=true

source "../scripts/functions.sh"

if [[ $(which ansible-galaxy) == "" || $(which ansible-playbook) == "" ]]; then
echo PLEASE INSTALL ANSIBLE
exit 1
Expand Down Expand Up @@ -35,6 +41,14 @@ echo RUN TESTS
echo CURRENT DIR: $(pwd)
echo ls -l

AEM_AVAILABLE=$(testServer http://${LOCAL_IP}:${AEM_PORT})
HUB_AVAILABLE=$(testServer http://${LOCAL_IP}:${SELENIUMHUB_PORT})

if [[ "${AEM_AVAILABLE}" == "false" || "${HUB_AVAILABLE}" == "false" ]]; then
echo PLEASE ENSURE AEM AND SELENIIUM HUB IS AVAILABLE
exit 1
fi

cd aemdesign-testing
./test-spec --login --host $LOCAL_IP --port ${AEM_PORT} --url http://$LOCAL_IP:${SELENIUMHUB_PORT}/wd/hub GenericDetailsA*

Expand Down

0 comments on commit c79b424

Please sign in to comment.