@@ -39,18 +39,25 @@ script:
3939 - sed -i "s@SolaceStackRegionNAME@${AWS_DEFAULT_REGION}@g" ci/solace-aws-ha-3az-prod-travistest.json
4040 - aws s3 mb s3://solace-cf-quickstart-travistest || echo "s3 bucket already existed"
4141 - aws s3 sync . s3://solace-cf-quickstart-travistest/solace/eventbroker/latest --acl public-read
42- - export TESTSTACKPREFIX="T $(date +%s)"; export TESTSTACKNAME="$TESTSTACKPREFIX-sol-aws-travistest";
42+ - export TESTSTACKPREFIX=T`echo " $(date +%s)" | rev` ; export TESTSTACKNAME="$TESTSTACKPREFIX-sol-aws-travistest";
4343 - aws cloudformation create-stack --stack-name $TESTSTACKNAME --template-body file://templates/solace-master.template --parameters file://ci/solace-aws-ha-3az-prod-travistest.json --on-failure DO_NOTHING --capabilities CAPABILITY_IAM
4444 - echo "Waiting for stack create complete"
4545 - " travis_wait 30 sleep 1800 &"
4646 - until aws cloudformation describe-stacks --stack-name $TESTSTACKNAME | grep -m 1 -E 'CREATE_COMPLETE|DELETE_IN_PROGRESS'; do sleep 10; done
4747 - aws cloudformation describe-stack-events --stack-name $TESTSTACKNAME
4848 - aws cloudformation describe-stacks --stack-name $TESTSTACKNAME
4949 - echo "Pausing to get the ELB ready"; sleep 10
50- - url="$(aws elb describe-load-balancers | grep DNSName | grep $TESTSTACKPREFIX | awk -F '"' '{print $4}')"; echo $url
50+ - export url="$(aws elbv2 describe-load-balancers | grep DNSName | grep `echo $TESTSTACKPREFIX | head -c4` | awk -F '"' '{print $4}')"; echo $url
51+ - until curl http://$url:8080; do sleep 10; done
5152 - curl -O https://sftp.solace.com/download/SDKPERF_C_LINUX64
5253 - tar -xvf SDKPERF_C_LINUX64
5354 - pubSubTools/sdkperf_c -cip=$url -mn=100000 -mr=0 -ptl=t1 -stl=t1 | grep "Total Messages"
55+ - sleep 30
56+ - curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><redundancy></redundancy></show></rpc>"
57+ - curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><config-sync></config-sync></show></rpc>"
58+ - bash -c 'if [[ -z `curl -sS -u admin:admin http://$url:8080/SEMP -d "<rpc><show><config-sync></config-sync></show></rpc>"
59+ | grep "<oper-status>Up</oper-status>"` ]] ; then echo "config-sync not up!"; exit
60+ 1; fi'
5461
5562after_success :
5663 - echo "Test Success - Branch($TRAVIS_BRANCH) Pull Request($TRAVIS_PULL_REQUEST) Tag($TRAVIS_TAG)"
0 commit comments