redhat-developer / redhat-developer/vscode-openshift-tools

`deleteProject()` test for `odo.ts` is not properly torn down

Open
#3,190 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component/integration-test kind/bug
Dominant language
TypeScript
Stars
123
Forks
63
Avg merge
6h 16m
Merged PRs (30d)
74

Description

In the case that the test namespace my-test-project-3 already exists, the test will fail. The code does not attempt to remove this namespace in the setup or the teardown code. This also means that if deleting the project failed at some point, the namespace will remain on the cluster, and all future runs of this test case will fail.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the deleteProject() test in odo.ts and inspect its setup and teardown handling for the my-test-project-3 namespace. Verify the test behavior when the namespace already exists, then confirm the namespace is removed after failures and that repeated test runs pass without leftover cluster resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes, typescript
Domain
devops, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.