Remove password from test script

This commit is contained in:
Alessio 2023-02-17 13:46:42 -05:00
parent ee4b863d38
commit f988d57e1c
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,8 @@ pipeline:
integration_test:
image: offline-twitter/go
secrets:
- offline_twatter_passwd
commands:
- cd cmd
- ./tests.sh

View File

@ -5,6 +5,9 @@ set -x
PS4='+(${BASH_SOURCE}:${LINENO}): '
env
FAKE_VERSION="1.100.3489"
./compile.sh $FAKE_VERSION
@ -300,8 +303,7 @@ tw unfollow cernovich
test "$(sqlite3 twitter.db "select count(*) from users where is_followed = 1")" = "0"
# Testing login
# TODO authentication: use an environment var for the password
tw login offline_twatter S1pKIW#eRT016iA@OFcK
tw login offline_twatter "$OFFLINE_TWATTER_PASSWD"
test -f Offline_Twatter.session
test "$(jq .UserHandle Offline_Twatter.session)" = "\"Offline_Twatter\""
test "$(jq .IsAuthenticated Offline_Twatter.session)" = "true"