mirror of
https://github.com/hanzoai/pki.git
synced 2026-11-03 18:08:14 +00:00
17 lines
644 B
Go
17 lines
644 B
Go
// Package testenv gates tests that need external fixtures, such as the
|
|
// local-kms emulator or the SoftHSM token (XPKI-100).
|
|
//
|
|
// A fixture that is not reachable skips the test, unless XPKI_INTEGRATION is
|
|
// "required" (the Makefile exports it, so make test/covtest and CI fail
|
|
// instead). A reachable fixture always runs the test, so a present but
|
|
// broken fixture fails. Unit tests must not call it.
|
|
//
|
|
// func TestKMS(t *testing.T) {
|
|
// testenv.RequireTCP(t, "local-kms", "localhost:14556")
|
|
// // ...
|
|
// }
|
|
//
|
|
// RequireFile does the same for a fixture identified by a file, such as the
|
|
// SoftHSM token configuration.
|
|
package testenv
|