Skip to content
Snippets Groups Projects
Commit 09f66e6e authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'pmaniora_full_sync_tavern_tests' into 'develop'

full sync tavern tests

See merge request !293
parents 7735fde4 00b73b77
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!293full sync tavern tests
...@@ -106,6 +106,7 @@ def build_methods(): ...@@ -106,6 +106,7 @@ def build_methods():
'follow_api.get_blog': condenser_api.get_blog, 'follow_api.get_blog': condenser_api.get_blog,
'follow_api.get_blog_entries': condenser_api.get_blog_entries, 'follow_api.get_blog_entries': condenser_api.get_blog_entries,
'follow_api.get_reblogged_by': condenser_api.get_reblogged_by, 'follow_api.get_reblogged_by': condenser_api.get_reblogged_by,
# three functions under are not implemented, should we remove them?
'follow_api.get_feed_entries': follow_api.get_feed_entries, 'follow_api.get_feed_entries': follow_api.get_feed_entries,
'follow_api.get_feed': follow_api.get_feed, 'follow_api.get_feed': follow_api.get_feed,
'follow_api.get_blog_authors': follow_api.get_blog_authors 'follow_api.get_blog_authors': follow_api.get_blog_authors
...@@ -125,6 +126,7 @@ def build_methods(): ...@@ -125,6 +126,7 @@ def build_methods():
'tags_api.get_post_discussions_by_payout': condenser_api.get_post_discussions_by_payout, 'tags_api.get_post_discussions_by_payout': condenser_api.get_post_discussions_by_payout,
'tags_api.get_comment_discussions_by_payout': condenser_api.get_comment_discussions_by_payout, 'tags_api.get_comment_discussions_by_payout': condenser_api.get_comment_discussions_by_payout,
'tags_api.get_active_votes' : tags_api.get_active_votes, 'tags_api.get_active_votes' : tags_api.get_active_votes,
# five functions under are not implemented, should we remove them?
'tags_api.get_tags_used_by_author' : tags_api.get_tags_used_by_author, 'tags_api.get_tags_used_by_author' : tags_api.get_tags_used_by_author,
'tags_api.get_discussions_by_active' : tags_api.get_discussions_by_active, 'tags_api.get_discussions_by_active' : tags_api.get_discussions_by_active,
'tags_api.get_discussions_by_cashout' : tags_api.get_discussions_by_cashout, 'tags_api.get_discussions_by_cashout' : tags_api.get_discussions_by_cashout,
......
...@@ -5,6 +5,8 @@ pip install tox ...@@ -5,6 +5,8 @@ pip install tox
export HIVEMIND_ADDRESS=$1 export HIVEMIND_ADDRESS=$1
export HIVEMIND_PORT=$2 export HIVEMIND_PORT=$2
export TAVERN_DIR="tests/tests_api/hivemind/tavern"
echo "Starting tests on hivemind server running on ${HIVEMIND_ADDRESS}:${HIVEMIND_PORT}" echo "Starting tests on hivemind server running on ${HIVEMIND_ADDRESS}:${HIVEMIND_PORT}"
echo "Selected test group (if empty all will be executed): $3" echo "Selected test group (if empty all will be executed): $3"
......
...@@ -5,6 +5,8 @@ pip3 install tox --user ...@@ -5,6 +5,8 @@ pip3 install tox --user
export HIVEMIND_ADDRESS=$1 export HIVEMIND_ADDRESS=$1
export HIVEMIND_PORT=$2 export HIVEMIND_PORT=$2
export TAVERN_DIR="tests/tests_api/hivemind/tavern"
echo Attempting to start tests on hivemind instance listeing on: $HIVEMIND_ADDRESS port: $HIVEMIND_PORT echo Attempting to start tests on hivemind instance listeing on: $HIVEMIND_ADDRESS port: $HIVEMIND_PORT
echo "Selected test group (if empty all will be executed): $3" echo "Selected test group (if empty all will be executed): $3"
......
#!/bin/bash
# script to run tavern tests for full sync hivemind node
export TAVERN_DIR="tests/tests_api/hivemind/tavern_full_sync"
SCRIPT=$(readlink -f "$0")
$(dirname "$SCRIPT")/run_tests.sh "$@"
...@@ -63,7 +63,10 @@ pip3 install tox --user ...@@ -63,7 +63,10 @@ pip3 install tox --user
export HIVEMIND_ADDRESS=$1 export HIVEMIND_ADDRESS=$1
export HIVEMIND_PORT=$2 export HIVEMIND_PORT=$2
if [ -z "$TAVERN_DIR" ]
then
export TAVERN_DIR="tests/tests_api/hivemind/tavern"
fi
echo "Attempting to start tests on hivemind instance listening on: $HIVEMIND_ADDRESS port: $HIVEMIND_PORT" echo "Attempting to start tests on hivemind instance listening on: $HIVEMIND_ADDRESS port: $HIVEMIND_PORT"
echo "Additional test options: ${@:3}" echo "Additional test options: ${@:3}"
......
...@@ -24,7 +24,7 @@ passenv = ...@@ -24,7 +24,7 @@ passenv =
HIVEMIND_ADDRESS HIVEMIND_ADDRESS
HIVEMIND_PORT HIVEMIND_PORT
changedir = tests/tests_api/hivemind/tavern changedir = {env:TAVERN_DIR}
deps = deps =
{[testenv]deps} {[testenv]deps}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment