summaryrefslogtreecommitdiff
path: root/test/integration/nickserver_test.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2016-09-23 06:45:18 +0000
committerazul <azul@riseup.net>2016-09-23 06:45:18 +0000
commit6721f0732facd87404eecc288357fd1bd0de48cf (patch)
tree58b0f80b545987d5fc7f3dfdd4a3c1563cbc216e /test/integration/nickserver_test.rb
parente2aedcaade71dfe9103fdc8e705f59ece5f3a4d0 (diff)
parent68ffe9928620d3e5e3b96152ed4d37da90f6a89b (diff)
Merge branch 'feature/deal-with-network-failures' into 'master'
Feature/deal with network failures Also activates the new nicknym lookup. See merge request !5
Diffstat (limited to 'test/integration/nickserver_test.rb')
-rw-r--r--test/integration/nickserver_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/nickserver_test.rb b/test/integration/nickserver_test.rb
index e367e06..06d6e29 100644
--- a/test/integration/nickserver_test.rb
+++ b/test/integration/nickserver_test.rb
@@ -3,6 +3,13 @@ require 'support/http_stub_helper'
require 'nickserver/server'
require 'json'
+# Integration Test for the whole nickserver without network dependecy.
+#
+# These tests are meant to test the integration between the different
+# components of the nickserver from the ReelServer all the way down to
+# the different sources.
+# These tests do not test the low level network adapter, the daemonization
+# or the startup script.
#
# Some important notes to understanding these tests:
#
@@ -29,6 +36,7 @@ class NickserverTest < Minitest::Test
def test_GET_key_by_email_address_served_via_SKS
uid = 'cloudadmin@leap.se'
key_id = 'E818C478D3141282F7590D29D041EB11B1647490'
+ stub_nicknym_available_response 'leap.se', status: 404
stub_sks_vindex_reponse(uid, body: file_content(:leap_vindex_result))
stub_sks_get_reponse(key_id, body: file_content(:leap_public_key))