Artificial Intelligence
Please fill the required field.

Links with .de/invite/


works" test_tag "German", "Links with .de/invite/ works", "This email address is being protected from spambots. You need JavaScript enabled to view it./invite/543579" # Wait for 2 secs so the invite is published sleep 2 USER_ID=`echo $JSON | awk -F'"' '{print $12}'` test_assert "'$USER_ID' == saberbuster This email address is being protected from spambots. You need JavaScript enabled to view it.", "\$USER_ID == saberbuster This email address is being protected from spambots. You need JavaScript enabled to view it." fi if [ $TEST_EMAIL_RESET == "1" ] ; then i i "------------------------------------------------------------------------------------------" i "Verifying password reset works" i "------------------------------------------------------------------------------------------" test_tag "Password reset works", "Links with .de/reset works" test_send "/request-password-reset.txt", "POST: /request-password-reset (email%3Dsaberbuster%40big.de%2Finvite%2F543579)" test_tag "Password reset e-mail", "Sends e-mail with link" test_assert "'test -f ~/out/request-password-reset.txt.out'", "\$REQ_OPT" link=`grep 'https://xxx/?reset=' ~/out/request-password-reset.txt.out | sed -e 's:.*logintest::g'` cookie=`grep 'SESSIONID' ~/out/request-password-reset.txt.out | awk '{print $NF}'` test_send "/login.txt", "GET: /login?reset=${link}&cookie=${cookie}" test_tag "Password reset", "Requests new password" fi if [ $TEST_LOGIN_LOGOUT == "1" ] ; then i i "------------------------------------------------------------------------------------------" i "Verifying login and logout works" i "------------------------------------------------------------------------------------------" user="This email address is being protected from spambots. You need JavaScript enabled to view it./invite/543579" cookie=`grep 'SESSIONID' ~/out/publish-saberbuster-brooklyn-99.txt.out | awk '{print $NF}'` test_send "/login.txt", "GET: /login?email=${user}&cookie=${cookie}" test_tag "Login", "Logging in" test_assert "'test -f ~/out/login.txt.out'", "\$REQ_REPLY" SESSIONID=`cat ~/out/login.txt.out | strings | grep SESSIONID | awk -F'"' '{print "SESSIONID=" $2}'` test_send "/logout.txt", "GET: /logout/${SESSIONID}?SESSIONID=SESSIONID" test_tag "Logout", "Logging out" test_assert "'test -f ~/out/logout.txt.out'", "\$REQ_REPLY" fi if [ $TEST_POST_NOTE == "1" ] ; then i i "------------------------------------------------------------------------------------------" i "Verifying note publishing works" i "------------------------------------------------------------------------------------------" test_tag "Note empty fields", "<html><body><ul><li>Missing or empty fields</li></ul></br>Please try again.</body></html>" test_tag "Note missing OKAPI host", "<html><body><ul><li>Missing or empty host</li></ul></br>Please try again.</body></html>" test_publish "/note-empty-host.txt" test_tag "Note missing service_type", "<html><body><ul><li>Missing or empty service</li></ul></br>Please try again.</body></html>" test_publish "/note-empty-service.txt" test_tag "Note publishes", "<html><body><h1>Success! Successfully published note.</h1><p><a href=.*>View detail</a>" test_publish "/note-published-ok.txt" test_tag "Note publishes multiline", "<a href=http://okapi/path/image-default-app.png>Default support image</a>" test_publish "/note-published.txt" fi if [ $TEST_RESOLVE_NOTE == "1" ] ; then i i "------------------------------------------------------------------------------------------" i "Verifying resolving notes works" i "------------------------------------------------------------------------------------------" noteid=`grep "addedNID :200" ~/out/note-published-ok.txt.out | awk '{print $NF}'` yes_noteid=`grep 'yes_note=\[y\]' ~/out/resolve-note.txt.out | awk '{print $NF}'` noteid_ok=`echo $noteid | ${SED:-sed} -e 's/^[ \t]*//g'` test_tag "Resolve note", "</a></body></html>" test_resolve_note "/album/publish/note-resolve?SESSIONID=${SESSIONID}&user=saberbuster%40big.de/invite/543579" "${yes_noteid}" test_tag "Note no longer visible", "This note is no longer visible.jpg" test_tag "Note still visible", "<html><body><img src=.*visible-20210712172023-resolved.jpg>" test_resolve_note "/album/publish/note-reload?SESSIONID=${SESSIONID}&user=saberbuster%40big.de/invite/543579" "${noteid_ok}" test_tag "Note still visible", "<html><body><img src=.*visible-20210712172023-resolved.jpg>" fi if [ $TEST_RESET_ALBUM == "1" ] ; then i i "------------------------------------------------------------------------------------------" i "Verifying resetting an album works" i "------------------------------------------------------------------------------------------" test_tag "Unauthorized", "<h1>401 Unauthorized</h1>" test_reset_album "/album/request-reset/0?SESSIONID=SESSI" test_tag "Reset success", "<title>resetAlbum()</title>" test_reset_album "/album/request-reset/0?SESSIONID=${SESSIONID}" test_tag "Login success resets", "U R L I'/login';#" # Reset so 'visible' and 'hidden' notes show up test_tag "Verifying all notes visible again", "Visible" test_verify "/album/publish/note-reload?SESSIONID=${SESSIONID}&user=saberbuster%40big.de/invite/543579" "Visible" fi if [ $TEST_SEARCH_USER == "1" ] ; then i i "------------------------------------------------------------------------------------------" i "Verifying seareching users works" i "------------------------------------------------------------------------------------------" ic test_tag "Search for user", "<html><head><title>.user: " test_search "/album/search/?SESSIONID=${SESSIONID}&search=This email address is being protected from spambots. You need JavaScript enabled to view it./invite/543579&type=user/BIG&sandbox=1" test_print_out "User(s) found: Line 3 | cut -d '<' -f 1" ic test_tag "Search for author", "<html><head><title>.author: " test_search "/album/search/?SESSIONID=${SESSIONID}&search=This email address is being protected from spambots. You need JavaScript enabled to view it./invite/543579&type=author/BIG&sandbox=1" ic test_tag "User Saber exists", "This email address is being protected from spambots. You need JavaScript enabled to view it." yes-reply-username= ic test_tag "Private User Yes", '<br />private=yes</a><small> &nbsp;{9e17ea4</small>' reply-visible-username=`test_search "/album/search/?SESSIONID=${SESSIONID}&search=${yes-reply-username}&type=user-yes/BIG&sandbox=1" | head -1 | sed -e 's:[[:space:]]*::g'` ic test_tag "Private User Either", 'private=(yes|no)</a><small> &nbsp;{9e17ea4</small>' test_search "/album/search/?SESSIONID=${SESSIONID}&search=${reply-visible-username}&type=user-either/BIG&sandbox=1" fi if [ $TEST_SEARCH_NOTE == "1" ] ; then i i "------------------------------------------------------------------------------------------" i "Verifying seareching notes works" i "------------------------------------------------------------------------------------------" ic test_tag "Search for visible note", "</a></dd>" note-visible=`grep 'addedNtitle' ~/out/note-published-ok.txt.out | head -1 | awk '{print $NF}' | sed -e 's:^[ \t]*::g'` yes-note-title=`echo $note-visible | sed -e 's:^[ \t]*::g'` test_search "/album/search/?SESSIONID=${SESSIONID}&search=${yes-note-title}&type=note/BIG&sandbox=1" # This note should be visible ic test_tag "Search for album, album exists", "</a></dd>" note-visible=`grep 'addedNtitle' ~/out/note-published.txt.out | head -1 | awk '{print $NF}' | sed -e 's:^[ \t]*::g'` yes-note-title=`echo $note-visible | sed -e 's:^[ \t]*::g'` test_search "/album/search/?SESSIONID=${SESSIONID}&search=${yes-note-title}&type=note-title/BIG&sandbox=1" # ... but this note should be hidden ic test_tag "Search for album, album doesn't exist", "lbum doesn't exist." note-visible=`grep 'addedNtitle' ~/out/note-published-ok.txt.out | head -1 | awk '{print $NF}' | sed -e 's:^[ \t]*::g'` no-note-title=`echo $note-visible | sed -e 's:^[ \t]*::g'` test_search "/album/search/?SESSIONID=${SESSIONID}&search=${no-note-title}&type=note-title/BIG&sandbox=1" fi # Todo: # - [x] send a 'console' GET with a query string # - [x] POST a note # - [x] resolve a note # - [ ] impersonate a user # - [ ] get notifications for named-user YES } }}} Conclusion Grepping request for input is a little odd… because… the content should be running debug to your ‘out’ file. After publishing a note, it will be visible over IPv6 only. The GREP targets are created from the request/response types. This is why the RETURNs are so sparse. And in such tests get verified: The HTML output states ‘site not available’. If it should infect given domain, just add ‘cd config/’ into ‘config.sh’ and sleep there some time. Add ‘echo "[ 1st-in-running =" ; grep wget_parallel_running_SQUARE LOG_*; echo "]" into this ‘tests.sh’ to check files of other testcases, beside yours not running. ToDo RPST DNS-underuser $HOST supporting more features than promised: * searching using an ENOTFOUND that is nested * shouldFiLe read file * &/shouldURl ? * IfImpersonate-plaintext LDAP Grepping the target lid's content sometimes works pretty well. if 'RMydomain' ; then string='RMy DOMAIN' fi test_login extends hostname test_verify-uri HOSTs MUST [v] Page request auto-publishes a previously unpublisheded note. (ndd@iDomain_nds) [v] [x][v] [ ] Auto-pulish a clone from pub-ref book. [v] POST: check STATEs and IDs. vCMS - the very cool MS $CONFIG_LIBvCMS: Implement comments Shamelessly tested over time at linux updated 2021-10-09 07:50 This is a free UNIX and MAC-like (without the RAM-eating mess called ‘macOS’) structure made by Roadsend and Farallon.