feat(cypress): add oracle to setup tests

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/52774/head
John Molakvoæ (skjnldsv) 5 months ago
parent a2eed985aa
commit 3500018b56
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
  1. 1
      cypress/dockerNode.ts
  2. 20
      cypress/e2e/core/setup.ts
  3. 14
      tests/databases-all-config.php

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

@ -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()
})
})
/**

@ -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',
],
];
Loading…
Cancel
Save