opendevstack / opendevstack/ods-core

Add delete-projects tests for clean-up into create-projects jenkins test

Open
#774 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Tests
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.