def test_fwutil_update_current(duthost, localhost, pdu_controller, fw_pkg, random_component): """Tests updating firmware from current image using fwutil update""" assert call_fwutil(duthost, localhost, pdu_controller, fw_pkg, component=random_component)
def test_fwutil_auto(duthost, localhost, pdu_controller, fw_pkg, reboot_type): """Tests fwutil update all command ability to properly select firmware for install based on boot type.""" assert call_fwutil(duthost, localhost, pdu_controller, fw_pkg, boot=reboot_type)
def test_fwutil_update_next(duthost, localhost, pdu_controller, fw_pkg, random_component, next_image): """Tests updating firmware from the "next" image using fwutil update""" assert call_fwutil(duthost, localhost, pdu_controller, fw_pkg, component=random_component, next_image=next_image)
def test_fwutil_install_url(duthost, localhost, pdu_controller, fw_pkg, random_component, host_firmware): """Tests manually installing firmware to a component from a URL.""" assert call_fwutil(duthost, localhost, pdu_controller, fw_pkg, component=random_component, basepath=host_firmware)
def test_fwutil_install_file(duthost, localhost, pdu_controller, fw_pkg, random_component): """Tests manually installing firmware to a component from a file.""" assert call_fwutil(duthost, localhost, pdu_controller, fw_pkg, component=random_component, basepath=os.path.join(DEVICES_PATH, duthost.facts['platform']))