Commit 3c38505e authored by Vincent Pelletier's avatar Vincent Pelletier

Restore 30 test database default value.

Was accidentally lost, and documented as the intended value - though it is
not.
parent 6cb1ffce
......@@ -40,7 +40,7 @@
},
"test-database-amount": {
"description": "The number of test databases to create, adding auto-generated entries to database-list",
"default": 0,
"default": 30,
"minimum": 0,
"type": "integer"
},
......
......@@ -171,7 +171,7 @@ context =
[template-mariadb]
< = download-base
filename = instance-mariadb.cfg.in
md5sum = 2d3bc3bb5e79519897c96acbdcc4ece6
md5sum = cc6469a092d0b09008dca6507ae4cb02
[template-kumofs]
< = download-base
......
......@@ -3,7 +3,7 @@
{% macro section(name) %}{% do part_list.append(name) %}{{ name }}{% endmacro -%}
{% set use_ipv6 = slapparameter_dict.get('use-ipv6', False) -%}
{% set database_list = slapparameter_dict.get('database-list', [{'name': 'erp5', 'user': 'user', 'password': 'insecure'}]) -%}
{% for database_count in range(slapparameter_dict.get('test-database-amount', 0)) -%}
{% for database_count in range(slapparameter_dict.get('test-database-amount', 30)) -%}
{% do 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