diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-03-30 12:06:46 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-03-30 12:06:46 +0200 |
commit | b1d320e3e98e992dec2fdbc61fe678c25d7b2145 (patch) | |
tree | a849ccda6021e3b8e35d97bd49129b33133a4e70 | |
parent | 15cd9558c021c65cef24589c92b4dcd99e55008f (diff) |
change 404 test
-rw-r--r-- | test/basic_rest.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/basic_rest.rb b/test/basic_rest.rb index 16845a3..2c94727 100644 --- a/test/basic_rest.rb +++ b/test/basic_rest.rb @@ -29,7 +29,7 @@ class BasicTestCRUDInvestigation < Test::Unit::TestCase # check post to investigation service with wrong content type def test_01_post_investigation_400 - uri = File.join($toxbank_investigation[:uri], 'investigation') + uri = File.join($toxbank_investigation[:uri], "nonexistingpath") assert_raise OpenTox::NotFoundError do OpenTox::RestClientWrapper.post uri, {}, { :accept => 'text/dummy', :subjectid => @@subjectid } end @@ -39,9 +39,7 @@ class BasicTestCRUDInvestigation < Test::Unit::TestCase def test_02_post_investigation @@uri = "" file = File.join File.dirname(__FILE__), "data/toxbank-investigation/valid", "BII-I-1.zip" - task_uri = `curl -k -X POST #{$toxbank_investigation[:uri]} -H "Content-Type: multipart/form-data" -F "file=@#{file};type=application/zip" -H "subjectid:#{@@subjectid}"` - task = OpenTox::Task.new task_uri task.wait uri = task.resultURI |