def testPremiumStorage(self): test_util.assertDiskMounts({ 'flags': { 'azure_storage_type': 'PLRS' }, 'vm_groups': { 'vm_group_1': { 'cloud': 'Azure', 'vm_spec': { 'Azure': { 'machine_type': 'Standard_DS2', 'zone': 'East US' } }, 'disk_spec': { 'Azure': { 'disk_type': 'premium-storage', 'disk_size': 10, # disk size must be between # 10 and 1024 GB. 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testEBSPIOPS(self): test_util.assertDiskMounts( { 'vm_groups': { 'vm_group_1': { 'cloud': 'AWS', 'vm_spec': { 'AWS': { 'machine_type': 'm4.large', 'zone': 'us-east-1a' } }, 'disk_spec': { 'AWS': { 'disk_type': 'io1', 'disk_size': 35, # maximum size/IOPS ratio is 30 'iops': 100, # minimum value is 100 IOPS 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testPremiumStorage(self): test_util.assertDiskMounts( { 'flags': { 'azure_storage_type': 'PLRS' }, 'vm_groups': { 'vm_group_1': { 'cloud': 'Azure', 'vm_spec': { 'Azure': { 'machine_type': 'Standard_DS2', 'zone': 'East US' } }, 'disk_spec': { 'Azure': { 'disk_type': 'premium-storage', 'disk_size': 10, # disk size must be between # 10 and 1024 GB. 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testStandardDisk(self): test_util.assertDiskMounts( { 'flags': { 'azure_storage_type': 'LRS' }, 'vm_groups': { 'vm_group_1': { 'cloud': 'Azure', 'vm_spec': { 'Azure': { 'machine_type': 'Standard_D2', 'zone': 'East US' } }, 'disk_spec': { 'Azure': { 'disk_type': 'standard-disk', 'disk_size': 2, 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testStandardDisk(self): test_util.assertDiskMounts( { 'flags': { 'azure_storage_type': azure_flags.LRS }, 'vm_groups': { 'vm_group_1': { 'cloud': 'Azure', 'vm_spec': { 'Azure': { 'machine_type': 'Standard_D2', 'zone': 'eastus' } }, 'disk_spec': { 'Azure': { 'disk_type': azure_disk.STANDARD_DISK, 'disk_size': 2, 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testEBSGP(self): test_util.assertDiskMounts( { "vm_groups": { "vm_group_1": { "cloud": "AWS", "vm_spec": {"AWS": {"machine_type": "m4.large", "zone": "us-east-1a"}}, "disk_spec": {"AWS": {"disk_type": "gp2", "disk_size": 2, "mount_point": MOUNT_POINT}}, } } }, MOUNT_POINT, )
def testLocalSSD(self): test_util.assertDiskMounts( { "vm_groups": { "vm_group_1": { "cloud": "AWS", "vm_spec": {"AWS": {"machine_type": "m3.medium", "zone": "us-east-1a"}}, "disk_spec": {"AWS": {"disk_type": "local", "mount_point": MOUNT_POINT}}, } } }, MOUNT_POINT, )
def testPDSSD(self): test_util.assertDiskMounts( { "vm_groups": { "vm_group_1": { "cloud": "GCP", "vm_spec": {"GCP": {"machine_type": "n1-standard-2", "zone": "us-central1-a"}}, "disk_spec": {"GCP": {"disk_type": "remote_ssd", "disk_size": 2, "mount_point": MOUNT_POINT}}, } } }, MOUNT_POINT, )
def testLocalSSD(self): test_util.assertDiskMounts( { "vm_groups": { "vm_group_1": { "cloud": "GCP", "vm_spec": { "GCP": {"machine_type": "n1-standard-2", "zone": "us-central1-a", "num_local_ssds": 1} }, "disk_spec": {"GCP": {"disk_type": "local", "mount_point": MOUNT_POINT}}, } } }, MOUNT_POINT, )
def testLocalSSD(self): test_util.assertDiskMounts({ 'vm_groups': { 'vm_group_1': { 'cloud': 'AWS', 'vm_spec': { 'AWS': { 'machine_type': 'm3.medium', 'zone': 'us-east-1a' } }, 'disk_spec': { 'AWS': { 'disk_type': 'local', 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testLocalSSD(self): test_util.assertDiskMounts({ 'vm_groups': { 'vm_group_1': { 'cloud': 'Azure', 'vm_spec': { 'Azure': { 'machine_type': 'Standard_G1', 'zone': 'East US 2' } }, 'disk_spec': { 'Azure': { 'disk_type': 'local', 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testEBSPIOPS(self): test_util.assertDiskMounts( { "vm_groups": { "vm_group_1": { "cloud": "AWS", "vm_spec": {"AWS": {"machine_type": "m4.large", "zone": "us-east-1a"}}, "disk_spec": { "AWS": { "disk_type": "io1", "disk_size": 35, # maximum size/IOPS ratio is 30 "iops": 100, # minimum value is 100 IOPS "mount_point": MOUNT_POINT, } }, } } }, MOUNT_POINT, )
def testLocalSSD(self): test_util.assertDiskMounts({ 'vm_groups': { 'vm_group_1': { 'cloud': 'Azure', 'vm_spec': { 'Azure': { 'machine_type': 'Standard_D1', 'zone': 'East US' } }, 'disk_spec': { 'Azure': { 'disk_type': 'local', 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testLocalSSD(self): test_util.assertDiskMounts({ 'vm_groups': { 'vm_group_1': { 'cloud': 'GCP', 'vm_spec': { 'GCP': { 'machine_type': 'n1-standard-2', 'zone': 'us-central1-a', 'num_local_ssds': 1 } }, 'disk_spec': { 'GCP': { 'disk_type': 'local', 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testPDSSD(self): test_util.assertDiskMounts({ 'vm_groups': { 'vm_group_1': { 'cloud': 'GCP', 'vm_spec': { 'GCP': { 'machine_type': 'n1-standard-2', 'zone': 'us-central1-a' } }, 'disk_spec': { 'GCP': { 'disk_type': 'pd-ssd', 'disk_size': 2, 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testEBSGP(self): test_util.assertDiskMounts({ 'vm_groups': { 'vm_group_1': { 'cloud': 'AWS', 'vm_spec': { 'AWS': { 'machine_type': 'm4.large', 'zone': 'us-east-1a' } }, 'disk_spec': { 'AWS': { 'disk_type': 'remote_ssd', 'disk_size': 2, 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testLocalSSD(self): test_util.assertDiskMounts( { 'vm_groups': { 'vm_group_1': { 'cloud': 'AWS', 'vm_spec': { 'AWS': { 'machine_type': 'm3.medium', 'zone': 'us-east-1a' } }, 'disk_spec': { 'AWS': { 'disk_type': 'local', 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testEBSPIOPS(self): test_util.assertDiskMounts({ 'vm_groups': { 'vm_group_1': { 'cloud': 'AWS', 'vm_spec': { 'AWS': { 'machine_type': 'm4.large', 'zone': 'us-east-1a' } }, 'disk_spec': { 'AWS': { 'disk_type': 'io1', 'disk_size': 35, # maximum size/IOPS ratio is 30 'iops': 100, # minimum value is 100 IOPS 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testEBSGP(self): test_util.assertDiskMounts( { 'vm_groups': { 'vm_group_1': { 'cloud': 'AWS', 'vm_spec': { 'AWS': { 'machine_type': 'm4.large', 'zone': 'us-east-1a' } }, 'disk_spec': { 'AWS': { 'disk_type': 'gp2', 'disk_size': 2, 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testStandardDisk(self): test_util.assertDiskMounts({ 'flags': { 'azure_storage_type': 'LRS' }, 'vm_groups': { 'vm_group_1': { 'cloud': 'Azure', 'vm_spec': { 'Azure': { 'machine_type': 'Standard_D2', 'zone': 'East US' } }, 'disk_spec': { 'Azure': { 'disk_type': 'standard-disk', 'disk_size': 2, 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)
def testStandardDisk(self): test_util.assertDiskMounts({ 'flags': { 'azure_storage_type': azure_flags.LRS }, 'vm_groups': { 'vm_group_1': { 'cloud': 'Azure', 'vm_spec': { 'Azure': { 'machine_type': 'Standard_D2', 'zone': 'eastus' } }, 'disk_spec': { 'Azure': { 'disk_type': azure_disk.STANDARD_DISK, 'disk_size': 2, 'mount_point': MOUNT_POINT } } } } }, MOUNT_POINT)