renaming instances of swauth to gswauth
changed code where appropriate to gswauth instead of swauth Change-Id: Iadcec4f379fae3f063379b4899797b375290cc7b Signed-off-by: Thiago da Silva <thiago@redhat.com> Reviewed-on: http://review.gluster.org/6226 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
This commit is contained in:
parent
810b399d24
commit
40553ff958
@ -59,7 +59,7 @@ class Swauth(object):
|
||||
def __init__(self, app, conf):
|
||||
self.app = app
|
||||
self.conf = conf
|
||||
self.logger = get_logger(conf, log_route='swauth')
|
||||
self.logger = get_logger(conf, log_route='gswauth')
|
||||
self.log_headers = conf.get('log_headers', 'no').lower() in TRUE_VALUES
|
||||
self.reseller_prefix = conf.get('reseller_prefix', 'AUTH').strip()
|
||||
if self.reseller_prefix and self.reseller_prefix[-1] != '_':
|
||||
@ -148,7 +148,7 @@ class Swauth(object):
|
||||
raise Exception(
|
||||
'Invalid auth_type in config file: %s'
|
||||
% self.auth_type)
|
||||
self.auth_encoder.salt = conf.get('auth_type_salt', 'swauthsalt')
|
||||
self.auth_encoder.salt = conf.get('auth_type_salt', 'gswauthsalt')
|
||||
self.allow_overrides = \
|
||||
conf.get('allow_overrides', 't').lower() in TRUE_VALUES
|
||||
self.agent = '%(orig)s Swauth'
|
||||
|
4
setup.py
4
setup.py
@ -67,8 +67,8 @@ setup(
|
||||
'account=gluster.swift.account.server:app_factory',
|
||||
],
|
||||
'paste.filter_factory': [
|
||||
'swauth=gluster.swift.common.middleware.gswauth.swauth.middleware:'
|
||||
'filter_factory',
|
||||
'gswauth=gluster.swift.common.middleware.gswauth.swauth.'
|
||||
'middleware:filter_factory',
|
||||
],
|
||||
},
|
||||
)
|
||||
|
@ -5,7 +5,7 @@ user = root
|
||||
workers = 1
|
||||
|
||||
[pipeline:main]
|
||||
pipeline = catch_errors healthcheck proxy-logging cache swauth proxy-logging proxy-server
|
||||
pipeline = catch_errors healthcheck proxy-logging cache gswauth proxy-logging proxy-server
|
||||
|
||||
[app:proxy-server]
|
||||
use = egg:gluster_swift#proxy
|
||||
@ -60,10 +60,10 @@ user_test_tester = testing .admin
|
||||
user_test2_tester2 = testing2 .admin
|
||||
user_test_tester3 = testing3
|
||||
|
||||
[filter:swauth]
|
||||
use = egg:gluster_swift#swauth
|
||||
set log_name = swauth
|
||||
super_admin_key = swauthkey
|
||||
[filter:gswauth]
|
||||
use = egg:gluster_swift#gswauth
|
||||
set log_name = gswauth
|
||||
super_admin_key = gswauthkey
|
||||
metadata_volume = gsmetadata
|
||||
|
||||
[filter:cache]
|
||||
|
@ -12,7 +12,7 @@ auth_prefix = /auth/
|
||||
#auth_prefix = /v2.0/
|
||||
|
||||
# GSWauth internal admin user configuration information
|
||||
admin_key = swauthkey
|
||||
admin_key = gswauthkey
|
||||
admin_user = .super_admin
|
||||
|
||||
# Primary functional test account (needs admin access to the account)
|
||||
|
@ -59,10 +59,10 @@ run_generic_tests()
|
||||
gswauth_cleanup
|
||||
|
||||
#swauth-prep
|
||||
sudo_env swauth-prep -K swauthkey || fail "Unable to prep gswauth"
|
||||
sudo_env swauth-add-user -K swauthkey -a test tester testing || fail "Unable to add user test"
|
||||
sudo_env swauth-add-user -K swauthkey -a test2 tester2 testing2 || fail "Unable to add user test2"
|
||||
sudo_env swauth-add-user -K swauthkey test tester3 testing3 || fail "Unable to add user test3"
|
||||
sudo_env swauth-prep -K gswauthkey || fail "Unable to prep gswauth"
|
||||
sudo_env swauth-add-user -K gswauthkey -a test tester testing || fail "Unable to add user test"
|
||||
sudo_env swauth-add-user -K gswauthkey -a test2 tester2 testing2 || fail "Unable to add user test2"
|
||||
sudo_env swauth-add-user -K gswauthkey test tester3 testing3 || fail "Unable to add user test3"
|
||||
|
||||
nosetests -v --exe \
|
||||
--with-xunit \
|
||||
@ -105,7 +105,7 @@ sudo service memcached start || fail "Unable to start memcached"
|
||||
sudo_env swift-init main start || fail "Unable to start swift"
|
||||
|
||||
#swauth-prep
|
||||
sudo_env swauth-prep -K swauthkey || fail "Unable to prep gswauth"
|
||||
sudo_env swauth-prep -K gswauthkey || fail "Unable to prep gswauth"
|
||||
|
||||
mkdir functional_tests > /dev/null 2>&1
|
||||
nosetests -v --exe \
|
||||
|
Loading…
x
Reference in New Issue
Block a user