From cf23a9911924bc587675c27c65b6b419457fd170 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 16 Dec 2016 23:30:11 +0200
Subject: [PATCH] - Initial tests, mainly placeholders.

---
 tests/test_mysql.py | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 tests/test_mysql.py

diff --git a/tests/test_mysql.py b/tests/test_mysql.py
new file mode 100644
index 0000000..99ae559
--- /dev/null
+++ b/tests/test_mysql.py
@@ -0,0 +1,44 @@
+from testinfra.utils.ansible_runner import AnsibleRunner
+
+testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
+
+
+def test_mysql_socket(Socket):
+    assert Socket('tcp://0.0.0.0:3306').is_listening
+
+
+def test_mysql_service(Service):
+    assert Service('mysql').is_enabled
+    assert Service('mysql').is_running
+
+
+def test_mysql_alias(File):
+    pass
+
+
+def test_mysql_ssl_group(User):
+    pass
+
+
+def test_mysql_admin_account(Command, Sudo):
+    pass
+
+
+def test_mysql_backup_job(Command, Sudo):
+    pass
+
+
+def test_mysql_backup_account(Command, Sudo):
+    pass
+
+
+def test_mysql_backup_config(File):
+    pass
+
+
+def test_mysql_backup_directory(File):
+    pass
+
+
+def test_mysql_backup(Command, Sudo):
+    pass
-- 
GitLab