Remove password from test script
This commit is contained in:
parent
ee4b863d38
commit
f988d57e1c
@ -16,6 +16,8 @@ pipeline:
|
|||||||
|
|
||||||
integration_test:
|
integration_test:
|
||||||
image: offline-twitter/go
|
image: offline-twitter/go
|
||||||
|
secrets:
|
||||||
|
- offline_twatter_passwd
|
||||||
commands:
|
commands:
|
||||||
- cd cmd
|
- cd cmd
|
||||||
- ./tests.sh
|
- ./tests.sh
|
||||||
|
@ -5,6 +5,9 @@ set -x
|
|||||||
|
|
||||||
PS4='+(${BASH_SOURCE}:${LINENO}): '
|
PS4='+(${BASH_SOURCE}:${LINENO}): '
|
||||||
|
|
||||||
|
env
|
||||||
|
|
||||||
|
|
||||||
FAKE_VERSION="1.100.3489"
|
FAKE_VERSION="1.100.3489"
|
||||||
./compile.sh $FAKE_VERSION
|
./compile.sh $FAKE_VERSION
|
||||||
|
|
||||||
@ -300,8 +303,7 @@ tw unfollow cernovich
|
|||||||
test "$(sqlite3 twitter.db "select count(*) from users where is_followed = 1")" = "0"
|
test "$(sqlite3 twitter.db "select count(*) from users where is_followed = 1")" = "0"
|
||||||
|
|
||||||
# Testing login
|
# Testing login
|
||||||
# TODO authentication: use an environment var for the password
|
tw login offline_twatter "$OFFLINE_TWATTER_PASSWD"
|
||||||
tw login offline_twatter S1pKIW#eRT016iA@OFcK
|
|
||||||
test -f Offline_Twatter.session
|
test -f Offline_Twatter.session
|
||||||
test "$(jq .UserHandle Offline_Twatter.session)" = "\"Offline_Twatter\""
|
test "$(jq .UserHandle Offline_Twatter.session)" = "\"Offline_Twatter\""
|
||||||
test "$(jq .IsAuthenticated Offline_Twatter.session)" = "true"
|
test "$(jq .IsAuthenticated Offline_Twatter.session)" = "true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user