Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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)
Exemplo n.º 5
0
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']))