From e26671c97dd48ca45f851f5b737de6c2067747d3 Mon Sep 17 00:00:00 2001 From: Aaron Whitehouse Date: Thu, 17 Mar 2022 10:28:10 +0000 Subject: [PATCH] Add monitoring test framework --- tests/0_monitoring_tests/sanoid.conf | 10 ++++++++++ tests/0_monitoring_tests/test_monitoring.py | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/0_monitoring_tests/sanoid.conf create mode 100644 tests/0_monitoring_tests/test_monitoring.py diff --git a/tests/0_monitoring_tests/sanoid.conf b/tests/0_monitoring_tests/sanoid.conf new file mode 100644 index 0000000..f5692f0 --- /dev/null +++ b/tests/0_monitoring_tests/sanoid.conf @@ -0,0 +1,10 @@ +[sanoid-test-1] + use_template = production + +[template_production] + hourly = 36 + daily = 30 + monthly = 3 + yearly = 0 + autosnap = yes + autoprune = no diff --git a/tests/0_monitoring_tests/test_monitoring.py b/tests/0_monitoring_tests/test_monitoring.py new file mode 100644 index 0000000..9398626 --- /dev/null +++ b/tests/0_monitoring_tests/test_monitoring.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 + +# this software is licensed for use under the Free Software Foundation's GPL v3.0 license, as retrieved +# from http://www.gnu.org/licenses/gpl-3.0.html on 2014-11-17. A copy should also be available in this +# project's Git repository at https://github.com/jimsalterjrs/sanoid/blob/master/LICENSE. + + +import unittest + +class TestNothing(unittest.TestCase): + def test_nothing(self): + """Test""" + + # Test sanoid_snapshots_exist + self.assertEqual(1,1) + + +if __name__ == '__main__': + unittest.main()