mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Add some more tests
This commit is contained in:
parent
bbec32a987
commit
943aab111f
2 changed files with 82 additions and 3 deletions
4
tests/integration/manifests/oldstable64.yml
Normal file
4
tests/integration/manifests/oldstable64.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
system:
|
||||||
|
release: oldstable
|
||||||
|
architecture: amd64
|
|
@ -1,5 +1,6 @@
|
||||||
from manifests import merge_manifest_data
|
from manifests import merge_manifest_data
|
||||||
from tools.bootable_manifest import BootableManifest
|
from tools.bootable_manifest import BootableManifest
|
||||||
|
from nose.plugins.skip import Skip
|
||||||
|
|
||||||
partials = {'vbox': 'provider: {name: virtualbox}',
|
partials = {'vbox': 'provider: {name: virtualbox}',
|
||||||
'vdi': 'volume: {backing: vdi}',
|
'vdi': 'volume: {backing: vdi}',
|
||||||
|
@ -7,10 +8,84 @@ partials = {'vbox': 'provider: {name: virtualbox}',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def test_virtualbox_partitioned_extlinux():
|
def test_unpartitioned_extlinux_oldstable():
|
||||||
std_partials = ['base', 'stable64', 'extlinux', 'msdos', 'single_partition',
|
std_partials = ['base', 'oldstable64', 'extlinux', 'unpartitioned',
|
||||||
'root_password', 'apt_proxy']
|
'root_password', 'apt_proxy']
|
||||||
custom_partials = [partials['vbox'], partials['vdi']]
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
|
with BootableManifest(manifest_data) as instance:
|
||||||
|
print(instance.console_output)
|
||||||
|
|
||||||
|
|
||||||
|
def test_partitioned_extlinux_oldstable():
|
||||||
|
std_partials = ['base', 'oldstable64', 'extlinux', 'msdos', 'single_partition',
|
||||||
|
'root_password', 'apt_proxy']
|
||||||
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
|
with BootableManifest(manifest_data) as instance:
|
||||||
|
print(instance.console_output)
|
||||||
|
|
||||||
|
|
||||||
|
def test_partitioned_grub_oldstable():
|
||||||
|
std_partials = ['base', 'oldstable64', 'grub', 'msdos', 'single_partition',
|
||||||
|
'root_password', 'apt_proxy']
|
||||||
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
|
with BootableManifest(manifest_data) as instance:
|
||||||
|
print(instance.console_output)
|
||||||
|
|
||||||
|
|
||||||
|
def test_unpartitioned_extlinux():
|
||||||
|
std_partials = ['base', 'stable64', 'extlinux', 'unpartitioned',
|
||||||
|
'root_password', 'apt_proxy']
|
||||||
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
|
with BootableManifest(manifest_data) as instance:
|
||||||
|
print(instance.console_output)
|
||||||
|
|
||||||
|
|
||||||
|
def test_partitioned_extlinux():
|
||||||
|
std_partials = ['base', 'stable64', 'extlinux', 'msdos', 'single_partition',
|
||||||
|
'root_password', 'apt_proxy']
|
||||||
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
|
with BootableManifest(manifest_data) as instance:
|
||||||
|
print(instance.console_output)
|
||||||
|
|
||||||
|
|
||||||
|
def test_partitioned_grub():
|
||||||
|
std_partials = ['base', 'stable64', 'grub', 'msdos', 'single_partition',
|
||||||
|
'root_password', 'apt_proxy']
|
||||||
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
|
with BootableManifest(manifest_data) as instance:
|
||||||
|
print(instance.console_output)
|
||||||
|
|
||||||
|
|
||||||
|
def test_unpartitioned_extlinux_unstable():
|
||||||
|
raise Skip('Jessie not yet working with extlinux')
|
||||||
|
std_partials = ['base', 'unstable64', 'extlinux', 'msdos', 'unpartitioned',
|
||||||
|
'root_password', 'apt_proxy']
|
||||||
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
|
with BootableManifest(manifest_data) as instance:
|
||||||
|
print(instance.console_output)
|
||||||
|
|
||||||
|
|
||||||
|
def test_partitioned_extlinux_unstable():
|
||||||
|
raise Skip('Jessie not yet working with extlinux')
|
||||||
|
std_partials = ['base', 'unstable64', 'extlinux', 'msdos', 'single_partition',
|
||||||
|
'root_password', 'apt_proxy']
|
||||||
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
|
with BootableManifest(manifest_data) as instance:
|
||||||
|
print(instance.console_output)
|
||||||
|
|
||||||
|
|
||||||
|
def test_partitioned_grub_unstable():
|
||||||
|
std_partials = ['base', 'unstable64', 'grub', 'msdos', 'single_partition',
|
||||||
|
'root_password', 'apt_proxy']
|
||||||
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
||||||
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
||||||
with BootableManifest(manifest_data) as instance:
|
with BootableManifest(manifest_data) as instance:
|
||||||
print(instance.console_output)
|
print(instance.console_output)
|
||||||
|
|
Loading…
Add table
Reference in a new issue