summaryrefslogtreecommitdiff
path: root/test/unit/hkp_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/hkp_test.rb')
-rw-r--r--test/unit/hkp_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/hkp_test.rb b/test/unit/hkp_test.rb
index c9c28cf..1b7b2c9 100644
--- a/test/unit/hkp_test.rb
+++ b/test/unit/hkp_test.rb
@@ -28,7 +28,7 @@ class HkpTest < MiniTest::Unit::TestCase
def test_key_info_not_found
uid = 'leaping_lemur@leap.se'
- stub_vindex_response(uid, :status => 404)
+ stub_sks_vindex_reponse(uid, :status => 404)
test_em_errback "Nickserver::HKP::FetchKeyInfo.new.search '#{uid}'" do |error|
assert_equal 404, error
end
@@ -47,8 +47,8 @@ class HkpTest < MiniTest::Unit::TestCase
def test_fetch_key
uid = 'cloudadmin@leap.se'
key_id = 'E818C478D3141282F7590D29D041EB11B1647490'
- stub_vindex_response(uid, :body => file_content(:leap_vindex_result))
- stub_get_response(key_id, :body => file_content(:leap_public_key))
+ stub_sks_vindex_reponse(uid, :body => file_content(:leap_vindex_result))
+ stub_sks_get_reponse(key_id, :body => file_content(:leap_public_key))
test_em_callback "Nickserver::HKP::FetchKey.new.get '#{uid}'" do |key_text|
assert_equal file_content(:leap_public_key), key_text
@@ -59,8 +59,8 @@ class HkpTest < MiniTest::Unit::TestCase
uid = 'cloudadmin@leap.se'
key_id = 'E818C478D3141282F7590D29D041EB11B1647490'
- stub_vindex_response(uid, :body => file_content(:leap_vindex_result))
- stub_get_response(key_id, :status => 404)
+ stub_sks_vindex_reponse(uid, :body => file_content(:leap_vindex_result))
+ stub_sks_get_reponse(key_id, :status => 404)
test_em_errback "Nickserver::HKP::FetchKey.new.get '#{uid}'" do |error|
assert_equal 404, error
@@ -113,7 +113,7 @@ class HkpTest < MiniTest::Unit::TestCase
end
def fetch_key_info(body_source, uid, &block)
- stub_vindex_response(uid, :body => file_content(body_source))
+ stub_sks_vindex_reponse(uid, :body => file_content(body_source))
test_em_callback "Nickserver::HKP::FetchKeyInfo.new.search '#{uid}'", &block
end