The ironic.tests.unit.drivers.modules.test_snmp Module

The ironic.tests.unit.drivers.modules.test_snmp Module

Test class for SNMP power driver module.

class ironic.tests.unit.drivers.modules.test_snmp.SNMPClientTestCase(*args, **kwds)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test___init__(*args, **keywargs)[source]
test__get_auth_v1(*args, **keywargs)[source]
test__get_auth_v3(*args, **keywargs)[source]
test__get_transport(*args, **keywargs)[source]
test__get_transport_custom_retries(*args, **keywargs)[source]
test__get_transport_custom_timeout(*args, **keywargs)[source]
test__get_transport_err(*args, **keywargs)[source]
test_get(*args, **keywargs)[source]
test_get_err_engine(*args, **keywargs)[source]
test_get_err_transport(*args, **keywargs)[source]
test_get_next(*args, **keywargs)[source]
test_get_next_err_engine(*args, **keywargs)[source]
test_get_next_err_transport(*args, **keywargs)[source]
test_set(*args, **keywargs)[source]
test_set_err_engine(*args, **keywargs)[source]
test_set_err_transport(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_snmp.SNMPDeviceDriverTestCase(*args, **kwds)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

Tests for the SNMP device-specific driver classes.

The SNMP client object is mocked to allow various error cases to be tested.

setUp()[source]
test_apc_masterswitch_power_off(*args, **keywargs)[source]
test_apc_masterswitch_power_on(*args, **keywargs)[source]
test_apc_masterswitch_power_reset(*args, **keywargs)[source]
test_apc_masterswitch_power_state_off(*args, **keywargs)[source]
test_apc_masterswitch_power_state_on(*args, **keywargs)[source]
test_apc_masterswitch_snmp_objects(*args, **keywargs)[source]
test_apc_masterswitchplus_power_off(*args, **keywargs)[source]
test_apc_masterswitchplus_power_on(*args, **keywargs)[source]
test_apc_masterswitchplus_power_reset(*args, **keywargs)[source]
test_apc_masterswitchplus_power_state_off(*args, **keywargs)[source]
test_apc_masterswitchplus_power_state_on(*args, **keywargs)[source]
test_apc_masterswitchplus_snmp_objects(*args, **keywargs)[source]
test_apc_power_off(*args, **keywargs)[source]
test_apc_power_on(*args, **keywargs)[source]
test_apc_power_reset(*args, **keywargs)[source]
test_apc_power_state_off(*args, **keywargs)[source]
test_apc_power_state_on(*args, **keywargs)[source]
test_apc_rackpdu_power_off(*args, **keywargs)[source]
test_apc_rackpdu_power_on(*args, **keywargs)[source]
test_apc_rackpdu_power_reset(*args, **keywargs)[source]
test_apc_rackpdu_power_state_off(*args, **keywargs)[source]
test_apc_rackpdu_power_state_on(*args, **keywargs)[source]
test_apc_rackpdu_snmp_objects(*args, **keywargs)[source]
test_apc_snmp_objects(*args, **keywargs)[source]
test_aten_power_off(*args, **keywargs)[source]
test_aten_power_on(*args, **keywargs)[source]
test_aten_power_reset(*args, **keywargs)[source]
test_aten_power_state_off(*args, **keywargs)[source]
test_aten_power_state_on(*args, **keywargs)[source]
test_aten_snmp_objects(*args, **keywargs)[source]
test_cyberpower_power_off(*args, **keywargs)[source]
test_cyberpower_power_on(*args, **keywargs)[source]
test_cyberpower_power_reset(*args, **keywargs)[source]
test_cyberpower_power_state_off(*args, **keywargs)[source]
test_cyberpower_power_state_on(*args, **keywargs)[source]
test_cyberpower_snmp_objects(*args, **keywargs)[source]
test_eaton_power_power_off(*args, **keywargs)[source]
test_eaton_power_power_on(*args, **keywargs)[source]
test_eaton_power_power_reset(*args, **keywargs)[source]
test_eaton_power_power_state_off(*args, **keywargs)[source]
test_eaton_power_power_state_on(*args, **keywargs)[source]
test_eaton_power_power_state_pending_off(*args, **keywargs)[source]
test_eaton_power_power_state_pending_on(*args, **keywargs)[source]
test_eaton_power_snmp_objects(*args, **keywargs)[source]
test_power_off(*args, **keywargs)[source]
test_power_off_delay(*args, **keywargs)[source]
test_power_off_invalid_state(*args, **keywargs)[source]
test_power_off_snmp_get_failure(*args, **keywargs)[source]
test_power_off_snmp_set_failure(*args, **keywargs)[source]
test_power_off_timeout(*args, **keywargs)[source]
test_power_on(*args, **keywargs)[source]
test_power_on_delay(*args, **keywargs)[source]
test_power_on_invalid_state(*args, **keywargs)[source]
test_power_on_snmp_get_failure(*args, **keywargs)[source]
test_power_on_snmp_set_failure(*args, **keywargs)[source]
test_power_on_timeout(*args, **keywargs)[source]
test_power_reset(*args, **keywargs)[source]
test_power_reset_delay_option(*args, **keywargs)[source]
test_power_reset_off_delay(*args, **keywargs)[source]
test_power_reset_off_delay_on_delay(*args, **keywargs)[source]
test_power_reset_off_invalid_state(*args, **keywargs)[source]
test_power_reset_off_snmp_get_failure(*args, **keywargs)[source]
test_power_reset_off_snmp_set_failure(*args, **keywargs)[source]
test_power_reset_off_timeout(*args, **keywargs)[source]
test_power_reset_on_delay(*args, **keywargs)[source]
test_power_reset_on_invalid_state(*args, **keywargs)[source]
test_power_reset_on_snmp_get_failure(*args, **keywargs)[source]
test_power_reset_on_snmp_set_failure(*args, **keywargs)[source]
test_power_reset_on_timeout(*args, **keywargs)[source]
test_power_state_error(*args, **keywargs)[source]
test_power_state_off(*args, **keywargs)[source]
test_power_state_on(*args, **keywargs)[source]
test_power_state_snmp_failure(*args, **keywargs)[source]
test_teltronix_power_off(*args, **keywargs)[source]
test_teltronix_power_on(*args, **keywargs)[source]
test_teltronix_power_reset(*args, **keywargs)[source]
test_teltronix_power_state_off(*args, **keywargs)[source]
test_teltronix_power_state_on(*args, **keywargs)[source]
test_teltronix_snmp_objects(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_snmp.SNMPDriverTestCase(*args, **kwds)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

SNMP power driver interface tests.

In this test case, the SNMP power driver interface is exercised. The device-specific SNMP driver is mocked to allow various error cases to be tested.

setUp()[source]
test_get_power_state_error(*args, **keywargs)[source]
test_get_power_state_off(*args, **keywargs)[source]
test_get_power_state_on(*args, **keywargs)[source]
test_get_power_state_snmp_failure(*args, **keywargs)[source]
test_get_properties(*args, **keywargs)[source]
test_reboot(*args, **keywargs)[source]
test_reboot_error(*args, **keywargs)[source]
test_reboot_snmp_failure(*args, **keywargs)[source]
test_reboot_timeout(*args, **keywargs)[source]
test_set_power_state_error(*args, **keywargs)[source]
test_set_power_state_off(*args, **keywargs)[source]
test_set_power_state_off_error(*args, **keywargs)[source]
test_set_power_state_off_snmp_failure(*args, **keywargs)[source]
test_set_power_state_on(*args, **keywargs)[source]
test_set_power_state_on_error(*args, **keywargs)[source]
test_set_power_state_on_snmp_failure(*args, **keywargs)[source]
test_set_power_state_on_timeout(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_snmp.SNMPValidateParametersTestCase(*args, **kwds)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

test__parse_driver_info_apc()[source]
test__parse_driver_info_apc_masterswitch()[source]
test__parse_driver_info_apc_masterswitchplus()[source]
test__parse_driver_info_apc_rackpdu()[source]
test__parse_driver_info_aten()[source]
test__parse_driver_info_cyberpower()[source]
test__parse_driver_info_default()[source]
test__parse_driver_info_default_version()[source]
test__parse_driver_info_default_version_and_missing_community()[source]
test__parse_driver_info_eatonpower()[source]
test__parse_driver_info_invalid_driver()[source]
test__parse_driver_info_invalid_outlet()[source]
test__parse_driver_info_invalid_version()[source]
test__parse_driver_info_missing_address()[source]
test__parse_driver_info_missing_community_snmp_v1()[source]
test__parse_driver_info_missing_community_snmp_v2c()[source]
test__parse_driver_info_missing_driver()[source]
test__parse_driver_info_missing_outlet()[source]
test__parse_driver_info_missing_security()[source]
test__parse_driver_info_snmp_port()[source]
test__parse_driver_info_snmp_port_default()[source]
test__parse_driver_info_snmp_v1()[source]
test__parse_driver_info_snmp_v2c()[source]
test__parse_driver_info_snmp_v3()[source]
test__parse_driver_info_teltronix()[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.