Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server test #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ test: install

clean:
mvn clean

server:
cd testdata && make start
21 changes: 20 additions & 1 deletion src/test/robotframework/acceptance/seqr.robot
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ${jar} = target/seqr-4.10.4-SNAPSHOT.jar
*** Test Cases ***
TestProteinSearch
${process_result} = Run Process java -jar ${jar} search ${in_fasta} --db testdata/solr/

#TODO: refactor below into wrapper function
# Check system exited correctly
Log To Console ${process_result.stdout}
Log To Console ${process_result.stderr}
Expand All @@ -36,3 +36,22 @@ TestTranslationSearch

# Check output
Should Contain ${process_result.stdout} 131090


TestSolrServerSearch
${make_result} = Run Process make server
Log To Console ${make_result.stdout}
Log To Console ${make_result.stderr}
Should Be Equal As Integers ${make_result.rc} 0


${search_result} = Run Process java -jar ${jar} search ${in_fasta} --db http://localhost:8983/solr/

# Check system exited correctly
Log To Console ${search_result.stdout}
Log To Console ${search_result.stderr}
Should Be Equal As Integers ${search_result.rc} 0

# Check output
Should Contain ${search_result.stdout} 3915347
Should Contain ${search_result.stdout} spirochetes Borrelia burgdorferi B31