Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance cleanup e2e #1783

Merged
merged 3 commits into from
Sep 7, 2023
Merged

Instance cleanup e2e #1783

merged 3 commits into from
Sep 7, 2023

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Sep 4, 2023

Description

E2E tests for the instance deregistration feature.

@arbulu89 arbulu89 added the chore label Sep 4, 2023
@arbulu89 arbulu89 force-pushed the instance-cleanup-e2e branch from 79b0cfd to 55cba16 Compare September 4, 2023 14:42
@arbulu89 arbulu89 marked this pull request as ready for review September 4, 2023 14:57
@arbulu89 arbulu89 added the test label Sep 6, 2023
Copy link
Member

@EMaksy EMaksy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wide LGTM :)

Copy link
Contributor

@rtorrero rtorrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, 2 minor things commented

@@ -291,4 +288,40 @@ files = [
"./test/fixtures/scenarios/healthy-27-node-SAP-cluster/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_host_discovery.json",
"./test/fixtures/scenarios/healthy-27-node-SAP-cluster/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery.json",
"./test/fixtures/scenarios/healthy-27-node-SAP-cluster/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_subscription_discovery.json",
]

[NWD-00-present]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed we usually start these with sapsystem- or database- or host-... depending on what we are pushing. In this case it's obvious but I'd add it to keep the good habit I guess :-)

cy.get('table.table-fixed > tbody > tr').eq(0).click();
});

it('should mark an instance as absent and restore it as present', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm missing a "when" or an "after" to describe the condition

@arbulu89 arbulu89 force-pushed the instance-cleanup-e2e branch from 5d1f350 to 8b45a74 Compare September 7, 2023 09:37
@arbulu89 arbulu89 merged commit 09bee58 into main Sep 7, 2023
@arbulu89 arbulu89 deleted the instance-cleanup-e2e branch September 7, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants