File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
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 @@ -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,9 @@ 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 ('mc alias set myminio/ http://fakeservices.datajoint.io datajoint datajoint' )
113
+
111
114
# Add the policy and apply it to the user
112
115
os .system ('mc admin policy add myminio test /tmp/policy.json' )
113
116
os .system ('mc admin policy set myminio test user=jeffjeff' )
@@ -133,7 +136,7 @@ def test_remove_object_exception():
133
136
schema .external ['share' ].s3 .client = old_client
134
137
schema .external ['share' ].delete (delete_external_files = True )
135
138
os .remove ("/tmp/policy.json" )
136
-
139
+ os . system ( 'mc alias remove myminio/' )
137
140
# Raise the error we want if the error matches the expected uuid
138
141
if str (error_list [0 ][0 ]) == str (uuid_from_buffer (pack (test [1 ]))):
139
142
raise error_list [0 ][2 ]
You can’t perform that action at this time.
0 commit comments