summaryrefslogtreecommitdiffstats
path: root/test-apis-ci/sdc-api-tests/startup.sh
diff options
context:
space:
mode:
authorJulienBe <julien.bertozzi@intl.att.com>2020-09-03 17:09:46 +0200
committerXue Gao <xg353y@intl.att.com>2020-09-07 12:18:23 +0000
commit61663b92910868a4de51c6fe9a7cef7da96da7e9 (patch)
tree86085699100a83f9de49375b635596601b55502d /test-apis-ci/sdc-api-tests/startup.sh
parentbcee4648917b2442f51a75639708bad4cd0fe4ad (diff)
Optimize Build
Optimize the log output Issue-ID: SDC-3232 Signed-off-by: JulienBe <julien.bertozzi@intl.att.com> Change-Id: I50cfb7119b1e9087d3e2db56a81fe47df4ad6254
Diffstat (limited to 'test-apis-ci/sdc-api-tests/startup.sh')
-rw-r--r--test-apis-ci/sdc-api-tests/startup.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/test-apis-ci/sdc-api-tests/startup.sh b/test-apis-ci/sdc-api-tests/startup.sh
deleted file mode 100644
index 7b102cadfd..0000000000
--- a/test-apis-ci/sdc-api-tests/startup.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-
-# prepare env for HTTPS if used
-
-is_https=$(cat /root/chef-solo/environments/${ENVNAME}.json | \
- jq -cr '.default_attributes.disableHttp' | \
- tr '[:upper:]' '[:lower:]')
-
-if [ "$is_https" = true ] ; then
- # setup /etc/hosts
- SDC_FE_IP=$(cat /root/chef-solo/environments/${ENVNAME}.json | \
- jq -cr '.default_attributes.Nodes.FE')
- SDC_FE_HOSTNAME=$(cat /root/chef-solo/environments/${ENVNAME}.json | \
- jq -cr '.override_attributes.FE.domain_name')
- if ! grep -q "^[[:space:]]*${SDC_FE_IP}[[:space:]]" ; then
- echo "${SDC_FE_IP}" "${SDC_FE_HOSTNAME}" >> /etc/hosts
- fi
-fi
-
-# run tests
-
-cd /root/chef-solo
-chef-solo -c solo.rb -E ${ENVNAME}
-
-rc=$?
-
-if [[ $rc != 0 ]]; then
- echo "Startup failed !!!"
- exit $rc
-else
-# Note that the output below is monitored in CSIT by
-# sdc/sdc-os-chef/scripts/docker_run.sh
-# If this text is changed, docker_run.sh check for sdc-api-tests docker
-# startup must be adjusted accordingly!
- echo "Startup completed successfully"
-fi