Skip to content

Commit 03346dd

Browse files
authored
[tests-only] Implement .drone.env (#1567)
1 parent 1628c9c commit 03346dd

5 files changed

+20
-22
lines changed

.drone.env

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# The test runner source for API tests
2+
CORE_COMMITID=698a34c25001aa5b640cd3bbb24fdc376b110da2
3+
CORE_BRANCH=master

.drone.star

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ def lintStep():
3636
def cloneOc10TestReposStep():
3737
return {
3838
"name": "clone-oC10-test-repos",
39-
"image": "registry.cern.ch/docker.io/owncloudci/php:7.4",
39+
"image": "registry.cern.ch/docker.io/owncloudci/alpine:latest",
4040
"commands": [
41+
"source /drone/src/.drone.env",
4142
"git clone -b master --depth=1 https://github.com/owncloud/testing.git /drone/src/tmp/testing",
42-
"git clone -b master --single-branch --no-tags https://github.com/owncloud/core.git /drone/src/tmp/testrunner",
43+
"git clone -b $CORE_BRANCH --single-branch --no-tags https://github.com/owncloud/core.git /drone/src/tmp/testrunner",
4344
"cd /drone/src/tmp/testrunner",
44-
"git checkout 60444e34b52b7c22ea817375947c9b60e42cd7da",
45+
"git checkout $CORE_COMMITID",
4546
],
4647
}
4748

tests/acceptance/expected-failures-on-OCIS-storage.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,11 @@ Basic file management like up and download, move, copy, properties, quota, trash
8686
- [apiTrashbin/trashbinRestore.feature:338](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiTrashbin/trashbinRestore.feature#L338)
8787
- [apiTrashbin/trashbinRestore.feature:339](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiTrashbin/trashbinRestore.feature#L339)
8888

89-
#### [requests to webdav URLs with an fileid containing an invalid storage_id result in error 500](https://github.com/owncloud/ocis/issues/772)
90-
- [apiVersions/fileVersions.feature:384](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L384)
91-
9289
#### [requesting propfind with invalid fileid gives 502 error](https://github.com/owncloud/ocis/issues/771)
9390
- [apiVersions/fileVersions.feature:395](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L395)
9491
- [apiVersions/fileVersions.feature:396](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L396)
9592
- [apiVersions/fileVersions.feature:397](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L397)
93+
- [apiVersions/fileVersions.feature:398](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L398)
9694

9795
#### [Implement Versions Feature for ocis storage](https://github.com/owncloud/product/issues/210)
9896
- [apiWebdavEtagPropagation2/restoreVersion.feature:10](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiWebdavEtagPropagation2/restoreVersion.feature#L10)
@@ -125,9 +123,9 @@ Basic file management like up and download, move, copy, properties, quota, trash
125123

126124
#### [Version count is 1 more than on oC10](https://github.com/owncloud/ocis/issues/1633)
127125
- [apiVersions/fileVersions.feature:373](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L373)
128-
- [apiVersions/fileVersions.feature:408](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L408)
129-
- [apiVersions/fileVersions.feature:419](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L419)
130-
- [apiVersions/fileVersions.feature:425](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L425)
126+
- [apiVersions/fileVersions.feature:409](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L409)
127+
- [apiVersions/fileVersions.feature:420](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L420)
128+
- [apiVersions/fileVersions.feature:426](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L426)
131129

132130
#### [PUT request with missing parent must return status code 409](https://github.com/owncloud/ocis/issues/824)
133131
- [apiWebdavUpload1/uploadFile.feature:112](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiWebdavUpload1/uploadFile.feature#L112)

tests/acceptance/expected-failures-on-OWNCLOUD-storage.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,11 @@ The following scenarios fail on OWNCLOUD storage but not on OCIS storage:
9999
- [apiTrashbin/trashbinRestore.feature:338](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiTrashbin/trashbinRestore.feature#L338)
100100
- [apiTrashbin/trashbinRestore.feature:339](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiTrashbin/trashbinRestore.feature#L339)
101101

102-
#### [requests to webdav URLs with an fileid containing an invalid storage_id result in error 500](https://github.com/owncloud/ocis/issues/772)
103-
- [apiVersions/fileVersions.feature:384](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L384)
104-
105102
#### [requesting propfind with invalid fileid gives 502 error](https://github.com/owncloud/ocis/issues/771)
106103
- [apiVersions/fileVersions.feature:395](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L395)
107104
- [apiVersions/fileVersions.feature:396](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L396)
108105
- [apiVersions/fileVersions.feature:397](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L397)
106+
- [apiVersions/fileVersions.feature:398](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L398)
109107

110108
#### [uploading with old-chunking does not work](https://github.com/owncloud/ocis/issues/1343)
111109
#### [remote.php/dav/uploads endpoint does not exist](https://github.com/owncloud/ocis/issues/1321)
@@ -139,12 +137,12 @@ The following scenarios fail on OWNCLOUD storage but not on OCIS storage:
139137

140138
#### [Version count is 1 more than on oC10](https://github.com/owncloud/ocis/issues/1633)
141139
- [apiVersions/fileVersions.feature:373](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L373)
142-
- [apiVersions/fileVersions.feature:408](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L408)
143-
- [apiVersions/fileVersions.feature:419](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L419)
144-
- [apiVersions/fileVersions.feature:425](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L425)
140+
- [apiVersions/fileVersions.feature:409](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L409)
141+
- [apiVersions/fileVersions.feature:420](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L420)
142+
- [apiVersions/fileVersions.feature:426](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L426)
145143

146144
#### [Version cannot be restored when file has been renamed](https://github.com/owncloud/ocis/issues/1633)
147-
- [apiVersions/fileVersions.feature:399](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L399)
145+
- [apiVersions/fileVersions.feature:400](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L400)
148146

149147
#### [PUT request with missing parent must return status code 409](https://github.com/owncloud/ocis/issues/824)
150148
- [apiWebdavUpload1/uploadFile.feature:112](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiWebdavUpload1/uploadFile.feature#L112)

tests/acceptance/expected-failures-on-S3NG-storage.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,11 @@ Basic file management like up and download, move, copy, properties, quota, trash
8686
- [apiTrashbin/trashbinRestore.feature:338](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiTrashbin/trashbinRestore.feature#L338)
8787
- [apiTrashbin/trashbinRestore.feature:339](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiTrashbin/trashbinRestore.feature#L339)
8888

89-
#### [requests to webdav URLs with an fileid containing an invalid storage_id result in error 500](https://github.com/owncloud/ocis/issues/772)
90-
- [apiVersions/fileVersions.feature:384](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L384)
91-
9289
#### [requesting propfind with invalid fileid gives 502 error](https://github.com/owncloud/ocis/issues/771)
9390
- [apiVersions/fileVersions.feature:395](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L395)
9491
- [apiVersions/fileVersions.feature:396](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L396)
9592
- [apiVersions/fileVersions.feature:397](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L397)
93+
- [apiVersions/fileVersions.feature:398](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L398)
9694

9795
#### [Implement Versions Feature for ocis storage](https://github.com/owncloud/product/issues/210)
9896
- [apiWebdavEtagPropagation2/restoreVersion.feature:10](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiWebdavEtagPropagation2/restoreVersion.feature#L10)
@@ -125,9 +123,9 @@ Basic file management like up and download, move, copy, properties, quota, trash
125123

126124
#### [Version count is 1 more than on oC10](https://github.com/owncloud/ocis/issues/1633)
127125
- [apiVersions/fileVersions.feature:373](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L373)
128-
- [apiVersions/fileVersions.feature:408](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L408)
129-
- [apiVersions/fileVersions.feature:419](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L419)
130-
- [apiVersions/fileVersions.feature:425](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L425)
126+
- [apiVersions/fileVersions.feature:409](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L409)
127+
- [apiVersions/fileVersions.feature:420](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L420)
128+
- [apiVersions/fileVersions.feature:426](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiVersions/fileVersions.feature#L426)
131129

132130
#### [PUT request with missing parent must return status code 409](https://github.com/owncloud/ocis/issues/824)
133131
- [apiWebdavUpload1/uploadFile.feature:112](https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiWebdavUpload1/uploadFile.feature#L112)

0 commit comments

Comments
 (0)