From 14d04655b90b808c4f1468719f898cd0b3d59fe2 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 16 May 2011 11:20:23 +0200 Subject: authorization testing with turned off A&A in config --- authorization.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/authorization.rb b/authorization.rb index 3772638..cbe8b5a 100644 --- a/authorization.rb +++ b/authorization.rb @@ -3,6 +3,10 @@ require "opentox-ruby" require "test/unit" TEST_URI = "http://only_a_test/test/" + rand(1000000).to_s +unless AA_SERVER #overwrite turned off A&A server for testing + AA_SERVER = "https://opensso.in-silico.ch" + @@subjectid = OpenTox::Authorization.authenticate(TEST_USER,TEST_PW) +end class TestOpenToxAuthorizationBasic < Test::Unit::TestCase @@ -104,4 +108,4 @@ end def login OpenTox::Authorization.authenticate(TEST_USER,TEST_PW) -end \ No newline at end of file +end -- cgit v1.2.3