From 9e9327985375d35d3475a299af58dfb1e44c7315 Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 3 Jul 2015 14:46:57 +0200 Subject: reduced test zip to avoid timeout with json generation; added simple assertion for biosearch result --- .../valid/GC-ToxBank-15_tb2.zip | Bin 3501166 -> 1829311 bytes test/toxbank-investigation-sparql.rb | 6 ++++++ 2 files changed, 6 insertions(+) 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 Binary files a/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip and b/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip 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 -- cgit v1.2.3