diff options
author | mr <mr@mrautenberg.de> | 2011-05-16 11:20:23 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-05-16 11:20:23 +0200 |
commit | 14d04655b90b808c4f1468719f898cd0b3d59fe2 (patch) | |
tree | 510fcb0f68f1fa59cf8b159ceea1ea1fc353340d | |
parent | b45d2c58ec89d2382a137d6a185aef89fd09c78c (diff) |
authorization testing with turned off A&A in config
-rw-r--r-- | authorization.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |