summaryrefslogtreecommitdiffstats
path: root/tests/devices.d
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/devices.d/dummy-with_action.cfg9
-rw-r--r--tests/devices.d/dummy.cfg3
-rw-r--r--tests/devices.d/invalid-missing_option.cfg4
-rw-r--r--tests/devices.d/true-with_action.cfg8
-rw-r--r--tests/devices.d/true.cfg8
5 files changed, 32 insertions, 0 deletions
diff --git a/tests/devices.d/dummy-with_action.cfg b/tests/devices.d/dummy-with_action.cfg
new file mode 100644
index 0000000..5550c36
--- /dev/null
+++ b/tests/devices.d/dummy-with_action.cfg
@@ -0,0 +1,9 @@
+name = "Dummy fence device configuration"
+agent = "/bin/true"
+[options]
+ login = "foo", "--username", "-l"
+ passwd = "bar", "--password", "-p"
+ ipaddr = "fence.example.com", "--ip", "-a"
+ port = "1", "--plug"
+ action = "status", "--action", "-o"
+
diff --git a/tests/devices.d/dummy.cfg b/tests/devices.d/dummy.cfg
new file mode 100644
index 0000000..855fbfe
--- /dev/null
+++ b/tests/devices.d/dummy.cfg
@@ -0,0 +1,3 @@
+name = "Dummy fence device configuration"
+agent = "/home/marx/GIT/fence-agents/agents/dummy/fence_dummy"
+[options]
diff --git a/tests/devices.d/invalid-missing_option.cfg b/tests/devices.d/invalid-missing_option.cfg
new file mode 100644
index 0000000..0805fdc
--- /dev/null
+++ b/tests/devices.d/invalid-missing_option.cfg
@@ -0,0 +1,4 @@
+name = "Invalid device definition: Both short and long options are missing"
+agent = "/bin/true"
+[options]
+ login = "foo"
diff --git a/tests/devices.d/true-with_action.cfg b/tests/devices.d/true-with_action.cfg
new file mode 100644
index 0000000..d95c9fe
--- /dev/null
+++ b/tests/devices.d/true-with_action.cfg
@@ -0,0 +1,8 @@
+name = "Dummy fence device configuration"
+agent = "/bin/true"
+[options]
+ login = [ "foo", "--username", "-l" ]
+ passwd = [ "bar", "--password", "-p" ]
+ ipaddr = [ "fence.example.com", "--ip", "-a" ]
+ port = [ "1", "--plug" ]
+ action = [ "status", "--action", "-o" ]
diff --git a/tests/devices.d/true.cfg b/tests/devices.d/true.cfg
new file mode 100644
index 0000000..4ba0aa5
--- /dev/null
+++ b/tests/devices.d/true.cfg
@@ -0,0 +1,8 @@
+name = "Dummy fence device configuration"
+agent = "/bin/true"
+[options]
+ login = [ "foo", "--username", "-l" ]
+ passwd = [ "bar", "--password", "-p" ]
+ ipaddr = [ "fence.example.com", "--ip", "-a" ]
+ port = [ "1", "--plug" ]
+