forked from TrueCloudLab/s3-tests
Compare commits
11 commits
master
...
wip-ceph-m
Author | SHA1 | Date | |
---|---|---|---|
|
90ab37f1c5 | ||
|
5c6658d5ba | ||
|
29b11ba39e | ||
|
e263fdb004 | ||
|
bad1554d09 | ||
|
f4cf8eceb7 | ||
|
ea2454654e | ||
|
cab30ee8ab | ||
|
e85c6f3dda | ||
|
5562bd6143 | ||
|
dfc7a1271b |
5 changed files with 1010 additions and 9 deletions
|
@ -58,6 +58,9 @@ service and two different credentials, something like this::
|
|||
access_key = ABCDEFGHIJKLMNOPQRST
|
||||
secret_key = abcdefghijklmnopqrstuvwxyzabcdefghijklmn
|
||||
|
||||
## replace with key id obtained when secret is created, or delete if KMS not tested
|
||||
kms_keyid = 01234567-89ab-cdef-0123-456789abcdef
|
||||
|
||||
[s3 alt]
|
||||
## another user account, used for ACL-related tests
|
||||
user_id = 56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234
|
||||
|
|
19
bootstrap
19
bootstrap
|
@ -12,9 +12,18 @@ if [ -f /etc/debian_version ]; then
|
|||
echo "$0: missing required DEB packages. Installing via sudo." 1>&2
|
||||
sudo apt-get -y install $missing
|
||||
fi
|
||||
fi
|
||||
if [ -f /etc/redhat-release ]; then
|
||||
for package in python-pip python-virtualenv python-devel libevent-devel; do
|
||||
elif [ -f /etc/fedora-release ]; then
|
||||
for package in python-pip python2-virtualenv python-devel libevent-devel; do
|
||||
if [ "$(rpm -qa $package 2>/dev/null)" == "" ]; then
|
||||
missing="${missing:+$missing }$package"
|
||||
fi
|
||||
done
|
||||
if [ -n "$missing" ]; then
|
||||
echo "$0: missing required RPM packages. Installing via sudo." 1>&2
|
||||
sudo yum -y install $missing
|
||||
fi
|
||||
elif [ -f /etc/redhat-release ]; then
|
||||
for package in python2-pip python-virtualenv python-devel libevent-devel; do
|
||||
if [ "$(rpm -qa $package 2>/dev/null)" == "" ]; then
|
||||
missing="${missing:+$missing }$package"
|
||||
fi
|
||||
|
@ -30,8 +39,8 @@ virtualenv --no-site-packages --distribute virtualenv
|
|||
# avoid pip bugs
|
||||
./virtualenv/bin/pip install --upgrade pip
|
||||
|
||||
# work-around change in pip 1.5
|
||||
./virtualenv/bin/pip install setuptools --no-use-wheel --upgrade
|
||||
# slightly old version of setuptools; newer fails w/ requests 0.14.0
|
||||
./virtualenv/bin/pip install setuptools==32.3.1
|
||||
|
||||
./virtualenv/bin/pip install -r requirements.txt
|
||||
|
||||
|
|
|
@ -71,6 +71,9 @@ s3:
|
|||
access_key: AWS_ACCESS_KEY
|
||||
secret_key: AWS_SECRET_KEY
|
||||
|
||||
## If KMS is tested, this if barbican key id. Optional.
|
||||
kms_keyid: barbican_key_id
|
||||
|
||||
alt:
|
||||
## Another user accout, used for ACL-related tests.
|
||||
|
||||
|
|
|
@ -310,6 +310,7 @@ def setup():
|
|||
'user_id',
|
||||
'display_name',
|
||||
'email',
|
||||
'kms_keyid',
|
||||
]:
|
||||
try:
|
||||
config[name][var] = cfg.get(section, var)
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue