Skip to content

Commit

Permalink
RHSTOR-6347: Enable recipe-based DR enrollment for discovered applica…
Browse files Browse the repository at this point in the history
…tions

Signed-off-by: Gowtham Shanmugasundaram <[email protected]>
  • Loading branch information
GowthamShanmugam committed Sep 19, 2024
1 parent f142826 commit c079f30
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
3 changes: 2 additions & 1 deletion locales/en/plugin__odf-console.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
"You have selected {{count}} namespaces, to view or change your selection go back to the previous step._other": "You have selected {{count}} namespaces, to view or change your selection go back to the previous step.",
"Secure selected namespace by defining resource label expressions.": "Secure selected namespace by defining resource label expressions.",
"Resource label": "Resource label",
"Secure namespaces as per Recipe definition.": "Secure namespaces as per Recipe definition.",
"Recipe": "Recipe",
"Recipe list": "Recipe list",
"Only recipes of the selected namespaces will appear in the list.": "Only recipes of the selected namespaces will appear in the list.",
"Select a recipe": "Select a recipe",
Expand Down Expand Up @@ -124,7 +126,6 @@
"Name:": "Name:",
"Configuration": "Configuration",
"Type:": "Type:",
"Recipe": "Recipe",
"Recipe name:": "Recipe name:",
"Recipe namespace:": "Recipe namespace:",
"Label expressions:": "Label expressions:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,11 @@ const moveToStep = async (step: number) => {
fireEvent.click(screen.getByText('Next'));
}

// Commented out recipe-based steps
if (step > 2) {
// Select recipe
// fireEvent.click(screen.getByText('Recipe'));
// fireEvent.click(screen.getByText('Select a recipe'));
// fireEvent.click(screen.getByText('mock-recipe-1'));
fireEvent.click(screen.getByText('Recipe'));
fireEvent.click(screen.getByText('Select a recipe'));
fireEvent.click(screen.getByText('mock-recipe-1'));

// Next wizard step
fireEvent.click(screen.getByText('Next'));
Expand Down Expand Up @@ -441,10 +440,7 @@ describe('Test namespace step', () => {
});
});

// The Recipe-bsaed dr protection is in Dev Preview for ODF 4.16.
// All Recipe-based test cases are skipped.
// https://bugzilla.redhat.com/show_bug.cgi?id=2291301
describe.skip('Test configure step', () => {
describe('Test configure step', () => {
beforeEach(() => {
render(<EnrollDiscoveredApplication />);
});
Expand Down Expand Up @@ -510,7 +506,7 @@ describe.skip('Test configure step', () => {
});
});

describe.skip('Test replication step', () => {
describe('Test replication step', () => {
beforeEach(() => {
render(<EnrollDiscoveredApplication />);
});
Expand Down Expand Up @@ -576,7 +572,7 @@ describe.skip('Test replication step', () => {
expect(screen.getByText('days')).toBeInTheDocument();
});
});
describe.skip('Test review step', () => {
describe('Test review step', () => {
beforeEach(() => {
render(<EnrollDiscoveredApplication />);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ export const Configuration: React.FC<ConfigurationProps> = ({
}
/>
</GridItem>
{/* The Recipe-bsaed dr protection is in Dev Preview for ODF 4.16.
https://bugzilla.redhat.com/show_bug.cgi?id=2291301
<GridItem
span={6}
className="mco-configuration-step__radio pf-v5-u-p-lg"
Expand All @@ -99,7 +96,7 @@ export const Configuration: React.FC<ConfigurationProps> = ({
}
checked={protectionMethod === ProtectionMethodType.RECIPE}
/>
</GridItem> */}
</GridItem>
</Grid>
</FormGroup>
{protectionMethod === ProtectionMethodType.RECIPE && (
Expand Down

0 comments on commit c079f30

Please sign in to comment.