Blueprints: Add kernel to on-prem mapper
This adds kernel to the on-prem mapper.
This commit is contained in:
parent
6e36232e1a
commit
a4d672b4e8
2 changed files with 19 additions and 0 deletions
|
|
@ -161,6 +161,13 @@ export const mapOnPremToHosted = (
|
|||
}
|
||||
: undefined,
|
||||
hostname: blueprint.customizations?.hostname || undefined,
|
||||
kernel:
|
||||
blueprint.customizations?.kernel !== undefined
|
||||
? {
|
||||
name: blueprint.customizations.kernel.name,
|
||||
append: blueprint.customizations.kernel.append,
|
||||
}
|
||||
: undefined,
|
||||
},
|
||||
metadata: {
|
||||
parent_id: null,
|
||||
|
|
|
|||
|
|
@ -180,6 +180,10 @@ ntpservers = ["0.north-america.pool.ntp.org", "1.north-america.pool.ntp.org"]
|
|||
[customizations.locale]
|
||||
languages = ["en_US.UTF-8", "ja_JP.UTF-8"]
|
||||
keyboard = "us"
|
||||
|
||||
[customizations.kernel]
|
||||
name = "kernel-debug"
|
||||
append = "nosmt=force"
|
||||
`;
|
||||
|
||||
const uploadFile = async (filename: string, content: string): Promise<void> => {
|
||||
|
|
@ -378,5 +382,13 @@ describe('Import modal', () => {
|
|||
await clickNext();
|
||||
const hostnameInput = await screen.findByPlaceholderText(/Add a hostname/i);
|
||||
expect(hostnameInput).toHaveValue('base-image');
|
||||
|
||||
// Kernel
|
||||
await clickNext();
|
||||
const kernelNameInput = await screen.findByPlaceholderText(
|
||||
/Select kernel package/i
|
||||
);
|
||||
expect(kernelNameInput).toHaveValue('kernel-debug');
|
||||
await screen.findByText('nosmt=force');
|
||||
}, 20000);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue