You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/06/04 13:24:58 UTC

[6/7] git commit: Edit Mock tests setup and common authenticate code: use ENV['TESTS_API_USERNAME'] prevent confusion with API_USER credentials env variables

Edit Mock tests setup and common authenticate code:
use ENV['TESTS_API_USERNAME'] prevent confusion
with API_USER credentials env variables


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/cb1c9bb5
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/cb1c9bb5
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/cb1c9bb5

Branch: refs/heads/master
Commit: cb1c9bb5a248c3f4ea8465da86836151801b147e
Parents: ef9aef2
Author: marios <ma...@redhat.com>
Authored: Fri Jun 1 13:10:32 2012 +0300
Committer: marios <ma...@redhat.com>
Committed: Mon Jun 4 14:24:11 2012 +0300

----------------------------------------------------------------------
 server/tests/drivers/mock/common.rb |    4 ++--
 server/tests/minitest_common.rb     |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/cb1c9bb5/server/tests/drivers/mock/common.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/mock/common.rb b/server/tests/drivers/mock/common.rb
index a89e699..d39300a 100644
--- a/server/tests/drivers/mock/common.rb
+++ b/server/tests/drivers/mock/common.rb
@@ -1,6 +1,6 @@
 ENV['API_DRIVER']   = 'mock'
-ENV['API_USERNAME'] = 'mockuser'
-ENV['API_PASSWORD'] = 'mockpassword'
+ENV['TESTS_API_USERNAME'] = 'mockuser'
+ENV['TESTS_API_PASSWORD'] = 'mockpassword'
 
 
 $:.unshift File.join(File.dirname(__FILE__), '..', '..', '..')

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/cb1c9bb5/server/tests/minitest_common.rb
----------------------------------------------------------------------
diff --git a/server/tests/minitest_common.rb b/server/tests/minitest_common.rb
index 8f54f2d..0fbfe9b 100644
--- a/server/tests/minitest_common.rb
+++ b/server/tests/minitest_common.rb
@@ -29,7 +29,7 @@ module Deltacloud
     end
 
     def authenticate
-      authorize ENV['API_USERNAME'], ENV['API_PASSWORD']
+      authorize ENV['TESTS_API_USERNAME'], ENV['TESTS_API_PASSWORD']
     end
 
     def collection_url(collection)