summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2015-07-03 14:46:57 +0200
committergebele <gebele@in-silico.ch>2015-07-03 14:46:57 +0200
commit9e9327985375d35d3475a299af58dfb1e44c7315 (patch)
treee9e06b65ae545ea9d4457aa5d4579ad7582fb7de
parent0163a39a2b186c5ca0c3358d0e61b16ca477208b (diff)
reduced test zip to avoid timeout with json generation; added simple assertion for biosearch result
-rw-r--r--test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zipbin3501166 -> 1829311 bytes
-rw-r--r--test/toxbank-investigation-sparql.rb6
2 files changed, 6 insertions, 0 deletions
diff --git a/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip b/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip
index 91dcfa7..5f05434 100644
--- a/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip
+++ b/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip
Binary files differ
diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb
index 6c4b8f5..48ca418 100644
--- a/test/toxbank-investigation-sparql.rb
+++ b/test/toxbank-investigation-sparql.rb
@@ -415,6 +415,12 @@ class TBSPARQLTestExtended < MiniTest::Test
end
end
+ def test_22_biosearch_json
+ # check the json output for a bio search gene
+ response = OpenTox::RestClientWrapper.get "#{$investigation[:uri]}/sparql/biosearch", {:geneIdentifiers => "['entrez:3075']"}, {:accept => "application/json", :subjectid => $pi[:subjectid]}
+ assert response.include?("Entrez:3075")
+ end
+
# delete investigation/{id}
# @note expect code 200
def test_90_delete_investigation