GCTC-NTGC / gc-digital-talent

GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
https://talent.canada.ca
GNU Affero General Public License v3.0
22 stars 9 forks source link

API - Class TestUser fails all tests #1480

Closed mnigh closed 2 years ago

mnigh commented 2 years ago

When running the PHPUnit tests within the class TestUser, all three of the tests result in failures: "No authorization token found.".

Steps to reproduce

  1. cd infrastructure
  2. docker-compose exec -w /var/www/html/api php sh -c "./vendor/bin/phpunit tests/UserTest.php"
mnigh commented 2 years ago

We would first need to generate an access token. Then, we would need to use the postGraphQL function instead of the graphQL function to be able to pass the access token (Bearer token) via a request header.

petertgiles commented 2 years ago

@tristan-orourke Should this have been closed? The tests are still broken.

tristan-orourke commented 2 years ago

If the tests are still broken, I'm not sure why it was closed :/ I'll reopen it

mnigh commented 2 years ago

If the tests are still broken, I'm not sure why it was closed :/ I'll reopen it

It looks like the tests were marked to be skipped in #1993.