Documentation
¶
Index ¶
- func IsolatedPublishingTest(t *testing.T) bool
- func NewDisposablePostgresDatabaseURL(t testing.TB, suffix string) string
- func PostgresURL(t testing.TB) string
- func RequireOneOfTestTiers(t testing.TB, required ...TestTier)
- func RequireTestTier(t testing.TB, required TestTier)
- func TLSCertificate(t *testing.T, names []string, usages []x509.ExtKeyUsage) ([]byte, tls.Certificate)
- type PublishingFixture
- type PublishingHooks
- type TestTier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsolatedPublishingTest ¶
IsolatedPublishingTest runs a command regression in its own test process so its private TLS roots cannot affect other tests or the machine's trust store. the caller returns immediately when this returns false.
func NewDisposablePostgresDatabaseURL ¶
NewDisposablePostgresDatabaseURL creates a uniquely named PostgreSQL database and drops it, including any remaining connections, during cleanup.
func PostgresURL ¶
PostgresURL returns the PostgreSQL administration URL for PostgreSQL-backed tests.
func RequireOneOfTestTiers ¶
RequireOneOfTestTiers selects a fixture shared by explicit test tiers.
func RequireTestTier ¶
RequireTestTier skips a test unless its suite is selected.
func TLSCertificate ¶
func TLSCertificate(t *testing.T, names []string, usages []x509.ExtKeyUsage) ([]byte, tls.Certificate)
TLSCertificate issues a verifiable test leaf, retaining ordinary certificate and hostname checks on both native and infrastructure transports.
Types ¶
type PublishingFixture ¶
PublishingFixture supplies local control/authority responses and real TLS/yamux publisher connections. it drives the unmodified command and publisher implementations without PostgreSQL, DNS, ACME, or paid resources.
func NewPublishingFixture ¶
func NewPublishingFixture(t *testing.T, hooks PublishingHooks) *PublishingFixture
type PublishingHooks ¶
type PublishingHooks struct {
Ready func(context.Context, controlv1.PublishRunSetup) error
Close func(controlv1.PublishRunSetup) error
}
Directories
¶
| Path | Synopsis |
|---|---|
|
package awsfixture implements the bounded Secrets Manager and STS HTTPS wire protocols used by publisher bootstrap.
|
package awsfixture implements the bounded Secrets Manager and STS HTTPS wire protocols used by publisher bootstrap. |
|
Package controltest creates named OIDC session fixtures for tests whose boundary is authorization or publishing.
|
Package controltest creates named OIDC session fixtures for tests whose boundary is authorization or publishing. |
|
package githubtest serves signed GitHub workload fixtures without allowing tests to substitute a production issuer or contact GitHub.
|
package githubtest serves signed GitHub workload fixtures without allowing tests to substitute a production issuer or contact GitHub. |
|
package groupdiscovery supplies local signed control/AWS HTTPS boundaries and a verified EKS TLS target.
|
package groupdiscovery supplies local signed control/AWS HTTPS boundaries and a verified EKS TLS target. |
|
package managedcert replaces only the external CA exchange in state tests.
|
package managedcert replaces only the external CA exchange in state tests. |
|
package projectinittest supplies project fixtures for init operation and command presentation tests.
|
package projectinittest supplies project fixtures for init operation and command presentation tests. |
|
package workerobservation records actual worker spans and operator diagnostics through a process-owned exporter and a local HTTPS collector.
|
package workerobservation records actual worker spans and operator diagnostics through a process-owned exporter and a local HTTPS collector. |