Skip to content

Commit 3eab4ec

Browse files
authored
Sharing API + tests (#75)
Pending and deleted shares, do not work on my local setup, so no `True` tests for them currently. --------- Signed-off-by: Alexander Piskun <[email protected]>
1 parent d9f6b97 commit 3eab4ec

File tree

4 files changed

+486
-27
lines changed

4 files changed

+486
-27
lines changed

.github/workflows/analysis-coverage.yml

Lines changed: 98 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
strategy:
4646
fail-fast: false
4747
matrix:
48-
nextcloud: [ "26.0.4" ]
48+
nextcloud: [ "26.0.5" ]
4949
python: [ "3.9" ]
5050
php-version: [ "8.1" ]
5151
include:
@@ -78,6 +78,14 @@ jobs:
7878
with:
7979
python-version: ${{ matrix.python }}
8080

81+
- name: Stable26
82+
if: ${{ startsWith(matrix.nextcloud, '26.') }}
83+
run: echo "NC_BRANCH_NAME=stable26" >> $GITHUB_ENV
84+
85+
- name: Stable27
86+
if: ${{ startsWith(matrix.nextcloud, '27.') }}
87+
run: echo "NC_BRANCH_NAME=stable27" >> $GITHUB_ENV
88+
8189
- name: cache-nextcloud
8290
id: nextcloud_setup
8391
uses: actions/cache@v3
@@ -133,6 +141,23 @@ jobs:
133141
kill -15 $(cat /tmp/_install.pid)
134142
timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
135143
144+
- name: Checkout Talk
145+
uses: actions/checkout@v3
146+
with:
147+
path: apps/spreed
148+
repository: nextcloud/spreed
149+
ref: ${{ env.NC_BRANCH_NAME }}
150+
151+
- name: Install Talk
152+
working-directory: apps/spreed
153+
run: |
154+
make dev-setup
155+
make build-js
156+
157+
- name: Enable Talk
158+
if: ${{ !startsWith(matrix.nextcloud, '27.') }} # for some reason, currently Talk fails with 27.0.2
159+
run: php occ app:enable spreed
160+
136161
- name: Generate coverage report
137162
working-directory: nc_py_api
138163
run: coverage run --data-file=.coverage.ci -m pytest && coverage combine && coverage xml && coverage html
@@ -169,7 +194,7 @@ jobs:
169194
strategy:
170195
fail-fast: false
171196
matrix:
172-
nextcloud: [ "26.0.4" ]
197+
nextcloud: [ "26.0.5" ]
173198
python: [ "3.11" ]
174199
php-version: [ "8.1" ]
175200
include:
@@ -205,6 +230,14 @@ jobs:
205230
with:
206231
python-version: ${{ matrix.python }}
207232

233+
- name: Stable26
234+
if: ${{ startsWith(matrix.nextcloud, '26.') }}
235+
run: echo "NC_BRANCH_NAME=stable26" >> $GITHUB_ENV
236+
237+
- name: Stable27
238+
if: ${{ startsWith(matrix.nextcloud, '27.') }}
239+
run: echo "NC_BRANCH_NAME=stable27" >> $GITHUB_ENV
240+
208241
- name: cache-nextcloud
209242
id: nextcloud_setup
210243
uses: actions/cache@v3
@@ -262,6 +295,23 @@ jobs:
262295
kill -15 $(cat /tmp/_install.pid)
263296
timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
264297
298+
- name: Checkout Talk
299+
uses: actions/checkout@v3
300+
with:
301+
path: apps/spreed
302+
repository: nextcloud/spreed
303+
ref: ${{ env.NC_BRANCH_NAME }}
304+
305+
- name: Install Talk
306+
working-directory: apps/spreed
307+
run: |
308+
make dev-setup
309+
make build-js
310+
311+
- name: Enable Talk
312+
if: ${{ !startsWith(matrix.nextcloud, '27.') }} # for some reason, currently Talk fails with 27.0.2
313+
run: php occ app:enable spreed
314+
265315
- name: Generate coverage report
266316
working-directory: nc_py_api
267317
run: coverage run --data-file=.coverage.ci -m pytest && coverage combine && coverage xml && coverage html
@@ -504,6 +554,21 @@ jobs:
504554
kill -15 $(cat /tmp/_install.pid)
505555
timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
506556
557+
- name: Checkout Talk
558+
uses: actions/checkout@v3
559+
with:
560+
path: apps/spreed
561+
repository: nextcloud/spreed
562+
563+
- name: Install Talk
564+
working-directory: apps/spreed
565+
run: |
566+
make dev-setup
567+
make build-js
568+
569+
- name: Enable Talk
570+
run: php occ app:enable spreed
571+
507572
- name: Generate coverage report
508573
working-directory: nc_py_api
509574
run: coverage run --data-file=.coverage.ci -m pytest && coverage combine && coverage xml && coverage html
@@ -603,6 +668,21 @@ jobs:
603668
working-directory: nc_py_api
604669
run: python3 -m pip -v install . pytest coverage pillow
605670

671+
- name: Checkout Talk
672+
uses: actions/checkout@v3
673+
with:
674+
path: apps/spreed
675+
repository: nextcloud/spreed
676+
677+
- name: Install Talk
678+
working-directory: apps/spreed
679+
run: |
680+
make dev-setup
681+
make build-js
682+
683+
- name: Enable Talk
684+
run: php occ app:enable spreed
685+
606686
- name: Generate coverage report
607687
working-directory: nc_py_api
608688
run: coverage run -m pytest && coverage xml && coverage html
@@ -719,6 +799,22 @@ jobs:
719799
kill -15 $(cat /tmp/_install.pid)
720800
timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
721801
802+
- name: Checkout Talk
803+
uses: actions/checkout@v3
804+
with:
805+
path: apps/spreed
806+
repository: nextcloud/spreed
807+
ref: ${{ matrix.nextcloud }}
808+
809+
- name: Install Talk
810+
working-directory: apps/spreed
811+
run: |
812+
make dev-setup
813+
make build-js
814+
815+
- name: Enable Talk
816+
run: php occ app:enable spreed
817+
722818
- name: Generate coverage report
723819
working-directory: nc_py_api
724820
run: coverage run --data-file=.coverage.ci -m pytest && coverage combine && coverage xml && coverage html

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
## [0.0.29 - 2023-08-14]
66

7+
### Added
8+
9+
- Finished `Share` API.
10+
711
### Fixed
812

913
- `options` error when setting timeouts with the `.env` file.
14+
- ShareAPI.create wrong handling of `share_with` parameter.
1015

1116
## [0.0.28 - 2023-08-11]
1217

0 commit comments

Comments
 (0)