diff options
author | gebele <gebele@in-silico.ch> | 2012-05-07 11:43:38 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2012-05-07 11:48:41 +0200 |
commit | ed29318710436187d7b8de5e4a18f954ab640d5d (patch) | |
tree | 7253e6e6d992bd49ec2dc0271c727f2e8766cd2a | |
parent | 34441f556a37a2d55b9ae7bd0486ac594e834c26 (diff) |
changed uri
-rw-r--r-- | test/rdf_check.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/rdf_check.rb b/test/rdf_check.rb index c6de5ce..d8838a5 100644 --- a/test/rdf_check.rb +++ b/test/rdf_check.rb @@ -10,37 +10,37 @@ class UploadTest < Test::Unit::TestCase 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 #{$toxbank_investigation[:uri]}/0`.chomp + 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 #{$toxbank_investigation[:uri]}/0`.chomp + 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 #{$toxbank_investigation[:uri]}/0`.chomp + 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 #{$toxbank_investigation[:uri]}/0`.chomp + 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 #{$toxbank_investigation[:uri]}/0`.chomp + 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 #{$toxbank_investigation[:uri]}/0`.chomp + 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 #{$toxbank_investigation[:uri]}/0`.chomp + 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 #{$toxbank_investigation[:uri]}/0`.chomp + 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 #{$toxbank_investigation[:uri]}/2`.chomp + 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 #{$toxbank_investigation[:uri]}/2`.chomp + 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 #{$toxbank_investigation[:uri]}/2`.chomp + 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 #{$toxbank_investigation[:uri]}/2`.chomp + 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 #{$toxbank_investigation[:uri]}/2`.chomp + 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 #{$toxbank_investigation[:uri]}/2`.chomp + 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 |