Example #1
0
    def test_get_firmware_update_notification(self, duthost, localhost, platform_api_conn):
        if self.num_components == 0:
            pytest.skip("No components found on device")

        for i in range(self.num_components):
            for image in range(image_list):
                notif = component.get_firmware_update_notification(platform_api_conn, i, image)
                # Can return "None" if no update required. 
                pytest_assert(isinstance(notif, STRING_TYPE), "Component {}: Firmware update notification appears to be incorrect from image {}".format(i, image))
Example #2
0
    def test_get_firmware_update_notification(self, duthosts, enum_rand_one_per_hwsku_hostname, localhost, platform_api_conn):
        duthost = duthosts[enum_rand_one_per_hwsku_hostname]
        skip_release_for_platform(duthost, ["202012", "201911", "201811"], ["nokia"])

        for i in range(self.num_components):
            for image in image_list:
                notif = component.get_firmware_update_notification(platform_api_conn, i, image)
                # Can return "None" if no update required. 
                pytest_assert(isinstance(notif, STRING_TYPE), "Component {}: Firmware update notification appears to be incorrect from image {}".format(i, image))