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:
regexowl 2024-12-12 08:59:49 +01:00 committed by Klara Simickova
parent 8c8e446200
commit 73eaecc51e
2 changed files with 5 additions and 1 deletions

View file

@ -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);
});

View file

@ -160,6 +160,7 @@ export const mapOnPremToHosted = (
keyboard: blueprint.customizations.locale.keyboard,
}
: undefined,
hostname: blueprint.customizations?.hostname || undefined,
},
metadata: {
parent_id: null,