diff --git a/packages/backend/package.json b/packages/backend/package.json index beacce8d..6153407f 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -23,12 +23,12 @@ }, "bootc.builder": { "type": "string", - "default": "Centos", + "default": "CentOS", "enum": [ - "Centos", + "CentOS", "RHEL" ], - "description": "Builder image" + "description": "Builder image used to create disk images" } } }, diff --git a/packages/backend/src/build-disk-image.spec.ts b/packages/backend/src/build-disk-image.spec.ts index c894a8d1..cc3364cb 100644 --- a/packages/backend/src/build-disk-image.spec.ts +++ b/packages/backend/src/build-disk-image.spec.ts @@ -257,24 +257,16 @@ test('check build exists', async () => { test('check uses RHEL builder', async () => { configurationGetConfigurationMock.mockReturnValue('RHEL'); - const build = { - image: 'test-image', - type: ['ami'], - } as BootcBuildInfo; - const builder = await getBuilder(build); + const builder = await getBuilder(); expect(builder).toBeDefined(); expect(builder).toEqual(bootcImageBuilderRHEL); }); test('check uses Centos builder', async () => { - configurationGetConfigurationMock.mockReturnValue('centos'); + configurationGetConfigurationMock.mockReturnValue('CentOS'); - const build = { - image: 'test-image', - type: ['ami'], - } as BootcBuildInfo; - const builder = await getBuilder(build); + const builder = await getBuilder(); expect(builder).toBeDefined(); expect(builder).toEqual(bootcImageBuilderCentos);