summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-04-10 17:28:16 +0200
committerAzul <azul@riseup.net>2016-04-10 17:31:24 +0200
commitcc94af9d89e7ed076854782a30f7cd9de9e0ced6 (patch)
tree3203cdf039d2aade8990a1afc04517a686828f57 /test/unit
parentcc3e5dc31d18ef30455e2c63e0cf078e0905bdca (diff)
add test for 200 without matching keys
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/hkp_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/hkp_test.rb b/test/unit/hkp_test.rb
index 9c10aab..f3cdc95 100644
--- a/test/unit/hkp_test.rb
+++ b/test/unit/hkp_test.rb
@@ -34,6 +34,14 @@ class HkpTest < Minitest::Test
end
end
+ def test_no_matching_key_found
+ uid = 'leaping_lemur@leap.se'
+ stub_sks_vindex_reponse(uid, :status => 200)
+ test_em_errback "Nickserver::HKP::FetchKeyInfo.new.search '#{uid}'" do |error|
+ assert_equal 404, error
+ end
+ end
+
def test_fetch_key
uid = 'cloudadmin@leap.se'
key_id = 'E818C478D3141282F7590D29D041EB11B1647490'