CreateImageWizard: Use rhel minor versions everywhere
Fallout from switching to minor versions everywhere.
This commit is contained in:
parent
44dad3daa9
commit
6449111c5d
3 changed files with 10 additions and 10 deletions
|
|
@ -3,7 +3,7 @@ import validatorTypes from '@data-driven-forms/react-form-renderer/validator-typ
|
|||
import nextStepMapper from './imageOutputStepMapper';
|
||||
|
||||
export const releaseValues = {
|
||||
'rhel-8': 'Red Hat Enterprise Linux (RHEL) 8',
|
||||
'rhel-84': 'Red Hat Enterprise Linux (RHEL) 8',
|
||||
'centos-8': 'CentOS Stream 8'
|
||||
};
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ export default {
|
|||
label: 'Release',
|
||||
name: 'release',
|
||||
simpleValue: true,
|
||||
initialValue: 'rhel-8',
|
||||
initialValue: 'rhel-84',
|
||||
options: Object.entries(releaseValues).map(([ key, title ]) => ({
|
||||
label: title,
|
||||
value: key
|
||||
|
|
|
|||
|
|
@ -11,5 +11,5 @@ export default ({ 'target-environment': targetEnv, release } = {}, { skipAws, sk
|
|||
return 'ms-azure-target-env';
|
||||
}
|
||||
|
||||
return release === 'rhel-8' ? 'registration' : 'packages';
|
||||
return release === 'rhel-84' ? 'registration' : 'packages';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ describe('Step Image output', () => {
|
|||
// const release = screen.getByTestId('release-select');
|
||||
// expect(release).toBeEnabled();
|
||||
|
||||
// userEvent.selectOptions(release, [ 'rhel-8' ]);
|
||||
// userEvent.selectOptions(release, [ 'rhel-84' ]);
|
||||
// });
|
||||
|
||||
test('target environment is required', () => {
|
||||
|
|
@ -496,7 +496,7 @@ describe('Click through all steps', () => {
|
|||
const next = screen.getByRole('button', { name: /Next/ });
|
||||
|
||||
// select image output
|
||||
// userEvent.selectOptions(screen.getByTestId('release-select'), [ 'rhel-8' ]);
|
||||
// userEvent.selectOptions(screen.getByTestId('release-select'), [ 'rhel-84' ]);
|
||||
screen.getByTestId('upload-aws').click();
|
||||
screen.getByTestId('upload-azure').click();
|
||||
screen.getByTestId('upload-google').click();
|
||||
|
|
@ -562,7 +562,7 @@ describe('Click through all steps', () => {
|
|||
let id;
|
||||
if (body.image_requests[0].upload_request.type === 'aws') {
|
||||
expect(body).toEqual({
|
||||
distribution: 'rhel-8',
|
||||
distribution: 'rhel-84',
|
||||
image_requests: [{
|
||||
architecture: 'x86_64',
|
||||
image_type: 'ami',
|
||||
|
|
@ -587,7 +587,7 @@ describe('Click through all steps', () => {
|
|||
id = 'edbae1c2-62bc-42c1-ae0c-3110ab718f56';
|
||||
} else if (body.image_requests[0].upload_request.type === 'gcp') {
|
||||
expect(body).toEqual({
|
||||
distribution: 'rhel-8',
|
||||
distribution: 'rhel-84',
|
||||
image_requests: [{
|
||||
architecture: 'x86_64',
|
||||
image_type: 'vhd',
|
||||
|
|
@ -612,7 +612,7 @@ describe('Click through all steps', () => {
|
|||
id = 'edbae1c2-62bc-42c1-ae0c-3110ab718f57';
|
||||
} else if (body.image_requests[0].upload_request.type === 'azure') {
|
||||
expect(body).toEqual({
|
||||
distribution: 'rhel-8',
|
||||
distribution: 'rhel-84',
|
||||
image_requests: [{
|
||||
architecture: 'x86_64',
|
||||
image_type: 'vhd',
|
||||
|
|
@ -660,7 +660,7 @@ describe('Click through all steps', () => {
|
|||
const next = screen.getByRole('button', { name: /Next/ });
|
||||
|
||||
// select release
|
||||
// userEvent.selectOptions(screen.getByTestId('release-select'), [ 'rhel-8' ]);
|
||||
// userEvent.selectOptions(screen.getByTestId('release-select'), [ 'rhel-84' ]);
|
||||
screen.getByTestId('upload-aws').click();
|
||||
next.click();
|
||||
|
||||
|
|
@ -700,7 +700,7 @@ describe('Click through all steps', () => {
|
|||
test('with invalid values', async () => {
|
||||
|
||||
// select release
|
||||
// userEvent.selectOptions(screen.getByTestId('release-select'), [ 'rhel-8' ]);
|
||||
// userEvent.selectOptions(screen.getByTestId('release-select'), [ 'rhel-84' ]);
|
||||
// select upload target
|
||||
screen.getByTestId('upload-aws').click();
|
||||
screen.getByRole('button', { name: /Next/ }).click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue