Skip to content

Commit 2819839

Browse files
test: cleartext password to not mask part of template
1 parent 3ff1d95 commit 2819839

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/classes/server_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@
347347
context 'with zabbix_server.conf and version 5.0' do
348348
let :params do
349349
{
350+
database_password: 'notsecret', # cleartext password must be explicitly declared in this test, otherwise the parser will secure content of the file
350351
socketdir: '/var/run/zabbix',
351352
zabbix_version: '5.0'
352353
}
@@ -359,6 +360,7 @@
359360
describe 'as system' do
360361
let :params do
361362
{
363+
database_password: 'notsecret', # cleartext password must be explicitly declared in this test, otherwise the parser will secure content of the file
362364
logtype: 'system'
363365
}
364366
end
@@ -371,6 +373,7 @@
371373
describe 'as console' do
372374
let :params do
373375
{
376+
database_password: 'notsecret', # cleartext password must be explicitly declared in this test, otherwise the parser will secure content of the file
374377
logtype: 'console'
375378
}
376379
end
@@ -383,6 +386,7 @@
383386
describe 'as file' do
384387
let :params do
385388
{
389+
database_password: 'notsecret', # cleartext password must be explicitly declared in this test, otherwise the parser will secure content of the file
386390
logtype: 'file'
387391
}
388392
end
@@ -398,6 +402,7 @@
398402
describe 'with zabbix_version 5.2 and Vault parameters defined' do
399403
let :params do
400404
{
405+
database_password: 'notsecret', # cleartext password must be explicitly declared in this test, otherwise the parser will secure content of the file
401406
zabbix_version: '5.2',
402407
vaultdbpath: 'secret/zabbix/database',
403408
vaulttoken: 'FKTYPEGL156DK',
@@ -413,6 +418,7 @@
413418
describe 'with zabbix_version 5.4 and report parameters defined' do
414419
let :params do
415420
{
421+
database_password: 'notsecret', # cleartext password must be explicitly declared in this test, otherwise the parser will secure content of the file
416422
zabbix_version: '5.4',
417423
startreportwriters: 1,
418424
webserviceurl: 'http://localhost:10053/report',

0 commit comments

Comments
 (0)