[live-media] Koji option is ksfile, not kickstart
In config, it is still called kickstart to be consistent with how image-build calls it. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
6ec151cde2
commit
ac29bf05ee
@ -87,7 +87,7 @@ class LiveMediaPhase(PhaseBase):
|
|||||||
config = {
|
config = {
|
||||||
'target': image_conf['target'],
|
'target': image_conf['target'],
|
||||||
'arches': self._get_arches(image_conf, arches),
|
'arches': self._get_arches(image_conf, arches),
|
||||||
'kickstart': image_conf['kickstart'],
|
'ksfile': image_conf['kickstart'],
|
||||||
'ksurl': resolve_git_url(image_conf['ksurl']),
|
'ksurl': resolve_git_url(image_conf['ksurl']),
|
||||||
'ksversion': image_conf.get('ksversion'),
|
'ksversion': image_conf.get('ksversion'),
|
||||||
'scratch': image_conf.get('scratch', False),
|
'scratch': image_conf.get('scratch', False),
|
||||||
|
@ -89,7 +89,7 @@ class TestLiveMediaPhase(unittest.TestCase):
|
|||||||
compose.variants['Server'],
|
compose.variants['Server'],
|
||||||
{
|
{
|
||||||
'arches': ['amd64', 'x86_64'],
|
'arches': ['amd64', 'x86_64'],
|
||||||
'kickstart': 'file.ks',
|
'ksfile': 'file.ks',
|
||||||
'ksurl': 'git://example.com/repo.git',
|
'ksurl': 'git://example.com/repo.git',
|
||||||
'ksversion': None,
|
'ksversion': None,
|
||||||
'name': 'Fedora Server Live',
|
'name': 'Fedora Server Live',
|
||||||
@ -186,7 +186,7 @@ class TestLiveMediaPhase(unittest.TestCase):
|
|||||||
compose.variants['Server'],
|
compose.variants['Server'],
|
||||||
{
|
{
|
||||||
'arches': ['x86_64'],
|
'arches': ['x86_64'],
|
||||||
'kickstart': 'file.ks',
|
'ksfile': 'file.ks',
|
||||||
'ksurl': 'resolved',
|
'ksurl': 'resolved',
|
||||||
'ksversion': '24',
|
'ksversion': '24',
|
||||||
'name': 'Fedora Server Live',
|
'name': 'Fedora Server Live',
|
||||||
@ -214,7 +214,7 @@ class TestCreateImageBuildThread(unittest.TestCase):
|
|||||||
})
|
})
|
||||||
config = {
|
config = {
|
||||||
'arches': ['amd64', 'x86_64'],
|
'arches': ['amd64', 'x86_64'],
|
||||||
'kickstart': 'file.ks',
|
'ksfile': 'file.ks',
|
||||||
'ksurl': 'git://example.com/repo.git',
|
'ksurl': 'git://example.com/repo.git',
|
||||||
'ksversion': None,
|
'ksversion': None,
|
||||||
'name': 'Fedora Server Live',
|
'name': 'Fedora Server Live',
|
||||||
@ -264,7 +264,7 @@ class TestCreateImageBuildThread(unittest.TestCase):
|
|||||||
[mock.call('koji-spin-livemedia', log_file='/a/b/log/log_file')])
|
[mock.call('koji-spin-livemedia', log_file='/a/b/log/log_file')])
|
||||||
self.assertEqual(get_live_media_cmd.mock_calls,
|
self.assertEqual(get_live_media_cmd.mock_calls,
|
||||||
[mock.call({'arch': 'amd64,x86_64',
|
[mock.call({'arch': 'amd64,x86_64',
|
||||||
'kickstart': 'file.ks',
|
'ksfile': 'file.ks',
|
||||||
'ksurl': 'git://example.com/repo.git',
|
'ksurl': 'git://example.com/repo.git',
|
||||||
'ksversion': None,
|
'ksversion': None,
|
||||||
'name': 'Fedora Server Live',
|
'name': 'Fedora Server Live',
|
||||||
@ -315,7 +315,7 @@ class TestCreateImageBuildThread(unittest.TestCase):
|
|||||||
})
|
})
|
||||||
config = {
|
config = {
|
||||||
'arches': ['amd64', 'x86_64'],
|
'arches': ['amd64', 'x86_64'],
|
||||||
'kickstart': 'file.ks',
|
'ksfile': 'file.ks',
|
||||||
'ksurl': 'git://example.com/repo.git',
|
'ksurl': 'git://example.com/repo.git',
|
||||||
'ksversion': None,
|
'ksversion': None,
|
||||||
'name': 'Fedora Server Live',
|
'name': 'Fedora Server Live',
|
||||||
@ -354,7 +354,7 @@ class TestCreateImageBuildThread(unittest.TestCase):
|
|||||||
})
|
})
|
||||||
config = {
|
config = {
|
||||||
'arches': ['amd64', 'x86_64'],
|
'arches': ['amd64', 'x86_64'],
|
||||||
'kickstart': 'file.ks',
|
'ksfile': 'file.ks',
|
||||||
'ksurl': 'git://example.com/repo.git',
|
'ksurl': 'git://example.com/repo.git',
|
||||||
'ksversion': None,
|
'ksversion': None,
|
||||||
'name': 'Fedora Server Live',
|
'name': 'Fedora Server Live',
|
||||||
|
Loading…
Reference in New Issue
Block a user