Commit 37a0e975 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5.mariadb: Create no test database by default.

Test node now requests them.
parent 96975aee
......@@ -40,7 +40,7 @@
},
"test-database-amount": {
"description": "The number of test databases to create, adding auto-generated entries to database-list",
"default": 30,
"default": 0,
"minimum": 0,
"type": "integer"
},
......
......@@ -4,7 +4,7 @@
{% set use_ipv6 = slapparameter_dict.get('use-ipv6', False) -%}
{% set database_list = slapparameter_dict.get('database-list', [{'name': 'erp5', 'user': 'user', 'password': 'insecure'}]) -%}
{% set test_database_list = [] %}
{% for database_count in range(slapparameter_dict.get('test-database-amount', 30)) -%}
{% for database_count in range(slapparameter_dict.get('test-database-amount', 0)) -%}
{% do test_database_list.append({'name': 'erp5_test_' ~ database_count, 'user': 'testuser_' ~ database_count, 'password': 'testpassword' ~ database_count}) -%}
{% endfor -%}
{% set catalog_backup = slapparameter_dict.get('catalog-backup', {}) -%}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment