import from notify_push

This commit is contained in:
Robin Appelman 2021-05-03 17:14:49 +02:00
commit 28e84abd56
17 changed files with 792 additions and 0 deletions

15
tests/configs/basic.php Normal file
View file

@ -0,0 +1,15 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost'
]
];

View file

@ -0,0 +1,20 @@
<?php
// some comment
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql', // comment inside the config
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1',
/**
* block comment
*/
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost'
]
];

View file

@ -0,0 +1,15 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost',
'password' => ''
]
];

View file

@ -0,0 +1,17 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'redis',
'dbindex' => 1,
'port' => 1234,
'password' => 'moresecret'
]
];

View file

@ -0,0 +1,14 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost'
]
];

View file

@ -0,0 +1,9 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'redis' => [
'host' => 'localhost'
],
'dbtype' => 'sqlite',
];

View file

@ -0,0 +1,11 @@
<?php
$CONFIG = [
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret'
];

View file

@ -0,0 +1,15 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => 'db.example.com',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost'
]
];

View file

@ -0,0 +1,15 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1:1234',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost'
]
];

View file

@ -0,0 +1,15 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'pgsql',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/var/run/postgresql/.s.PGSQL.5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'redacted',
'dbpassword' => 'redacted',
'redis' => [
'host' => 'localhost'
]
];

View file

@ -0,0 +1,15 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'pgsql',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/var/run/postgresql',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'redacted',
'dbpassword' => 'redacted',
'redis' => [
'host' => 'localhost'
]
];

View file

@ -0,0 +1,28 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis.cluster' =>
array (
'seeds' =>
array (
0 => 'db1:6380',
1 => 'db1:6381',
2 => 'db1:6382',
3 => 'db2:6380',
4 => 'db2:6381',
5 => 'db2:6382',
),
'password' => 'xxx',
'timeout' => 0.0,
'read_timeout' => 0.0,
'failover_mode' => \RedisCluster::FAILOVER_ERROR
),
];

View file

@ -0,0 +1,14 @@
<?php
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => '/redis',
]
];