diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-05-12 10:20:44 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-05-12 10:20:44 +0200 |
commit | 38eb1785c05909251fe81e829bd6f0c3fdb7ff6d (patch) | |
tree | 527e8afa89e1e5ae582048e0f4ab247ee4b78154 | |
parent | 8d49db6bc78cd8f9344c4b9c1ce665938b08cdec (diff) |
show version of 4store in test output
-rw-r--r-- | test/store_query.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/store_query.rb b/test/store_query.rb index 80e9cfb..d3db847 100644 --- a/test/store_query.rb +++ b/test/store_query.rb @@ -6,6 +6,8 @@ class UploadTest < MiniTest::Test def test_01_basic_response response = `curl -i -k --user #{$four_store[:user]}:#{$four_store[:password]} '#{$four_store[:uri]}/status/'`.chomp assert_match /200/, response + response = `curl -k --user #{$four_store[:user]}:#{$four_store[:password]} '#{$four_store[:uri]}/test/bla'`.chomp + puts response.sub("Not found","") # show Version of 4store server response = `curl -i -k -u guest:guest '#{$four_store[:uri]}/status/'`.chomp assert_match /401/, response unless $four_store[:uri].match(/localhost/) end |