•  
      request #42619 DB ArtifactLinksTest can fail because of fixed artfact ID
    Infos
    #42619
    Joris MASSON (jmasson)
    2025-04-15 09:55
    2025-04-14 16:47
    44295
    Details
    DB ArtifactLinksTest can fail because of fixed artfact ID

    In cross-tracker search DB integration tests for Artifact Links TQL queries, the DB test runs with a hardcoded artifact ID 123 that is supposed to NOT match any of the artifacts created in the setup. Unfortunately, we now have enough DB tests that on seed 1744639324, one of the artifacts will have this ID, failing a test.

    We should not assume that a hardcoded ID will not exist. Instead, we should use a dynamic ID that depends on the test setup. This way, unless someone leaves clutter behind in another test, we can assume this ID will yield no result, regardless of the order of the tests.

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2025-04-15
    Attachments
    Empty
    References

    Follow-ups