From 6596ff877e655433ff42d9c1c785bb4c71eb244a Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 7 May 2012 16:57:15 +0200 Subject: remove rdf_check --- test/rdf_check.rb | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 test/rdf_check.rb diff --git a/test/rdf_check.rb b/test/rdf_check.rb deleted file mode 100644 index d8838a5..0000000 --- a/test/rdf_check.rb +++ /dev/null @@ -1,47 +0,0 @@ -require File.join(File.expand_path(File.dirname(__FILE__)),"setup.rb") - -class UploadTest < Test::Unit::TestCase - - def setup - end - - def teardown - end - - def test_01_check_rdf_with_ToxBank_specific_fields_on_BII_I_1 - id = OpenTox::Authorization.authenticate($aa[:user],$aa[:password]) - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Term Source Name, OBI, DOID, BTO, NEWT, UO, CHEBI, PATO, TBP, TBC, TBO, TBU, TBK]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Investigation Identifier, BII\-I\-1]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Investigation Title, Growth control of the eukaryote cell\: a systems biology study in yeast]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Investigation Description, Background Cell growth underlies many key cellular and developmental processes]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Owning Organisation URI, TBO\:G176, Public]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Consortium URI, TBC\:G2, Douglas Connect]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Principal Investigator URI, TBU\:U115, Glenn Myatt]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/0`.chomp - assert_match /[Investigation keywords, TBK\:Blotting, Southwestern;TBK\:Molecular Imaging;DOID\:primary carcinoma of the liver cells]/, response - end - - def test_02_check_rdf_with_ToxBank_specific_fields_on_E_MTAB - id = OpenTox::Authorization.authenticate($aa[:user],$aa[:password]) - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Investigation Identifier, E\-MTAB\-798]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Investigation Title, Open TG\-GATEs \(in vitro, human\)]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Investigation Description, The Toxicogenomics Project was a 5\-year collaborative project]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Owning Organisation URI, TBO\:G176, Public]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Consortium URI, TBC:G2, Douglas Connect]/, response - response = `curl -i -k -H subjectid:#{id} -H accept:application/rdf+xml https://toxbank-dev.in-silico.ch/2`.chomp - assert_match /[Investigation keywords, TBK\:Fluxomics]/, response - end - -end -- cgit v1.2.3