mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
19 lines
897 B
Python
19 lines
897 B
Python
from manifests import merge_manifest_data
|
|
from tools import boot_manifest
|
|
|
|
partials = {'ec2': 'provider: {name: ec2}',
|
|
'ebs': 'volume: {backing: ebs}',
|
|
's3': 'volume: {backing: s3}',
|
|
'pvm': '{provider: {virtualization: pvm}, system: {bootloader: pvgrub}}',
|
|
'hvm-extlinux': '{provider: {virtualization: hvm}, system: {bootloader: extlinux}}',
|
|
'hvm-grub': '{provider: {virtualization: hvm}, system: {bootloader: grub}}',
|
|
}
|
|
|
|
|
|
def test_unpartitioned_ebs_pvgrub_stable():
|
|
std_partials = ['base', 'stable64', '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)
|