Skip to content

Commit 8232050

Browse files
authored
add test for custom grafana auth section option (cloudalchemy#222)
1 parent b347682 commit 8232050

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

molecule/alternative/playbook.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
admin_password: "password"
1212
grafana_address: "127.0.0.1"
1313
grafana_auth:
14+
login_maximum_inactive_lifetime_days: 42
1415
disable_login_form: false
1516
oauth_auto_login: false
1617
disable_signout_menu: false

molecule/alternative/tests/test_alternative.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ def test_alternative_yum_repo(host):
4848
if host.system_info.distribution in ['centos', 'redhat', 'fedora']:
4949
f = host.file("/etc/yum.repos.d/alternative.grafana.yum.repo")
5050
assert f.exists
51+
52+
53+
def test_custom_auth_option(host):
54+
f = host.file("/etc/grafana/grafana.ini")
55+
assert f.contains("login_maximum_inactive_lifetime_days = 42")

0 commit comments

Comments
 (0)