From 1c53393f5dbe634a050fcf2fada9393328c7024d Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Mon, 4 Oct 2021 11:04:00 +0900 Subject: [PATCH] Fix wrong tasks in integration test for sysctl Signed-off-by: Hideki Saito --- tests/integration/targets/sysctl/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/targets/sysctl/tasks/main.yml b/tests/integration/targets/sysctl/tasks/main.yml index 0715dc2..fdbb368 100644 --- a/tests/integration/targets/sysctl/tasks/main.yml +++ b/tests/integration/targets/sysctl/tasks/main.yml @@ -17,7 +17,7 @@ # along with Ansible. If not, see . # NOTE: Testing sysctl inside an unprivileged container means that we cannot -# apply sysctl, or it will always fFail, because of that in most cases (except +# apply sysctl, or it will always fail, because of that in most cases (except # those when it should fail) we have to use `reload=no`. - name: Test inside Docker @@ -126,7 +126,7 @@ - name: Try sysctl with an invalid key sysctl: name: net.ipv4.invalid_key - value: foo + value: 1 register: sysctl_test3 ignore_errors: yes @@ -196,10 +196,10 @@ - sysctl_no_value is failed - "sysctl_no_value.msg == 'value cannot be None'" - - name: Try sysctl with an invalid value + - name: Try sysctl with an invalid key sysctl: - name: net.ipv4.ip_forward - value: foo + name: net.ipv4.invalid_key + value: 1 sysctl_set: yes register: sysctl_test4 ignore_errors: yes