Skip to content

[Bug]: Tests hitting glif API fail due to no token provided #451

@parkan

Description

@parkan

Description

tests have been failing since after ~October: https://github.com/data-preservation-programs/singularity/actions/runs/12928459931/job/36055775507 e.g. TestNewLotusClient

explanation from glif, this was likely introduced in Oct-Nov:

Because when our system detects that the token query param or the Authorization header were provided, it tries to check the token even if it's empty and denies the request because there's no empty token in the database

fix is likely to (1) supply a token or (2) remove the token parameter from the test?

Steps to Reproduce

make test

Version

main

Operating System

Linux

Database Backend

SQLite

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions