Skip to content

Commit

Permalink
add test for custom grafana auth section option (cloudalchemy#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
faxm0dem authored May 29, 2020
1 parent 899621b commit 1efc9a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions molecule/alternative/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
admin_password: "password"
grafana_address: "127.0.0.1"
grafana_auth:
login_maximum_inactive_lifetime_days: 42
disable_login_form: false
oauth_auto_login: false
disable_signout_menu: false
Expand Down
5 changes: 5 additions & 0 deletions molecule/alternative/tests/test_alternative.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ def test_alternative_yum_repo(host):
if host.system_info.distribution in ['centos', 'redhat', 'fedora']:
f = host.file("/etc/yum.repos.d/alternative.grafana.yum.repo")
assert f.exists


def test_custom_auth_option(host):
f = host.file("/etc/grafana/grafana.ini")
assert f.contains("login_maximum_inactive_lifetime_days = 42")

0 comments on commit 1efc9a0

Please sign in to comment.