Skip to content

Commit aade4e6

Browse files
committed
test: use non-admin user
Signed-off-by: Jana Peper <[email protected]>
1 parent 0cf476f commit aade4e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/integration_test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ jobs:
125125
./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-host=127.0.0.1 --database-port=$PGSQL_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
126126
composer run serve &
127127
128+
- name: Create user
129+
run: |
130+
export OC_PASS='alice'
131+
./occ user:add --password-from-env alice
132+
128133
- name: Checkout app_api
129134
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
130135
with:
@@ -190,7 +195,7 @@ jobs:
190195
191196
- name: Run task
192197
env:
193-
CREDS: "admin:password"
198+
CREDS: "alice:alice"
194199
run: |
195200
sleep 300
196201
TASK=$(curl -X POST -u "$CREDS" -H "oCS-APIRequest: true" -H "Content-type: application/json" http://localhost:8080/ocs/v2.php/taskprocessing/schedule?format=json --data-raw '{"input": {"input": "What are the coordinates of Berlin, Germany?", "confirmation":1, "conversation_token": ""},"type":"core:contextagent:interaction", "appId": "test", "customId": ""}')

0 commit comments

Comments
 (0)