Skip to content

Commit ed270bb

Browse files
author
Chris Coutinho
committed
Add OCS-APIRequest: true to tables app check
1 parent 56e5298 commit ed270bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Verify required apps are installed and ready
5353
run: |
5454
echo "Checking if required Nextcloud apps are installed and ready..."
55-
55+
5656
# Check Notes app
5757
echo "Checking Notes app..."
5858
max_attempts=30
@@ -67,11 +67,11 @@ jobs:
6767
sleep 3
6868
done
6969
echo "Notes app is ready."
70-
70+
7171
# Check Tables app
7272
echo "Checking Tables app..."
7373
attempt=0
74-
until curl -u admin:admin -s -w "%{http_code}\n" -o /dev/null http://localhost:8080/ocs/v2.php/apps/tables/api/2/tables | grep -q "200"; do
74+
until curl -u admin:admin -H 'OCS-APIRequest: true' -s -w "%{http_code}\n" -o /dev/null http://localhost:8080/ocs/v2.php/apps/tables/api/2/tables | grep -q "200"; do
7575
attempt=$((attempt + 1))
7676
if [ $attempt -ge $max_attempts ]; then
7777
echo "Tables app not ready after $max_attempts attempts."
@@ -81,7 +81,7 @@ jobs:
8181
sleep 3
8282
done
8383
echo "Tables app is ready."
84-
84+
8585
# Check Calendar app (CalDAV endpoint)
8686
echo "Checking Calendar app..."
8787
attempt=0
@@ -95,7 +95,7 @@ jobs:
9595
sleep 3
9696
done
9797
echo "Calendar app is ready."
98-
98+
9999
echo "All required apps are installed and ready!"
100100
101101
# Add subsequent steps here, e.g., running tests

0 commit comments

Comments
 (0)