Skip to content

Commit fd2b257

Browse files
authored
Run litmus CI for both owncloud and ocis storage (#1166)
1 parent 8c2f6c8 commit fd2b257

File tree

5 files changed

+186
-10
lines changed

5 files changed

+186
-10
lines changed

.drone.yml

+101-10
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ steps:
227227
---
228228
kind: pipeline
229229
type: docker
230-
name: litmus-oc-old-webdav
230+
name: litmus-owncloud-old-webdav
231231

232232
platform:
233233
os: linux
@@ -252,8 +252,8 @@ steps:
252252
- cd /drone/src/tests/oc-integration-tests/drone/
253253
- /drone/src/cmd/revad/revad -c frontend.toml &
254254
- /drone/src/cmd/revad/revad -c gateway.toml &
255-
- /drone/src/cmd/revad/revad -c storage-home.toml &
256-
- /drone/src/cmd/revad/revad -c storage-oc.toml &
255+
- /drone/src/cmd/revad/revad -c storage-home-owncloud.toml &
256+
- /drone/src/cmd/revad/revad -c storage-oc-owncloud.toml &
257257
- /drone/src/cmd/revad/revad -c users.toml
258258

259259
- name: sleep-for-revad-start
@@ -272,7 +272,7 @@ steps:
272272
---
273273
kind: pipeline
274274
type: docker
275-
name: litmus-oc-new-webdav
275+
name: litmus-ocis-old-webdav
276276

277277
platform:
278278
os: linux
@@ -297,8 +297,99 @@ steps:
297297
- cd /drone/src/tests/oc-integration-tests/drone/
298298
- /drone/src/cmd/revad/revad -c frontend.toml &
299299
- /drone/src/cmd/revad/revad -c gateway.toml &
300-
- /drone/src/cmd/revad/revad -c storage-home.toml &
301-
- /drone/src/cmd/revad/revad -c storage-oc.toml &
300+
- /drone/src/cmd/revad/revad -c storage-home-ocis.toml &
301+
- /drone/src/cmd/revad/revad -c storage-oc-ocis.toml &
302+
- /drone/src/cmd/revad/revad -c users.toml
303+
304+
- name: sleep-for-revad-start
305+
image: golang:1.13
306+
commands:
307+
- sleep 5
308+
309+
- name: litmus-oc-old-webdav
310+
image: owncloud/litmus:latest
311+
environment:
312+
LITMUS_URL: http://revad-services:20080/remote.php/webdav
313+
LITMUS_USERNAME: einstein
314+
LITMUS_PASSWORD: relativity
315+
TESTS: basic http copymove props
316+
317+
---
318+
kind: pipeline
319+
type: docker
320+
name: litmus-owncloud-new-webdav
321+
322+
platform:
323+
os: linux
324+
arch: amd64
325+
326+
trigger:
327+
event:
328+
include:
329+
- pull_request
330+
- tag
331+
332+
steps:
333+
- name: build
334+
image: golang:1.13
335+
commands:
336+
- make build-ci
337+
338+
- name: revad-services
339+
image: golang:1.13
340+
detach: true
341+
commands:
342+
- cd /drone/src/tests/oc-integration-tests/drone/
343+
- /drone/src/cmd/revad/revad -c frontend.toml &
344+
- /drone/src/cmd/revad/revad -c gateway.toml &
345+
- /drone/src/cmd/revad/revad -c storage-home-owncloud.toml &
346+
- /drone/src/cmd/revad/revad -c storage-oc-owncloud.toml &
347+
- /drone/src/cmd/revad/revad -c users.toml
348+
349+
- name: sleep-for-revad-start
350+
image: golang:1.13
351+
commands:
352+
- sleep 5
353+
354+
- name: litmus-oc-new-webdav
355+
image: owncloud/litmus:latest
356+
environment:
357+
# UUID is einstein user, see https://github.com/owncloud/ocis-accounts/blob/8de0530f31ed5ffb0bbb7f7f3471f87f429cb2ea/pkg/service/v0/service.go#L45
358+
LITMUS_URL: http://revad-services:20080/remote.php/dav/files/4c510ada-c86b-4815-8820-42cdf82c3d51
359+
LITMUS_USERNAME: einstein
360+
LITMUS_PASSWORD: relativity
361+
TESTS: basic http copymove props
362+
363+
---
364+
kind: pipeline
365+
type: docker
366+
name: litmus-ocis-new-webdav
367+
368+
platform:
369+
os: linux
370+
arch: amd64
371+
372+
trigger:
373+
event:
374+
include:
375+
- pull_request
376+
- tag
377+
378+
steps:
379+
- name: build
380+
image: golang:1.13
381+
commands:
382+
- make build-ci
383+
384+
- name: revad-services
385+
image: golang:1.13
386+
detach: true
387+
commands:
388+
- cd /drone/src/tests/oc-integration-tests/drone/
389+
- /drone/src/cmd/revad/revad -c frontend.toml &
390+
- /drone/src/cmd/revad/revad -c gateway.toml &
391+
- /drone/src/cmd/revad/revad -c storage-home-ocis.toml &
392+
- /drone/src/cmd/revad/revad -c storage-oc-ocis.toml &
302393
- /drone/src/cmd/revad/revad -c users.toml
303394

304395
- name: sleep-for-revad-start
@@ -344,8 +435,8 @@ steps:
344435
- /drone/src/cmd/revad/revad -c frontend.toml &
345436
- /drone/src/cmd/revad/revad -c gateway.toml &
346437
- /drone/src/cmd/revad/revad -c shares.toml &
347-
- /drone/src/cmd/revad/revad -c storage-home.toml &
348-
- /drone/src/cmd/revad/revad -c storage-oc.toml &
438+
- /drone/src/cmd/revad/revad -c storage-home-owncloud.toml &
439+
- /drone/src/cmd/revad/revad -c storage-oc-owncloud.toml &
349440
- /drone/src/cmd/revad/revad -c storage-publiclink.toml &
350441
- /drone/src/cmd/revad/revad -c ldap-users.toml
351442

@@ -418,8 +509,8 @@ steps:
418509
- /drone/src/cmd/revad/revad -c frontend.toml &
419510
- /drone/src/cmd/revad/revad -c gateway.toml &
420511
- /drone/src/cmd/revad/revad -c shares.toml &
421-
- /drone/src/cmd/revad/revad -c storage-home.toml &
422-
- /drone/src/cmd/revad/revad -c storage-oc.toml &
512+
- /drone/src/cmd/revad/revad -c storage-home-owncloud.toml &
513+
- /drone/src/cmd/revad/revad -c storage-oc-owncloud.toml &
423514
- /drone/src/cmd/revad/revad -c storage-publiclink.toml &
424515
- /drone/src/cmd/revad/revad -c ldap-users.toml
425516

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This storage-home.toml config file will start a reva service that:
2+
[shared]
3+
jwt_secret = "Pive-Fumkiu4"
4+
gatewaysvc = "localhost:19000"
5+
6+
# - authenticates grpc storage provider requests using the internal jwt token
7+
# - authenticates http upload and download requests requests using basic auth
8+
# - serves the home storage provider on grpc port 12000
9+
# - serves http dataprovider for this storage on port 12001
10+
# - /data - dataprovider: file up and download
11+
#
12+
# The home storage will inject the username into the path and jail users into
13+
# their home directory
14+
15+
[grpc]
16+
address = "0.0.0.0:12000"
17+
18+
# This is a storage provider that grants direct access to the wrapped storage
19+
# TODO same storage id as the /oc/ storage provider
20+
# if we have an id, we can directly go to that storage, no need to wrap paths
21+
# we have a locally running dataprovider
22+
# this is where clients can find it
23+
# the context path wrapper reads tho username from the context and prefixes the relative storage path with it
24+
[grpc.services.storageprovider]
25+
driver = "ocis"
26+
mount_path = "/home"
27+
mount_id = "123e4567-e89b-12d3-a456-426655440000"
28+
expose_data_server = true
29+
data_server_url = "http://localhost:12001/data"
30+
enable_home_creation = true
31+
32+
[grpc.services.storageprovider.drivers.ocis]
33+
datadirectory = "/drone/src/tmp/reva/data"
34+
enable_home = true
35+
redis = "redis:6379"
36+
37+
38+
[http]
39+
address = "0.0.0.0:12001"
40+
41+
[http.services.dataprovider]
42+
driver = "ocis"
43+
temp_folder = "/drone/src/tmp/reva/tmp"
44+
45+
[http.services.dataprovider.drivers.ocis]
46+
datadirectory = "/drone/src/tmp/reva/data"
47+
enable_home = true
48+
redis = "redis:6379"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This storage.toml config file will start a reva service that:
2+
[shared]
3+
jwt_secret = "Pive-Fumkiu4"
4+
gatewaysvc = "localhost:19000"
5+
6+
# - authenticates grpc storage provider requests using the internal jwt token
7+
# - authenticates http upload and download requests requests using basic auth
8+
# - serves the storage provider on grpc port 11000
9+
# - serves http dataprovider for this storage on port 11001
10+
# - /data - dataprovider: file up and download
11+
[grpc]
12+
address = "0.0.0.0:11000"
13+
14+
# This is a storage provider that grants direct access to the wrapped storage
15+
# we have a locally running dataprovider
16+
[grpc.services.storageprovider]
17+
driver = "ocis"
18+
mount_path = "/oc"
19+
mount_id = "123e4567-e89b-12d3-a456-426655440000"
20+
expose_data_server = true
21+
data_server_url = "http://localhost:11001/data"
22+
23+
[grpc.services.storageprovider.drivers.ocis]
24+
datadirectory = "/drone/src/tmp/reva/data"
25+
redis = "redis:6379"
26+
userprovidersvc = "localhost:18000"
27+
28+
[http]
29+
address = "0.0.0.0:11001"
30+
31+
[http.services.dataprovider]
32+
driver = "ocis"
33+
temp_folder = "/drone/src/tmp/reva/tmp"
34+
35+
[http.services.dataprovider.drivers.ocis]
36+
datadirectory = "/drone/src/tmp/reva/data"
37+
redis = "redis:6379"

0 commit comments

Comments
 (0)