mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Add tests for all ebs 64 bit pvgrub booted instances
This commit is contained in:
parent
0c20acce11
commit
29fd2d928a
1 changed files with 72 additions and 0 deletions
|
@ -10,6 +10,33 @@ partials = {'ec2': 'provider: {name: ec2}',
|
|||
}
|
||||
|
||||
|
||||
def test_unpartitioned_ebs_pvgrub_oldstable():
|
||||
std_partials = ['base', 'oldstable64', 'unpartitioned', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
||||
|
||||
def test_msdos_ebs_pvgrub_oldstable():
|
||||
std_partials = ['base', 'oldstable64', 'msdos', 'single_partition', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
||||
|
||||
def test_gpt_ebs_pvgrub_oldstable():
|
||||
std_partials = ['base', 'oldstable64', 'gpt', 'single_partition', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
||||
|
||||
def test_unpartitioned_ebs_pvgrub_stable():
|
||||
std_partials = ['base', 'stable64', 'unpartitioned', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
|
@ -17,3 +44,48 @@ def test_unpartitioned_ebs_pvgrub_stable():
|
|||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
||||
|
||||
def test_msdos_ebs_pvgrub_stable():
|
||||
std_partials = ['base', 'stable64', 'msdos', 'single_partition', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
||||
|
||||
def test_gpt_ebs_pvgrub_stable():
|
||||
std_partials = ['base', 'stable64', 'gpt', 'single_partition', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
||||
|
||||
def test_unpartitioned_ebs_pvgrub_unstable():
|
||||
std_partials = ['base', 'unstable64', 'unpartitioned', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
||||
|
||||
def test_msdos_ebs_pvgrub_unstable():
|
||||
std_partials = ['base', 'unstable64', 'msdos', 'single_partition', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
||||
|
||||
def test_gpt_ebs_pvgrub_unstable():
|
||||
std_partials = ['base', 'unstable64', 'gpt', 'single_partition', 'root_password']
|
||||
custom_partials = [partials['ec2'], partials['ebs'], partials['pvm']]
|
||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||
boot_vars = {'instance_type': 't1.micro'}
|
||||
with boot_manifest(manifest_data, boot_vars) as instance:
|
||||
print(instance.get_console_output().output)
|
||||
|
|
Loading…
Add table
Reference in a new issue