Skip to content

Commit

Permalink
[tests] fix configuration of lizmap
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj committed Nov 10, 2022
1 parent 02dc0b1 commit aae0c1f
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 29 deletions.
3 changes: 3 additions & 0 deletions adresse/install/configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* @license Mozilla Public Licence
*/

/**
* Configurator for Lizmap 3.6+
*/
class adresseModuleConfigurator extends \Jelix\Installer\Module\Configurator {

public function getDefaultParameters() {
Expand Down
11 changes: 4 additions & 7 deletions adresse/install/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@
*
* @license Mozilla Public Licence
*/

/**
* Installer for Lizmap 3.6+
*/
class adresseModuleInstaller extends \Jelix\Installer\Module\Installer
{
public function install(\Jelix\Installer\Module\API\InstallHelpers $helpers)
{
//if ($this->firstDbExec())
// $this->execSQLScript('sql/install');

/*if ($this->firstExec('acl2')) {
jAcl2DbManager::addSubject('my.subject', 'adresse~acl.my.subject', 'subject.group.id');
jAcl2DbManager::addRight('admins', 'my.subject'); // for admin group
}
*/
}
}
12 changes: 4 additions & 8 deletions adresse/install/install_1_6.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@
*
* @license Mozilla Public Licence
*/

/**
* Installer for lizmap <=3.5
*/
class adresseModuleInstaller extends jInstallerModule
{
public function install()
{
//if ($this->firstDbExec())
// $this->execSQLScript('sql/install');

/*if ($this->firstExec('acl2')) {
jAcl2DbManager::addSubject('my.subject', 'adresse~acl.my.subject', 'subject.group.id');
jAcl2DbManager::addRight('admins', 'my.subject'); // for admin group
}
*/
// Copy CSS and JS assets
$this->copyDirectoryContent('../www/css', jApp::wwwPath('assets/adresse/css'));
$this->copyDirectoryContent('../www/js', jApp::wwwPath('assets/adresse/js'));
Expand Down
9 changes: 9 additions & 0 deletions tests/lizmap/etc/conf/localconfig.d/localconfig.ini.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
[modules]
adresse.access=2

[jResponseHtml]
plugins = debugbar

[mailer]
webmasterEmail="tests@lizmap.com"
webmasterName="Lizmap Docker"
mailerType=file

17 changes: 17 additions & 0 deletions tests/lizmap/etc/conf/profiles.d/profile.ini.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
[jdb]

default=jauth
jacl2_profile=jauth
lizlog=jauth

[jdb:jauth]
driver=pgsql
host=pgsql
port=5432
database=lizmap
user=lizmap
password="lizmap1234!"
search_path=public

[jdb:adresse]

driver=pgsql
Expand All @@ -6,3 +21,5 @@
user=lizmap
password="lizmap1234!"
search_path=adresse,public
timeout=10

14 changes: 0 additions & 14 deletions tests/lizmap/etc/mailconfig.ini

This file was deleted.

0 comments on commit aae0c1f

Please sign in to comment.