Skip to content

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

@franck-boullier

Description

@franck-boullier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions