From e213fdb15dfc6964705c0b5d1567cd0872a26497 Mon Sep 17 00:00:00 2001 From: volanja Date: Fri, 9 Jan 2015 01:24:41 +0900 Subject: [PATCH] to replace `running` with `started` --- docsite/rst/test_strategies.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docsite/rst/test_strategies.rst b/docsite/rst/test_strategies.rst index a3abf16090..be1b80550d 100644 --- a/docsite/rst/test_strategies.rst +++ b/docsite/rst/test_strategies.rst @@ -19,16 +19,16 @@ also very easy to run the steps on the localhost or testing servers. Ansible let The Right Level of Testing `````````````````````````` -Ansible resources are models of desired-state. As such, it should not be necessary to test that services are running, packages are +Ansible resources are models of desired-state. As such, it should not be necessary to test that services are started, packages are installed, or other such things. Ansible is the system that will ensure these things are declaratively true. Instead, assert these things in your playbooks. .. code-block:: yaml tasks: - - service: name=foo state=running enabled=yes + - service: name=foo state=started enabled=yes -If you think the service may not be running, the best thing to do is request it to be running. If the service fails to start, Ansible +If you think the service may not be started, the best thing to do is request it to be started. If the service fails to start, Ansible will yell appropriately. (This should not be confused with whether the service is doing something functional, which we'll show more about how to do later).