summaryrefslogtreecommitdiff
path: root/reconfigure/tests/configs/supervisor_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'reconfigure/tests/configs/supervisor_tests.py')
-rw-r--r--reconfigure/tests/configs/supervisor_tests.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/reconfigure/tests/configs/supervisor_tests.py b/reconfigure/tests/configs/supervisor_tests.py
new file mode 100644
index 0000000..8656128
--- /dev/null
+++ b/reconfigure/tests/configs/supervisor_tests.py
@@ -0,0 +1,36 @@
+from reconfigure.configs import SupervisorConfig
+from base_test import BaseConfigTest
+
+
+class SupervisorConfigTest (BaseConfigTest):
+ sources = {
+ None: """[unix_http_server]
+file=/var/run//supervisor.sock ;comment
+chmod=0700
+[include]
+files=test""",
+ 'test': """[program:test1]
+command=cat
+ """
+ }
+ result = {
+ "programs": [
+ {
+ "autorestart": None,
+ "name": "test1",
+ "startsecs": None,
+ "umask": None,
+ "environment": None,
+ "command": "cat",
+ "user": None,
+ "startretries": None,
+ "directory": None,
+ "autostart": None
+ }
+ ]
+ }
+
+ config = SupervisorConfig
+
+
+del BaseConfigTest