Wizard: Add hostname to on-prem mapper
This adds hostname to on-prem mapper and updates a test that checks if the value got parsed correctly.
This commit is contained in:
parent
8c8e446200
commit
73eaecc51e
2 changed files with 5 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ version = "*"
|
|||
name = "anaconda-tools"
|
||||
|
||||
[customizations]
|
||||
hostname = "baseimage"
|
||||
hostname = "base-image"
|
||||
fips = true
|
||||
|
||||
[[customizations.sshkey]]
|
||||
|
|
@ -374,6 +374,9 @@ describe('Import modal', () => {
|
|||
);
|
||||
expect(keyboardDropDown).toHaveValue('us');
|
||||
|
||||
// Hostname
|
||||
await clickNext();
|
||||
const hostnameInput = await screen.findByPlaceholderText(/Add a hostname/i);
|
||||
expect(hostnameInput).toHaveValue('base-image');
|
||||
}, 20000);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ export const mapOnPremToHosted = (
|
|||
keyboard: blueprint.customizations.locale.keyboard,
|
||||
}
|
||||
: undefined,
|
||||
hostname: blueprint.customizations?.hostname || undefined,
|
||||
},
|
||||
metadata: {
|
||||
parent_id: null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue