Skip to content

Commit

Permalink
chore: fix CentOS, pref description
Browse files Browse the repository at this point in the history
Signed-off-by: Tim deBoer <[email protected]>
  • Loading branch information
deboer-tim committed May 6, 2024
1 parent 11a8cc2 commit e7c7101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
},
Expand Down
14 changes: 3 additions & 11 deletions packages/backend/src/build-disk-image.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7c7101

Please sign in to comment.