How to use get_aws_disk_type method in lisa

Best Python code snippet using lisa_python

platform_.py

Source:platform_.py Github

copy

Full Screen

...535 aws_node_runbook.marketplace = AwsVmMarketplaceSchema()536 # Set disk type537 assert node_space.disk, "node space must have disk defined."538 assert isinstance(node_space.disk.disk_type, schema.DiskType)539 aws_node_runbook.disk_type = features.get_aws_disk_type(540 node_space.disk.disk_type541 )542 aws_node_runbook.data_disk_caching_type = node_space.disk.data_disk_caching_type543 assert isinstance(544 node_space.disk.data_disk_iops, int545 ), f"actual: {type(node_space.disk.data_disk_iops)}"546 aws_node_runbook.data_disk_iops = node_space.disk.data_disk_iops547 assert isinstance(548 node_space.disk.data_disk_size, int549 ), f"actual: {type(node_space.disk.data_disk_size)}"550 aws_node_runbook.data_disk_size = node_space.disk.data_disk_size551 assert node_space.network_interface552 assert isinstance(553 node_space.network_interface.nic_count, int...

Full Screen

Full Screen

features.py

Source:features.py Github

copy

Full Screen

...49 instance.wait_until_running()50 def _initialize(self, *args: Any, **kwargs: Any) -> None:51 super()._initialize(*args, **kwargs)52 self._initialize_information(self._node)53def get_aws_disk_type(disk_type: schema.DiskType) -> str:54 assert isinstance(disk_type, schema.DiskType), (55 f"the disk_type must be one value when calling get_disk_type. "56 f"But it's {disk_type}"57 )58 result = _disk_type_mapping.get(disk_type, None)59 assert result, f"unknown disk type: {disk_type}"60 return result61# There are more disk types in AWS than Azure, like io2/gp3/io 2 Block Express.62# If need to verify the storage performance of other types, please update the mapping.63# Refer to https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html.64# DiskType.Ephemeral is not supported on AWS now.65_disk_type_mapping: Dict[schema.DiskType, str] = {66 schema.DiskType.PremiumSSDLRS: "io1",67 schema.DiskType.StandardHDDLRS: "st1",...

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run lisa automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful