diff --git a/src/Components/Blueprints/ImportBlueprintModal.test.tsx b/src/Components/Blueprints/ImportBlueprintModal.test.tsx index 1993f830..68d59c11 100644 --- a/src/Components/Blueprints/ImportBlueprintModal.test.tsx +++ b/src/Components/Blueprints/ImportBlueprintModal.test.tsx @@ -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); }); diff --git a/src/Components/Blueprints/helpers/onPremToHostedBlueprintMapper.tsx b/src/Components/Blueprints/helpers/onPremToHostedBlueprintMapper.tsx index 75954503..d7997f79 100644 --- a/src/Components/Blueprints/helpers/onPremToHostedBlueprintMapper.tsx +++ b/src/Components/Blueprints/helpers/onPremToHostedBlueprintMapper.tsx @@ -160,6 +160,7 @@ export const mapOnPremToHosted = ( keyboard: blueprint.customizations.locale.keyboard, } : undefined, + hostname: blueprint.customizations?.hostname || undefined, }, metadata: { parent_id: null,