[Groonga-commit] ranguba/groonga-client at 9dccdea [master] Define BasicAuthenticationTests to test Basic Authentication

Back to archive index

KITAITI Makoto null+****@clear*****
Sat Feb 6 12:56:38 JST 2016


KITAITI Makoto	2016-02-06 12:56:38 +0900 (Sat, 06 Feb 2016)

  New Revision: 9dccdea092eaee2ea03466c0cd47eb2435cdf19d
  https://github.com/ranguba/groonga-client/commit/9dccdea092eaee2ea03466c0cd47eb2435cdf19d

  Merged 41a8b86: Merge pull request #4 from KitaitiMakoto/basic-auth

  Message:
    Define BasicAuthenticationTests to test Basic Authentication

  Modified files:
    test/test-client.rb

  Modified: test/test-client.rb (+13 -0)
===================================================================
--- test/test-client.rb    2016-02-05 13:38:31 +0900 (2919f7e)
+++ test/test-client.rb    2016-02-06 12:56:38 +0900 (6d3d840)
@@ -255,6 +255,19 @@ JSON
     end
   end
 
+  module BasicAuthenticationTests
+    def setup
+      @auth_user = 'Aladdin'
+      @auth_password = 'open sesame'
+    end
+
+    def test_request_header
+      stub_response('[]')
+      client.status
+      assert_equal 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==', @request_headers['authorization']
+    end
+  end
+
   module Tests
     include Utils
     include Assertions
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index