File tree Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 1+ ../ ../ ../ docker - testing / iinit .py
Original file line number Diff line number Diff line change 66. $BATS_TEST_DIRNAME /test_support_functions
77
88setup () {
9-
10- iinit_as_rods
11-
12- setup_pam_login_for_user " test123" alice
13-
14- cat > ~/test_get_home_coll.py << -EOF
9+ [ -f /tmp/once ] || {
10+ rm -fr ~ /.irods
11+ $BATS_TEST_DIRNAME /iinit.py host localhost \
12+ port 1247 \
13+ zone tempZone \
14+ user rods \
15+ password rods \
16+ # # Because iRODS 5+ negotiates for SSL automatically:
17+ CLIENT_JSON=~ /.irods/irods_environment.json
18+ jq ' .["irods_client_server_policy"]="CS_NEG_REFUSE"' > $CLIENT_JSON .$$ < $CLIENT_JSON
19+ mv $CLIENT_JSON .$$ $CLIENT_JSON
20+
21+ setup_pam_login_for_user " test123" alice
22+
23+ cat > ~/test_get_home_coll.py << -EOF
1524 import irods.test.helpers as h
1625 ses = h.make_session()
1726 home_coll = h.home_collection(ses)
1827 exit(0 if ses.collections.get(home_coll).path == home_coll
1928 and ses.pool.account._original_authentication_scheme.lower() in ('pam','pam_password')
2029 else 1)
2130 EOF
22- }
23-
24- teardown () {
25- iinit_as_rods
26- finalize_pam_login_for_user alice
31+ }
32+ touch /tmp/once
2733}
2834
2935prc_test ()
You can’t perform that action at this time.
0 commit comments