diff options
Diffstat (limited to 'test/integration/nickserver_test.rb')
-rw-r--r-- | test/integration/nickserver_test.rb | 8 |
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)) |