From f90d05d4762f35e75d6955d32b80494ada622c25 Mon Sep 17 00:00:00 2001 From: Michal Migurski Date: Tue, 14 Jan 2020 17:43:57 -0800 Subject: [PATCH] Updated wiki configuration to run under Test-Kitchen - Added missing databags to fix transient errors - Added wiki test suite with appropriate cookbooks --- .kitchen.yml | 7 +++++++ test/data_bags/accounts/wiki.json | 7 +++++++ test/data_bags/wiki/passwords.json | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100644 test/data_bags/accounts/wiki.json create mode 100644 test/data_bags/wiki/passwords.json diff --git a/.kitchen.yml b/.kitchen.yml index a9e3949c9..1f71e92cd 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -323,3 +323,10 @@ suites: - name: wordpress run_list: - recipe[wordpress::default] + - name: wiki + run_list: + - recipe[apt::default] + - recipe[accounts::default] + - recipe[munin::default] + - recipe[wiki] + - role[wiki] diff --git a/test/data_bags/accounts/wiki.json b/test/data_bags/accounts/wiki.json new file mode 100644 index 000000000..0ee9618c2 --- /dev/null +++ b/test/data_bags/accounts/wiki.json @@ -0,0 +1,7 @@ +{ + "id": "wiki", + "uid": "555", + "comment": "wiki.openstreetmap.org", + "home": "/opt/wiki", + "manage_home": false +} diff --git a/test/data_bags/wiki/passwords.json b/test/data_bags/wiki/passwords.json new file mode 100644 index 000000000..de5589f7f --- /dev/null +++ b/test/data_bags/wiki/passwords.json @@ -0,0 +1,6 @@ +{ + "database": "pw1", + "admin": "pw2", + "recaptcha": "pw3", + "thunderforest": "pw4" +} -- 2.39.5