diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-04-16 11:07:52 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-04-16 11:07:52 +0200 |
commit | da91f344082075fde4afe2db89786aba645fe2c7 (patch) | |
tree | 789d524888196441bbff3e3518089736f4a9dc17 | |
parent | bb438372abd50e8e10d1e6229550bbc645e26418 (diff) |
adapt tests: deleted investigations have no policies
-rw-r--r-- | test/toxbank-investigation-curl.rb | 2 | ||||
-rw-r--r-- | test/toxbank-investigation-xls.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/toxbank-investigation-curl.rb b/test/toxbank-investigation-curl.rb index 1c6726c..04487fd 100644 --- a/test/toxbank-investigation-curl.rb +++ b/test/toxbank-investigation-curl.rb @@ -54,6 +54,8 @@ class UploadTest < Test::Unit::TestCase response = `curl -Lk -i -X DELETE -H "subjectid:#{@@subjectid}" #{uri}` assert_match /200/, response response = `curl -Lk -i -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}` + assert_match /401/, response + response = `curl -I -Lk -i -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}` assert_match /404/, response end end diff --git a/test/toxbank-investigation-xls.rb b/test/toxbank-investigation-xls.rb index 492d990..9ce8b2a 100644 --- a/test/toxbank-investigation-xls.rb +++ b/test/toxbank-investigation-xls.rb @@ -56,6 +56,8 @@ class UploadTest < Test::Unit::TestCase response = `curl -Lk -i -X DELETE -H "subjectid:#{@@subjectid}" #{uri}` assert_match /200/, response response = `curl -Lk -i -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}` + assert_match /401/, response + response = `curl -I -Lk -i -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}` assert_match /404/, response end |