From 3b0087f35a00f9e0b9d360f6296b9bfad1f69f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 4 Jan 2021 16:20:49 +0100 Subject: [PATCH] Try to debug psql tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- .github/workflows/integration.yml | 2 ++ tests/integration/features/bootstrap/RequestTrait.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 7a261a428..8ad2ece18 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -81,6 +81,8 @@ jobs: fi mkdir data ./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin + cat config/config.php + ./occ user:list ./occ app:enable --force ${{ env.APP_NAME }} php -S localhost:8080 & diff --git a/tests/integration/features/bootstrap/RequestTrait.php b/tests/integration/features/bootstrap/RequestTrait.php index 726eb04fe..c6fc1f978 100644 --- a/tests/integration/features/bootstrap/RequestTrait.php +++ b/tests/integration/features/bootstrap/RequestTrait.php @@ -18,7 +18,7 @@ trait RequestTrait { public function __construct($baseUrl, $admin = 'admin', $regular_user_password = '123456') { $this->baseUrl = $baseUrl; - $this->adminUser = $admin; + $this->adminUser = $admin === 'admin' ? ['admin', 'admin'] : $admin; $this->regularUser = $regular_user_password; }