def after_all(scenario): """ Hook: Will be executed after all Scenarios and Features. Removes Feature data and cleans the system. Kills all agents running in the VM. """ tear_down(scenario) rest_utils.delete_node(world.headers, world.tenant_id, CONFIG_VM_HOSTNAME) execute_chef_client_stop() execute_puppet_agent_stop() remove_chef_client_cert_file() remove_puppet_agent_cert_file()
def after_each_scenario(scenario): """ Hook: Will be executed after all each scenario Removes Feature data and cleans the system. Kills all agents running in the VM. """ execute_chef_client_stop() execute_puppet_agent_stop() remove_chef_client_cert_file() remove_puppet_agent_cert_file() remove_all_generated_test_files() remove_puppet_agent_catalog() rest_utils.delete_node(world.headers, world.tenant_id, CONFIG_VM_HOSTNAME)
def after_each_scenario(scenario): """ Hook: Will be executed after each Scenario. Removes Test data and cleans the system. Kills all agents running in the VM """ if world.node_name is not None: execute_chef_client_stop() execute_puppet_agent_stop() remove_chef_client_cert_file() remove_puppet_agent_cert_file() remove_all_generated_test_files() remove_puppet_agent_catalog() rest_utils.delete_node(world.headers, world.tenant_id, world.node_name)