Class: Beaker::TestCase

Inherits:
Runner::Native::TestCase show all
Defined in:
lib/beaker/test_case.rb

Overview

This class represents a single test case. A test case is necessarily contained all in one file though may have multiple dependent examples. They are executed in order (save for any teardown procs registered through DSL::Structure#teardown) and once completed the status of the TestCase is saved. Instance readers/accessors provide the test case access to various details of the environment and suite the test case is running within.

See DSL for more information about writing tests using the DSL.

Constant Summary

Constants inherited from Runner::Native::TestCase

Runner::Native::TestCase::TEST_EXCEPTION_CLASS

Constants included from DSL::InstallUtils::EZBakeUtils

DSL::InstallUtils::EZBakeUtils::LOCAL_COMMANDS_REQUIRED

Constants included from DSL::InstallUtils::ModuleUtils

DSL::InstallUtils::ModuleUtils::PUPPET_MODULE_INSTALL_IGNORE

Constants included from DSL::InstallUtils::FOSSUtils

DSL::InstallUtils::FOSSUtils::GitHubSig, DSL::InstallUtils::FOSSUtils::GitURI, DSL::InstallUtils::FOSSUtils::SourcePath

Constants included from DSL::InstallUtils::FOSSDefaults

DSL::InstallUtils::FOSSDefaults::FOSS_DEFAULTS, DSL::InstallUtils::FOSSDefaults::FOSS_DEFAULT_DOWNLOAD_URLS

Constants included from DSL::InstallUtils::AIODefaults

DSL::InstallUtils::AIODefaults::AIO_DEFAULTS

Constants included from DSL::InstallUtils::PEDefaults

DSL::InstallUtils::PEDefaults::PE_DEFAULTS

Instance Attribute Summary

Attributes inherited from Runner::Native::TestCase

#exception, #fail_flag, #hosts, #last_result, #logger, #metadata, #options, #path, #result, #runtime, #sublog, #teardown_procs, #test_status, #usr_home, #version

Attributes included from DSL::Assertions

#assertions

Method Summary

Methods inherited from Runner::Native::TestCase

#initialize, #to_hash

Methods included from DSL::Patterns

#block_on

Methods included from DSL::InstallUtils::EZBakeUtils

#conditionally_clone, #ezbake_config, #ezbake_dev_build, #ezbake_install_dir, #ezbake_install_name, #ezbake_installsh, #ezbake_lein_prefix, #ezbake_local_cmd, #ezbake_stage, #ezbake_tools_available?, #ezbake_validate_support, #install_ezbake_tarball_on_host, #install_from_ezbake, #install_termini_from_ezbake

Methods included from DSL::InstallUtils::ModuleUtils

#build_ignore_list, #copy_module_to, #get_module_name, #install_dev_puppet_module, #install_dev_puppet_module_on, #install_puppet_module_via_pmt, #install_puppet_module_via_pmt_on, #parse_for_modulename, #parse_for_moduleroot, #split_author_modulename

Methods included from DSL::InstallUtils::FOSSUtils

#build_git_url, #clone_git_repo_on, #compute_puppet_msi_name, #configure_puppet, #configure_puppet_on, #extract_repo_info_from, #find_git_repo_versions, #install_a_puppet_msi_on, #install_cert_on_windows, #install_from_git_on, #install_packages_from_local_dev_repo, #install_puppet, #install_puppet_agent_dev_repo_on, #install_puppet_agent_from_dmg_on, #install_puppet_agent_from_msi_on, #install_puppet_agent_on, #install_puppet_agent_pe_promoted_repo_on, #install_puppet_from_deb_on, #install_puppet_from_dmg_on, #install_puppet_from_freebsd_ports_on, #install_puppet_from_gem_on, #install_puppet_from_msi_on, #install_puppet_from_openbsd_packages_on, #install_puppet_from_rpm_on, #install_puppet_on, #install_puppetlabs_dev_repo, #install_puppetlabs_release_repo_on, #remove_puppet_on

Methods included from DSL::InstallUtils::WindowsUtils

#create_install_msi_batch_on, #get_temp_path, #install_msi_on, #msi_install_script

Methods included from DSL::InstallUtils::PuppetUtils

#add_puppet_paths_on, #configure_defaults_on, #configure_type_defaults_on, #construct_puppet_path, #normalize_type, #remove_defaults_on, #remove_puppet_paths_on

Methods included from DSL::InstallUtils::FOSSDefaults

#add_foss_defaults_on, #add_platform_foss_defaults, #remove_foss_defaults_on, #remove_platform_foss_defaults

Methods included from DSL::InstallUtils::AIODefaults

#add_aio_defaults_on, #add_platform_aio_defaults, #remove_aio_defaults_on, #remove_platform_aio_defaults

Methods included from DSL::InstallUtils::PEUtils

#create_agent_specified_arrays, #deploy_frictionless_to_master, #do_higgs_install, #do_install, #fetch_and_push_pe, #fetch_pe, #fetch_pe_on_mac, #fetch_pe_on_unix, #fetch_pe_on_windows, #higgs_installer_cmd, #install_higgs, #install_pe, #install_pe_on, #installer_cmd, #setup_defaults_and_config_helper_on, #upgrade_pe, #upgrade_pe_on

Methods included from DSL::InstallUtils::PEDefaults

#add_pe_defaults_on, #add_platform_pe_defaults, #remove_pe_defaults_on, #remove_platform_pe_defaults

Methods included from DSL::Helpers::WebHelpers

#link_exists?, #port_open_within?

Methods included from DSL::Helpers::TKHelpers

#modify_tk_config

Methods included from DSL::Helpers::TestHelpers

#current_step_name, #current_test_filename, #current_test_name, #set_current_step_name, #set_current_test_filename, #set_current_test_name

Methods included from DSL::Helpers::PuppetHelpers

#apply_manifest, #apply_manifest_on, #create_tmpdir_for_user, #puppet_group, #puppet_user, #run_agent_on, #sign_certificate, #sign_certificate_for, #sleep_until_nc_started, #sleep_until_puppetdb_started, #sleep_until_puppetserver_started, #stop_agent, #stop_agent_on, #stub_forge, #stub_forge_on, #stub_hosts, #stub_hosts_on, #wait_for_host_in_dashboard, #with_forge_stubbed, #with_forge_stubbed_on, #with_host_stubbed_on, #with_puppet_running, #with_puppet_running_on

Methods included from DSL::Helpers::HostHelpers

#add_system32_hosts_entry, #check_for_package, #create_remote_file, #create_tmpdir_on, #curl_on, #curl_with_retries, #deploy_package_repo, #echo_on, #execute_powershell_script_on, #exit_code, #install_package, #on, #retry_on, #rsync_to, #run_script, #run_script_on, #scp_from, #scp_to, #shell, #stderr, #stdout, #upgrade_package

Methods included from DSL::Helpers::FacterHelpers

#fact, #fact_on

Methods included from DSL::Wrappers

#cfacter, #encode_command, #facter, #hiera, #powershell, #puppet

Methods included from DSL::Assertions

#assert_no_match, #assert_output

Methods included from DSL::Structure

#confine, #confine_block, #expect_failure, #select_hosts, #step, #tag, #teardown, #test_name

Methods included from DSL::Outcomes

#fail_test, #pass_test, #pending_test, #skip_test

Methods included from DSL::Roles

#add_role, #add_role_def, #agent_only, #agents, #aio_agent?, #aio_version?, #any_hosts_as?, #dashboard, #database, #default, #find_at_most_one, #find_host_with_role, #find_only_one, #hosts_as, #master, #not_controller

Constructor Details

This class inherits a constructor from Beaker::Runner::Native::TestCase