Skip to content

Commit

Permalink
(#781) Fix intermittent musl integration test case "tls".
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcheli committed Feb 11, 2022
1 parent 82ef875 commit eb56998
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions test/integration/musl/scope-test
Original file line number Diff line number Diff line change
Expand Up @@ -128,38 +128,39 @@ fi
endtest


##
## tls
##
## This was written to ensure that #761 stays fixed though it wasn't
## reliable as written #781 will restore this test
#starttest tls
#
# tls
## tcpserver receives over a tls session
#cd /usr/local/scope
#./tcpserver -t 9109 > $EVT_FILE &
#
## run ldscope with a ton of env vars to send over tls session
# SCOPE_EVENT_DEST=tcp://127.0.0.1:9109 \
# SCOPE_EVENT_TLS_ENABLE=true \
# SCOPE_EVENT_TLS_VALIDATE_SERVER=false \
# SCOPE_EVENT_TLS_CA_CERT_PATH=/usr/local/scope/cert.pm \
# ldscope ps -ef
#retval=$?
#
#evaltest
#
## Verify that ps -ef is successful
#if [ $retval -ne 0 ]; then
# ERR+=1
#fi
#
## Verify that data made it through
#if ( ! grep '"sourcetype":"console"' $EVT_FILE ); then
# ERR+=1
#fi
#
#endtest
#
# This was written to ensure that #761 stays fixed
starttest tls

# tcpserver receives over a tls session
cd /usr/local/scope
./tcpserver -t 9109 > $EVT_FILE &

# run ldscope with a ton of env vars to send over tls session
SCOPE_EVENT_DEST=tcp://127.0.0.1:9109 \
SCOPE_EVENT_TLS_ENABLE=true \
SCOPE_EVENT_TLS_VALIDATE_SERVER=false \
SCOPE_EVENT_TLS_CA_CERT_PATH=/usr/local/scope/cert.pm \
ldscope ps -ef
retval=$?

evaltest

# Verify that ps -ef is successful
if [ $retval -ne 0 ]; then
ERR+=1
fi

# Verify that data made it through
if ( ! grep '"sourcetype":"console"' $EVT_FILE ); then
ERR+=1
fi

endtest



if (( $FAILED_TEST_COUNT == 0 )); then
Expand Down

0 comments on commit eb56998

Please sign in to comment.