diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:50:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:50:17 +0000 |
commit | 86ed03f8adee56c050c73018537371c230a664a6 (patch) | |
tree | eae3d04cdf1c49848e5a671327ab38297f4acb0d /tests/devices.d | |
parent | Initial commit. (diff) | |
download | fence-agents-86ed03f8adee56c050c73018537371c230a664a6.tar.xz fence-agents-86ed03f8adee56c050c73018537371c230a664a6.zip |
Adding upstream version 4.12.1.upstream/4.12.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/devices.d')
-rw-r--r-- | tests/devices.d/dummy-with_action.cfg | 9 | ||||
-rw-r--r-- | tests/devices.d/dummy.cfg | 3 | ||||
-rw-r--r-- | tests/devices.d/invalid-missing_option.cfg | 4 | ||||
-rw-r--r-- | tests/devices.d/true-with_action.cfg | 8 | ||||
-rw-r--r-- | tests/devices.d/true.cfg | 8 |
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" ] + |