Code Review
/
dmaap
/
buscontroller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Silent post to get respnse code
[dmaap/buscontroller.git]
/
dbc-client
/
misc
/
dbc-client
diff --git
a/dbc-client/misc/dbc-client
b/dbc-client/misc/dbc-client
index
cf6c230
..
8df970c
100644
(file)
--- a/
dbc-client/misc/dbc-client
+++ b/
dbc-client/misc/dbc-client
@@
-33,8
+33,8
@@
CONFIGMAP_ROOT=${CONFIGMAP_ROOT:-/opt/app/config}
CONTAINER_CONFIG=$CONFIGMAP_ROOT/conf/dbc-client.env
REQUESTID=${REQUESTID:-dbc-client}
DBC=${DBC:-dmaap-bc}
CONTAINER_CONFIG=$CONFIGMAP_ROOT/conf/dbc-client.env
REQUESTID=${REQUESTID:-dbc-client}
DBC=${DBC:-dmaap-bc}
-PROTO=${PROTO:-http}
-PORT=${PORT:-8
080
}
+PROTO=${PROTO:-http
s
}
+PORT=${PORT:-8
443
}
@@
-65,13
+65,6
@@
config() {
echo "Not creating $APP_ROOT/ok_to_exit"
fi
echo "Not creating $APP_ROOT/ok_to_exit"
fi
- if [ ! -f $APP_ROOT/misc/cert-client-init.sh ]
- then
- echo "Did not find $APP_ROOT/misc/cert-client-init.sh to append to truststore"
- exit 1
- fi
- $APP_ROOT/misc/cert-client-init.sh
-
set +x
}
set +x
}
@@
-98,9
+91,9
@@
dopost() {
loop=true
loop=true
- while [ $loop ]
+ while [ $loop
= true
]
do
do
- rc=`curl -
v -X POST -w "%{http_code}" -H "X-ECOMP-RequestID: $REQUESTID" -H "Content-Type: application/json" -d @${1} ${PROTO}://${DBC}:${PORT}/webapi/${2}
`
+ rc=`curl -
s -X POST -w "%{http_code}" -H "X-ECOMP-RequestID: $REQUESTID" -H "Content-Type: application/json" -d @${1} ${PROTO}://${DBC}:${PORT}/webapi/${2} -o /dev/null
`
case $rc in
200 | 201 | 409 )
echo "response=$rc"
case $rc in
200 | 201 | 409 )
echo "response=$rc"