Skip to content

Commit a4ce78f

Browse files
wip
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent e7093a5 commit a4ce78f

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.drone.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ services:
8282
- su www-data -c "git clone -b $SERVER_VERSION https://github.com/nextcloud/password_policy.git /var/www/html/apps/password_policy/"
8383
- su www-data -c "php /var/www/html/occ app:enable password_policy"
8484
- su www-data -c "git clone -b $SERVER_VERSION https://github.com/nextcloud/external.git /var/www/html/apps/external/"
85-
- su www-data -c 'php /var/www/html/occ config:app:set external sites --value="{\"1\":{\"id\":1,\"name
86-
\":\"Nextcloud\",\"url\":\"https:\/\/www.nextcloud.com\",\"lang\":\"\",\"type\":\"link\",\"device\":\"\",
87-
\"icon\":\"external.svg\",\"groups\":[],\"redirect\":false},\"2\":{\"id\":2,\"name\":\"Forum\",\"url
88-
\":\"https:\/\/help.nextcloud.com\",\"lang\":\"\",\"type\":\"link\",\"device\":\"\",\"icon
89-
\":\"external.svg\",\"groups\":[],\"redirect\":false}}"'
85+
- su www-data -c 'php /var/www/html/occ config:app:set external sites --value="{\"1\":{\"id\":1,\"name\":\"Nextcloud\",\"url\":\"https:\/\/www.nextcloud.com\",\"lang\":\"\",\"type\":\"link\",\"device\":\"\",\"icon\":\"external.svg\",\"groups\":[],\"redirect\":false},\"2\":{\"id\":2,\"name\":\"Forum\",\"url\":\"https:\/\/help.nextcloud.com\",\"lang\":\"\",\"type\":\"link\",\"device\":\"\",\"icon\":\"external.svg\",\"groups\":[],\"redirect\":false}}"'
9086
- su www-data -c "php /var/www/html/occ app:enable external"
9187
- /run.sh
9288

library/src/androidTest/java/com/owncloud/android/FileIT.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import com.owncloud.android.lib.resources.shares.OCShare;
3838
import com.owncloud.android.lib.resources.shares.ShareType;
3939
import com.owncloud.android.lib.resources.shares.ShareeUser;
40+
import com.owncloud.android.lib.resources.status.OwnCloudVersion;
4041

4142
import org.junit.Test;
4243

@@ -162,6 +163,8 @@ public void testShareViaLinkSharees() {
162163

163164
@Test
164165
public void testShareToGroupSharees() {
166+
onlyOnMin(OwnCloudVersion.nextcloud_17);
167+
165168
// create & verify folder
166169
String path = "/testFolder/";
167170
assertTrue(new CreateFolderRemoteOperation(path, true).execute(client).isSuccess());
@@ -171,7 +174,7 @@ public void testShareToGroupSharees() {
171174

172175
// share folder
173176
assertTrue(new CreateShareRemoteOperation(path,
174-
ShareType.GROUP,
177+
ShareType.GROUP,
175178
"users",
176179
false,
177180
"",
@@ -197,6 +200,8 @@ public void testShareToGroupSharees() {
197200

198201
@Test
199202
public void testOneSharees() {
203+
onlyOnMin(OwnCloudVersion.nextcloud_17);
204+
200205
// create & verify folder
201206
String path = "/testFolder/";
202207
assertTrue(new CreateFolderRemoteOperation(path, true).execute(client).isSuccess());
@@ -206,7 +211,7 @@ public void testOneSharees() {
206211

207212
// share folder
208213
assertTrue(new CreateShareRemoteOperation(path,
209-
ShareType.USER,
214+
ShareType.USER,
210215
"user1",
211216
false,
212217
"",
@@ -232,6 +237,8 @@ public void testOneSharees() {
232237

233238
@Test
234239
public void testTwoShareesOnParent() {
240+
onlyOnMin(OwnCloudVersion.nextcloud_17);
241+
235242
// create & verify folder
236243
String path = "/testFolder/";
237244
assertTrue(new CreateFolderRemoteOperation(path, true).execute(client).isSuccess());
@@ -280,6 +287,8 @@ public void testTwoShareesOnParent() {
280287

281288
@Test
282289
public void testTwoSharees() {
290+
onlyOnMin(OwnCloudVersion.nextcloud_17);
291+
283292
// create & verify folder
284293
String path = "/testFolder/";
285294
assertTrue(new CreateFolderRemoteOperation(path, true).execute(client).isSuccess());

0 commit comments

Comments
 (0)