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

test(api): add resource deletion step in e2e test cases #512

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

hardcoretime
Copy link
Contributor

@hardcoretime hardcoretime commented Nov 10, 2024

  • exclude namespace in resource deletion step;
  • refactor apply and delete kubectl commands;
  • handle errors in clean up phase;
  • add resource deletion step in each test case.

Description

When test case is completed it's resources should be deleted.

Why do we need it, and what problem does it solve?

To catch errors when virtualization resources cannot be deleted correctly.

What is the expected result?

All resources in E2E tests should be deleted correctly in each test case.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@hardcoretime hardcoretime force-pushed the test/api/resource-deletion-step-in-e2e-tests branch 2 times, most recently from a3ada25 to bde4c17 Compare November 11, 2024 10:55
tests/e2e/kubectl/kubectl.go Show resolved Hide resolved
tests/e2e/sizing_policy_test.go Outdated Show resolved Hide resolved
Roman Sysoev added 2 commits November 26, 2024 01:59
- exclude namespace in resource deletion step;
- refactor `apply` and `delete` kubectl commands;
- handle errors in clean up phase;
- add resource deletion step in each test case.

Signed-off-by: Roman Sysoev <[email protected]>
@hardcoretime hardcoretime force-pushed the test/api/resource-deletion-step-in-e2e-tests branch from 3968af5 to e45b43c Compare November 25, 2024 22:59
@hardcoretime hardcoretime merged commit 48ade82 into main Nov 26, 2024
12 checks passed
@hardcoretime hardcoretime deleted the test/api/resource-deletion-step-in-e2e-tests branch November 26, 2024 08:55
nevermarine pushed a commit that referenced this pull request Dec 3, 2024
- exclude namespace in resource deletion step;
- refactor `apply` and `delete` kubectl commands;
- handle errors in clean up phase;
- add resource deletion step in each test case.

Signed-off-by: Roman Sysoev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants