Skip to content

Commit 3500018

Browse files
committed
feat(cypress): add oracle to setup tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent a2eed98 commit 3500018

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

cypress/dockerNode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ export const applyChangesToNextcloud = async function() {
182182
'./ocs',
183183
'./ocs-provider',
184184
'./resources',
185+
'./tests',
185186
'./console.php',
186187
'./cron.php',
187188
'./index.php',

cypress/e2e/core/setup.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,26 @@ describe('Can install Nextcloud', { testIsolation: true, retries: 0 }, () => {
8585
sharedSetup()
8686
})
8787

88+
it('Oracle', () => {
89+
cy.runCommand('cp /var/www/html/tests/databases-all-config.php /var/www/html/config/config.php')
90+
cy.visit('/')
91+
cy.get('[data-cy-setup-form]').should('be.visible')
92+
cy.get('[data-cy-setup-form-field="adminlogin"]').should('be.visible')
93+
cy.get('[data-cy-setup-form-field="adminpass"]').should('be.visible')
94+
cy.get('[data-cy-setup-form-field="directory"]').should('have.value', '/var/www/html/data')
95+
96+
// Select the SQLite database
97+
cy.get('[data-cy-setup-form-field="dbtype-oci"] input').check({ force: true })
98+
99+
// Fill in the DB form
100+
cy.get('[data-cy-setup-form-field="dbuser"]').type('{selectAll}system')
101+
cy.get('[data-cy-setup-form-field="dbpass"]').type('{selectAll}oracle')
102+
cy.get('[data-cy-setup-form-field="dbname"]').type('{selectAll}FREE')
103+
cy.get('[data-cy-setup-form-field="dbhost"]').type('{selectAll}oracle:1521')
104+
105+
sharedSetup()
106+
})
107+
88108
})
89109

90110
/**

tests/databases-all-config.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
4+
* SPDX-License-Identifier: AGPL-3.0-or-later
5+
*/
6+
7+
$CONFIG = [
8+
'supportedDatabases' => [
9+
'sqlite',
10+
'mysql',
11+
'pgsql',
12+
'oci',
13+
],
14+
];

0 commit comments

Comments
 (0)