Skip to content

Commit ba2c55e

Browse files
authored
Merge pull request #257 from datajoint/stage-external-storage
Update reverse proxy and string test
2 parents c6f466c + 1d7f2d8 commit ba2c55e

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

LNX-docker-compose.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ services:
2929
interval: 1s
3030
fakeservices.datajoint.io:
3131
<<: *net
32-
image: raphaelguzman/nginx:v0.0.4
32+
image: raphaelguzman/nginx:v0.0.8
3333
environment:
3434
- ADD_db_TYPE=DATABASE
3535
- ADD_db_ENDPOINT=db:3306
3636
- ADD_minio_TYPE=MINIO
3737
- ADD_minio_ENDPOINT=minio:9000
38-
- ADD_minio_PREFIX=/
38+
- ADD_minio_PORT=80 # allow unencrypted connections
39+
- ADD_minio_PREFIX=/datajoint
40+
- ADD_browser_TYPE=MINIOADMIN
41+
- ADD_browser_ENDPOINT=minio:9000
42+
- ADD_browser_PORT=80 # allow unencrypted connections
3943
depends_on:
4044
db:
4145
condition: service_healthy
@@ -53,10 +57,10 @@ services:
5357
- DJ_TEST_HOST=fakeservices.datajoint.io
5458
- DJ_TEST_USER=datajoint
5559
- DJ_TEST_PASSWORD=datajoint
56-
- S3_ENDPOINT=fakeservices.datajoint.io:9000
60+
- S3_ENDPOINT=fakeservices.datajoint.io
5761
- S3_ACCESS_KEY=datajoint
5862
- S3_SECRET_KEY=datajoint
59-
- S3_BUCKET=datajoint-test
63+
- S3_BUCKET=datajoint.test
6064
image: raphaelguzman/matlab:${MATLAB_VERSION}-MIN
6165
depends_on:
6266
fakeservices.datajoint.io:

local-docker-compose.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,21 @@ services:
3434
interval: 1s
3535
fakeservices.datajoint.io:
3636
<<: *net
37-
image: raphaelguzman/nginx:v0.0.4
37+
image: raphaelguzman/nginx:v0.0.8
3838
environment:
3939
- ADD_db_TYPE=DATABASE
4040
- ADD_db_ENDPOINT=db:3306
4141
- ADD_minio_TYPE=MINIO
4242
- ADD_minio_ENDPOINT=minio:9000
43-
- ADD_minio_PREFIX=/
43+
- ADD_minio_PORT=80 # allow unencrypted connections
44+
- ADD_minio_PREFIX=/datajoint
45+
- ADD_browser_TYPE=MINIOADMIN
46+
- ADD_browser_ENDPOINT=minio:9000
47+
- ADD_browser_PORT=80 # allow unencrypted connections
4448
ports:
49+
- "80:80"
4550
- "443:443"
4651
- "3306:3306"
47-
- "9000:9000"
4852
depends_on:
4953
db:
5054
condition: service_healthy
@@ -59,10 +63,10 @@ services:
5963
- DJ_TEST_HOST=fakeservices.datajoint.io
6064
- DJ_TEST_USER=datajoint
6165
- DJ_TEST_PASSWORD=datajoint
62-
- S3_ENDPOINT=fakeservices.datajoint.io:9000
66+
- S3_ENDPOINT=fakeservices.datajoint.io
6367
- S3_ACCESS_KEY=datajoint
6468
- S3_SECRET_KEY=datajoint
65-
- S3_BUCKET=datajoint-test
69+
- S3_BUCKET=datajoint.test
6670
- MATLAB_USER
6771
- MATLAB_LICENSE
6872
- JUPYTER_PASSWORD=datajoint

tests/TestFetch.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function TestFetch_testVariousDatatypes(testCase)
155155

156156
insert(University.All, struct( ...
157157
'id', 2, ...
158-
'string', 'test', ...
158+
'string', 'lteachen', ...
159159
'date', '2019-12-17 13:38', ...
160160
'number', 3.213, ...
161161
'blob', [1, 2; 3, 4] ...
@@ -165,7 +165,7 @@ function TestFetch_testVariousDatatypes(testCase)
165165
res = q.fetch('*');
166166

167167
testCase.verifyEqual(res(1).id, 2);
168-
testCase.verifyEqual(res(1).string, 'test');
168+
testCase.verifyEqual(res(1).string, 'lteachen');
169169
testCase.verifyEqual(res(1).date, '2019-12-17 13:38:00');
170170
testCase.verifyEqual(res(1).number, 3.213);
171171
testCase.verifyEqual(res(1).blob, [1, 2; 3, 4]);

0 commit comments

Comments
 (0)