Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
WIP: add test for custom grafana auth section option
Browse files Browse the repository at this point in the history
  • Loading branch information
faxm0dem committed May 29, 2020
1 parent b347682 commit 76f789c
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 76f789c

Please sign in to comment.