Skip to content

Tests and Sample variables are making dangerous assumptions #17

@franck-boullier

Description

@franck-boullier

The problem:

The files main_test.go and tests/sample.json are assuming that there is:

  • an existing user in the installation with the BzUserId = 55
  • an existing Classification in the BZ installation with classificationId = 2

This might not always be true.

The fix:

  • In the BZ seed script when we create a BZ installation from scratch, we need to create a specific user for tests.
  • This repo should use this specifically created user for tests.

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