File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ services:
79
79
set -e
80
80
wget -P /home/dja/.local/bin/ https://dl.min.io/client/mc/release/linux-amd64/mc
81
81
chmod +x /home/dja/.local/bin/mc
82
- mc alias set myminio/ http://minio:9000 datajoint datajoint
83
82
pip install --user -r test_requirements.txt
84
83
pip install -e .
85
84
pip freeze | grep datajoint
Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ GID=1000
134
134
* Launch local terminal
135
135
* ` export ` environment variables in shell
136
136
* Add entry in ` /etc/hosts ` for ` 127.0.0.1 fakeservices.datajoint.io `
137
+ * Install [ minio client(mc)] ( https://min.io/download#/linux ) so that you can use it in terminal
138
+
137
139
138
140
139
141
### Launch Jupyter Notebook for Interactive Use
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ services:
84
84
set -e
85
85
wget -P /home/dja/.local/bin/ https://dl.min.io/client/mc/release/linux-amd64/mc
86
86
chmod +x /home/dja/.local/bin/mc
87
- mc alias set myminio/ http://minio:9000 datajoint datajoint
88
87
pip install --user nose nose-cov coveralls flake8 ptvsd
89
88
pip install -e .
90
89
pip freeze | grep datajoint
Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ def test_remove_object_exception():
108
108
with open ('/tmp/policy.json' , 'w' ) as f :
109
109
f .write (json .dumps (testpolicy ))
110
110
111
+ # Add alias myminio
112
+ os .system (
113
+ 'mc alias set myminio/ http://fakeservices.datajoint.io datajoint datajoint' )
114
+
111
115
# Add the policy and apply it to the user
112
116
os .system ('mc admin policy add myminio test /tmp/policy.json' )
113
117
os .system ('mc admin policy set myminio test user=jeffjeff' )
@@ -133,6 +137,7 @@ def test_remove_object_exception():
133
137
schema .external ['share' ].s3 .client = old_client
134
138
schema .external ['share' ].delete (delete_external_files = True )
135
139
os .remove ("/tmp/policy.json" )
140
+ os .system ('mc alias remove myminio/' )
136
141
137
142
# Raise the error we want if the error matches the expected uuid
138
143
if str (error_list [0 ][0 ]) == str (uuid_from_buffer (pack (test [1 ]))):
You can’t perform that action at this time.
0 commit comments