Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Make Traffic Ops "API Tests" use seeds.sql #2793

@rob05c

Description

@rob05c

Right now, The TO "API Tests" don't use seeds.sql, which has a number of issues:

  1. The sql commands required by the tests have to be copy-pasted into the tests. For example, for capabilities, this is 200+ lines of duplicate code.
  2. Changes to seeds.sql will break the tests, unless they're also copy-pasted in.
  3. Changes to seeds.sql which change behavior could break an endpoint, but the "API Tests" will still pass because they're copy-pasted.
  4. The seeds.sql is not being tested. Ideally, the TO tests should verify that the seeds.sql works correctly, as part of verifying TO works.

The "API Test" framework should be changed to use seed.sql, rather than copying its contents, to fix these issues, and improve test coverage in general.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureA new feature, capability or behaviortestsrelated to tests and/or testing infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions