Merge pull request #52774 from nextcloud/feat/oracle-setup-cypres

This commit is contained in:
John Molakvoæ 2025-05-12 19:41:31 +02:00 committed by GitHub
commit 0eb530ecde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 35 additions and 0 deletions

View file

@ -182,6 +182,7 @@ export const applyChangesToNextcloud = async function() {
'./ocs',
'./ocs-provider',
'./resources',
'./tests',
'./console.php',
'./cron.php',
'./index.php',

View file

@ -85,6 +85,26 @@ describe('Can install Nextcloud', { testIsolation: true, retries: 0 }, () => {
sharedSetup()
})
it('Oracle', () => {
cy.runCommand('cp /var/www/html/tests/databases-all-config.php /var/www/html/config/config.php')
cy.visit('/')
cy.get('[data-cy-setup-form]').should('be.visible')
cy.get('[data-cy-setup-form-field="adminlogin"]').should('be.visible')
cy.get('[data-cy-setup-form-field="adminpass"]').should('be.visible')
cy.get('[data-cy-setup-form-field="directory"]').should('have.value', '/var/www/html/data')
// Select the SQLite database
cy.get('[data-cy-setup-form-field="dbtype-oci"] input').check({ force: true })
// Fill in the DB form
cy.get('[data-cy-setup-form-field="dbuser"]').type('{selectAll}system')
cy.get('[data-cy-setup-form-field="dbpass"]').type('{selectAll}oracle')
cy.get('[data-cy-setup-form-field="dbname"]').type('{selectAll}FREE')
cy.get('[data-cy-setup-form-field="dbhost"]').type('{selectAll}oracle:1521')
sharedSetup()
})
})
/**

View file

@ -0,0 +1,14 @@
<?php
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
$CONFIG = [
'supportedDatabases' => [
'sqlite',
'mysql',
'pgsql',
'oci',
],
];