Reactivate integration tests that were temporarily deactivated

This commit is contained in:
Alessio 2024-12-09 11:52:17 -08:00
parent 2a05512a9c
commit 178e38555f
2 changed files with 31 additions and 31 deletions

View File

@ -43,31 +43,31 @@ steps:
- curl localhost:1000/cernovich > webserver_test_output.html - curl localhost:1000/cernovich > webserver_test_output.html
- jobs -p | xargs -I{} kill -- -{} - jobs -p | xargs -I{} kill -- -{}
# version_bump_test: version_bump_test:
# image: offline-twitter/go image: offline-twitter/go
# when: when:
# - event: tag - event: tag
# ref: refs/tags/v*.*.* ref: refs/tags/v*.*.*
# secrets: secrets:
# # - offline_twatter_passwd # - offline_twatter_passwd
# - offline_twatter_session_file - offline_twatter_session_file
# commands: commands:
# - export version=$(echo $CI_COMMIT_TAG | grep -Poh "(?<=^v)\d+\.\d+\.\d+") - export version=$(echo $CI_COMMIT_TAG | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
# - curl https://apt.playfulpachyderm.com/KEY.gpg | sudo apt-key add - - curl https://apt.playfulpachyderm.com/KEY.gpg | sudo apt-key add -
# - echo "deb https://apt.playfulpachyderm.com/ ./" | sudo tee /etc/apt/sources.list.d/offline_twitter.list - echo "deb https://apt.playfulpachyderm.com/ ./" | sudo tee /etc/apt/sources.list.d/offline_twitter.list
# - sudo apt update - sudo apt update
# - sudo apt install -y offline-twitter-engine - sudo apt install -y offline-twitter-engine
# - which twitter - which twitter
# - twitter create_profile outdated_profile - twitter create_profile outdated_profile
# - cd outdated_profile - cd outdated_profile
# # TODO: The CI server appears to have been IP-banned. Replacing login with session-file secret for now # TODO: The CI server appears to have been IP-banned. Replacing login with session-file secret for now
# # - twitter login offline_twatter "$OFFLINE_TWATTER_PASSWD" # - twitter login offline_twatter "$OFFLINE_TWATTER_PASSWD"
# - echo "$OFFLINE_TWATTER_SESSION_FILE" > Offline_Twatter.session # Write the session file - echo "$OFFLINE_TWATTER_SESSION_FILE" > Offline_Twatter.session # Write the session file
# - twitter fetch_user pcmonk - twitter fetch_user pcmonk
# - twitter --session Offline_Twatter get_user_tweets pcmonk - twitter --session Offline_Twatter get_user_tweets pcmonk
# - (cd ../cmd && ./compile.sh $version) - (cd ../cmd && ./compile.sh $version)
# - which ../cmd/tw - which ../cmd/tw
# - ../cmd/tw fetch_user pcmonk - ../cmd/tw fetch_user pcmonk
dpkg_build_and_upload: dpkg_build_and_upload:
when: when:

View File

@ -164,10 +164,10 @@ test $(find images -mindepth 2 | wc -l) = "$((initial_images_count + 1))"
# Fetch and attempt to download a DMCAed tweet # Fetch and attempt to download a DMCAed tweet
# tw fetch_user TyCardon # TODO: This guy went private tw fetch_user TyCardon
# tw fetch_tweet_only https://twitter.com/TyCardon/status/1480640777281839106 tw fetch_tweet_only https://twitter.com/TyCardon/status/1480640777281839106
# tw download_tweet_content 1480640777281839106 tw download_tweet_content 1480640777281839106
# test $(sqlite3 twitter.db "select is_blocked_by_dmca, is_downloaded from videos where tweet_id = 1480640777281839106") = "1|0" test $(sqlite3 twitter.db "select is_blocked_by_dmca, is_downloaded from videos where tweet_id = 1480640777281839106") = "1|0"
# Fetch a tweet with a poll # Fetch a tweet with a poll
tw fetch_tweet 1465534109573390348 tw fetch_tweet 1465534109573390348
@ -297,9 +297,9 @@ test $(find link_preview_images | wc -l) = $initial_link_preview_images_count #
# Test a tweet thread with tombstones # Test a tweet thread with tombstones
tw fetch_tweet https://twitter.com/CovfefeAnon/status/1454526270809726977 tw fetch_tweet https://twitter.com/CovfefeAnon/status/1454526270809726977
# test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454515503242829830") = 1 # TODO: he unprivated temporarily test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454515503242829830") = 1
test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454521424144654344") = 1 test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454521424144654344") = 1
# test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454522147750260742") = 1 test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454522147750260742") = 1
test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454526270809726977") = 0 test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454526270809726977") = 0
# Check that it downloaded the fetchable user's profile image # Check that it downloaded the fetchable user's profile image
test $(find profile_images/WhaleTherapist_profile* | wc -l) -ne 0 test $(find profile_images/WhaleTherapist_profile* | wc -l) -ne 0