module ChefSpec::API::User
def create_user(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)
-
Parameters:
-
resource_name
(String, Regex
) --
Other tags:
- Example: Assert that a +user+ was _not_ created -
Example: Assert that a +user+ was created using a regex -
Example: Assert that a +user+ was created with attributes -
Example: Assert that a +user+ was created with predicate matchers -
Example: Assert that a +user+ was created -
def create_user(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:user, :create, resource_name) end
def lock_user(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)
-
Parameters:
-
resource_name
(String, Regex
) --
Other tags:
- Example: Assert that a +user+ was _not_ locked -
Example: Assert that a +user+ was locked using a regex -
Example: Assert that a +user+ was locked with attributes -
Example: Assert that a +user+ was locked with predicate matchers -
Example: Assert that a +user+ was locked -
def lock_user(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:user, :lock, resource_name) end
def manage_user(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)
-
Parameters:
-
resource_name
(String, Regex
) --
Other tags:
- Example: Assert that a +user+ was _not_ managed -
Example: Assert that a +user+ was managed using a regex -
Example: Assert that a +user+ was managed with attributes -
Example: Assert that a +user+ was managed with predicate matchers -
Example: Assert that a +user+ was managed -
def manage_user(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:user, :manage, resource_name) end
def modify_user(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)
-
Parameters:
-
resource_name
(String, Regex
) --
Other tags:
- Example: Assert that a +user+ was _not_ modified -
Example: Assert that a +user+ was modified using a regex -
Example: Assert that a +user+ was modified with attributes -
Example: Assert that a +user+ was modified with predicate matchers -
Example: Assert that a +user+ was modified -
def modify_user(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:user, :modify, resource_name) end
def remove_user(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)
-
Parameters:
-
resource_name
(String, Regex
) --
Other tags:
- Example: Assert that a +user+ was _not_ remove -
Example: Assert that a +user+ was remove using a regex -
Example: Assert that a +user+ was remove with attributes -
Example: Assert that a +user+ was remove with predicate matchers -
Example: Assert that a +user+ was remove -
def remove_user(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:user, :remove, resource_name) end
def unlock_user(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)
-
Parameters:
-
resource_name
(String, Regex
) --
Other tags:
- Example: Assert that a +user+ was _not_ unlocked -
Example: Assert that a +user+ was unlocked using a regex -
Example: Assert that a +user+ was unlocked with attributes -
Example: Assert that a +user+ was unlocked with predicate matchers -
Example: Assert that a +user+ was unlocked -
def unlock_user(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:user, :unlock, resource_name) end