diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:46:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:46:09 +0000 |
commit | 043aa641ad4373e96fd748deb1e7fab3cb579a07 (patch) | |
tree | f8fde8a97ab5db152043f6c01043672114c0a4df /cts/cts-attrd.in | |
parent | Releasing progress-linux version 2.1.6-5~progress7.99u1. (diff) | |
download | pacemaker-043aa641ad4373e96fd748deb1e7fab3cb579a07.tar.xz pacemaker-043aa641ad4373e96fd748deb1e7fab3cb579a07.zip |
Merging upstream version 2.1.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | cts/cts-attrd.in | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/cts/cts-attrd.in b/cts/cts-attrd.in index b7ad538..b594ac3 100644 --- a/cts/cts-attrd.in +++ b/cts/cts-attrd.in @@ -126,7 +126,15 @@ class AttributeTests(Tests): test.add_cmd("attrd_updater", "--name AAA -B 111 -d 5 --output-as=xml") test.add_cmd_check_stdout("attrd_updater", "--name AAA -Q --output-as=xml", "name=\"AAA\" value=\"111\"") - test.add_log_pattern(r"Setting AAA\[.*\] in instance_attributes: \(unset\) -> 111 | from .* with 5s write delay", + test.add_log_pattern(r"Setting AAA\[.*\] in instance_attributes: \(unset\) -> 111 \| from .* with 5s write delay", + regex=True) + + test = self.new_test("set_attr_4", + "Update an attribute that does not exist with a delay") + test.add_cmd("attrd_updater", "--name BBB -U 999 -d 10 --output-as=xml") + test.add_cmd_check_stdout("attrd_updater", "--name BBB -Q --output-as=xml", + "name=\"BBB\" value=\"999\"") + test.add_log_pattern(r"Setting BBB\[.*\] in instance_attributes: \(unset\) -> 999 \| from .* with 10s write delay", regex=True) test = self.new_test("update_attr_1", @@ -140,6 +148,13 @@ class AttributeTests(Tests): test.add_log_pattern(r"Setting BBB\[.*\] in instance_attributes: 222 -> 333", regex=True) + test = self.new_test("update_attr_2", + "Update an attribute using a delay other than its default") + test.add_cmd("attrd_updater", "--name BBB -U 777 -d 10 --output-as=xml") + test.add_cmd("attrd_updater", "--name BBB -U 888 -d 7 --output-as=xml") + test.add_log_pattern(r"Setting BBB\[.*\] in instance_attributes: 777 -> 888 \| from .* with 10s write delay", + regex=True) + test = self.new_test("update_attr_delay_1", "Update the delay of an attribute that already exists") test.add_cmd("attrd_updater", "--name BBB -U 222 --output-as=xml") |