Skip to content

Commit eb679ea

Browse files
author
Aayush
committed
Update commit hash in ceph tests
Signed-off-by: Aayush <aayush@li-2392f9cc-287a-11b2-a85c-9fcc04b05da6.ibm.com>
1 parent 24e11b7 commit eb679ea

File tree

3 files changed

+50
-4
lines changed

3 files changed

+50
-4
lines changed

src/test/external_tests/ceph_s3_tests/test_ceph_s3_config.conf

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ ssl_verify = False
1919
## the prefix to 30 characters long, and avoid collisions
2020
bucket prefix = ceph-{random}-
2121

22+
# all the iam account resources (users, roles, etc) created
23+
# will start with this name prefix
24+
iam name prefix = s3-tests-
25+
26+
# all the iam account resources (users, roles, etc) created
27+
# will start with this path prefix
28+
iam path prefix = /s3-tests/
29+
2230
[s3 main]
2331
## the tests assume two accounts are defined, "main" and "alt".
2432
email = main.alt@noobaa.com
@@ -51,9 +59,47 @@ secret_key = tenant_secret_key
5159
# tenant email set in vstart.sh
5260
email = ceph.tenant@noobaa.com
5361

62+
# tenant name
63+
tenant = testx
64+
5465
[s3 alt]
5566
## another user account, used for ACL-related tests
5667
user_id = 56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234
5768
display_name = cephalt
5869
## the "alt" user needs to have email set, too
5970
email = ceph.alt@noobaa.com
71+
## replace these with your access keys
72+
access_key = s3_access_key
73+
secret_key = s3_secret_key
74+
75+
#following section needs to be added for all sts-tests
76+
[iam]
77+
#used for iam operations in sts-tests
78+
#email from vstart.sh
79+
email = ceph.alt@noobaa.com
80+
81+
#user_id from vstart.sh
82+
user_id = 56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234
83+
84+
#access_key from vstart.sh
85+
access_key = tenant_access_key
86+
87+
#secret_key vstart.sh
88+
secret_key = tenant_secret_key
89+
90+
#display_name from vstart.sh
91+
display_name = cephalt
92+
93+
# iam account root user for iam_account tests
94+
[iam root]
95+
access_key = tenant_access_key
96+
secret_key = tenant_secret_key
97+
user_id = 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
98+
email = main.alt@noobaa.com
99+
100+
# iam account root user in a different account than [iam root]
101+
[iam alt root]
102+
access_key = tenant_access_key
103+
secret_key = tenant_secret_key
104+
user_id = 56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234
105+
email = ceph.alt@noobaa.com

src/test/external_tests/ceph_s3_tests/test_ceph_s3_config_setup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ async function ceph_test_setup() {
8787

8888
console.info('CEPH TEST CONFIGURATION:', JSON.stringify(CEPH_TEST));
8989
const { access_key, secret_key } = ceph_account.access_keys[0];
90-
await os_utils.exec(`echo access_key = ${access_key.unwrap()} >> ${CEPH_TEST.test_dir}${CEPH_TEST.ceph_config}`);
91-
await os_utils.exec(`echo secret_key = ${secret_key.unwrap()} >> ${CEPH_TEST.test_dir}${CEPH_TEST.ceph_config}`);
92-
9390
const { access_key: access_key_tenant, secret_key: secret_key_tenant } = ceph_account_tenant.access_keys[0];
91+
9492
if (os_utils.IS_MAC) {
9593
await os_utils.exec(`sed -i "" "s|tenant_access_key|${access_key_tenant.unwrap()}|g" ${CEPH_TEST.test_dir}${CEPH_TEST.ceph_config}`);
9694
await os_utils.exec(`sed -i "" "s|tenant_secret_key|${secret_key_tenant.unwrap()}|g" ${CEPH_TEST.test_dir}${CEPH_TEST.ceph_config}`);
95+
await os_utils.exec(`sed -i "" "s|s3_access_key|${access_key.unwrap()}|g" ${CEPH_TEST.test_dir}${CEPH_TEST.ceph_config}`);
96+
await os_utils.exec(`sed -i "" "s|s3_secret_key|${secret_key.unwrap()}|g" ${CEPH_TEST.test_dir}${CEPH_TEST.ceph_config}`);
9797

9898
} else {
9999
await os_utils.exec(`sed -i -e 's:tenant_access_key:${access_key_tenant.unwrap()}:g' ${CEPH_TEST.test_dir}${CEPH_TEST.ceph_config}`);

src/test/external_tests/ceph_s3_tests/test_ceph_s3_deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DIRECTORY="s3-tests"
1717
CEPH_LINK="https://github.com/ceph/s3-tests.git"
1818
# using a fixed version (commit) of ceph tests to avoid sudden changes.
1919
# we should retest and update the version once in a while
20-
CEPH_TESTS_VERSION=88fd8670072cf4b7559908419c67cfaaca02c794
20+
CEPH_TESTS_VERSION=aafacab2017bec1dd1ce3159105455bb7e9447b1
2121
if [ ! -d $DIRECTORY ]; then
2222
echo "Downloading Ceph S3 Tests..."
2323
git clone $CEPH_LINK

0 commit comments

Comments
 (0)