Skip to content

Add test parameter to disable online tests (for offline testing) #200

@olifre

Description

@olifre

Most packaging tooling runs in offline / network sandboxed environments, so it would be useful for packagers if all tests requiring network connectivity could be disabled in one go e.g. with a commandline argument when running the tests, or an environment variable.

This currently affects the following tests (as of release 1.3.0):

  • KeycacheTest.NegativeCacheTest
  • keycacheTest.RefreshTest
  • KeycacheTest.RefreshExpiredTest
  • KeycacheTest.LoadJwksTriggersRefreshWhenStale

(for reference, see for example gentoo/gentoo#45567 )
Thanks to @bbockelm for proposing this. 👍

Metadata

Metadata

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