opendevstack / opendevstack/ods-core
Add delete-projects tests for clean-up into create-projects jenkins test
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 53
- Forks
- 34
- Avg merge
- 3h 26m
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
The currrent jenkinsfile test for create projects (https://github.com/opendevstack/ods-core/blob/master/tests/create-projects/jenkinsfile_test.go#L31) relies on an openshift user with cluster admin rights to delete a jenkins provisioned ods project (which is what the Test tests).. Thats no good - especially given that we found a last minute Regression in there..
Describe the solution you'd like
Cleanup for this test should be done using delete-projects jenkins job and not direct oc commands
Describe alternatives you've considered
There are none except a global sys admin openshift User for the tests
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/create-projects/jenkinsfile_test.go around line 31 and inspect how the create-projects Jenkins test currently performs cleanup. Trace the delete-projects Jenkins job, then update the test so cleanup uses that job rather than direct oc commands. The create-projects test should complete without requiring a cluster-admin OpenShift user.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- ci-cd, infrastructure, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100