Best Python code snippet using lisa_python
azure_image_standard.py
Source:azure_image_standard.py  
...854            disk=AzureDiskOptionSettings(has_resource_disk=True),855            supported_platform_type=[AZURE],856        ),857    )858    def verify_resource_disk_readme_file(self, log: Logger, node: RemoteNode) -> None:859        resource_disk_mount_point = get_resource_disk_mount_point(log, node)860        # verify that resource disk is mounted861        # function returns successfully if disk matching mount point is present862        node.features[Disk].get_partition_with_mount_point(resource_disk_mount_point)863        # verify lost+found folder exists864        fold_path = f"{resource_disk_mount_point}/lost+found"865        folder_exists = node.tools[Ls].path_exists(fold_path, sudo=True)866        assert_that(folder_exists, f"{fold_path} should be present").is_true()867        # verify DATALOSS_WARNING_README.txt file exists868        file_path = f"{resource_disk_mount_point}/DATALOSS_WARNING_README.txt"869        file_exists = node.tools[Ls].path_exists(file_path, sudo=True)870        assert_that(file_exists, f"{file_path} should be present").is_true()871        # verify 'WARNING: THIS IS A TEMPORARY DISK' contained in872        # DATALOSS_WARNING_README.txt file....Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
