| 1 |
from kiwi.bootloader.template.zipl import BootLoaderTemplateZipl |
| 2 |
|
| 3 |
|
| 4 |
class TestBootLoaderTemplateZipl: |
| 5 |
def setup(self): |
| 6 |
self.zipl = BootLoaderTemplateZipl() |
| 7 |
|
| 8 |
def setup_method(self, cls): |
| 9 |
self.setup() |
| 10 |
|
| 11 |
def test_get_loader_template(self): |
| 12 |
assert self.zipl.get_loader_template().substitute( |
| 13 |
boot_timeout='10', |
| 14 |
bootpath='/boot', |
| 15 |
targetbase='', |
| 16 |
targettype='SCSI', |
| 17 |
targetblocksize='512', |
| 18 |
targetoffset='2048', |
| 19 |
targetgeometry='' |
| 20 |
) |
| 21 |
|
| 22 |
def test_get_entry_template_standard(self): |
| 23 |
assert self.zipl.get_entry_template().substitute( |
| 24 |
title='title', |
| 25 |
boot_options='', |
| 26 |
kernel_file='linux', |
| 27 |
initrd_file='initrd' |
| 28 |
) |
| 29 |
|
| 30 |
def test_get_entry_template_secure(self): |
| 31 |
assert self.zipl.get_entry_template(secure=True).substitute( |
| 32 |
title='title', |
| 33 |
boot_options='', |
| 34 |
secure_image_file='linux' |
| 35 |
) |