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

Go Tests are creating unit - should also delete these newly created units #20

Open
franck-boullier opened this issue Feb 4, 2020 · 0 comments

Comments

@franck-boullier
Copy link
Member

The problem:

The current version of the Go test is to create new units.
We should also add a test to delete/remove a unit.

Consequence:

Each time we deploy, if we run the Go test as part of the deployment, we will create new test units.
This will in time make the Db grow over and over with dummy units.
Because of that the Go Tests can't be run when in the PROD or DEMO environment.

More information;

We have an existing SQL script that also us to delete a unit from the BZ database: cleanup_remove_a_unit_bzfe.
The only parameter needed by this script is the BZ product ID for the unit.
We could transform this script into a stored SQL procedure to allow easy deletion of a unit.

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

No branches or pull requests

1 participant