configtest

package
v1.133.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package configtest holds the iam assembly profile the loader and binder tests start from, and the edits that turn it into its variants.

Index

Constants

View Source
const Profile = `` /* 978-byte string literal not displayed */

Profile is a complete iam profile hosting auth and data-access on every interface, with the probe left to its default.

View Source
const Secrets = `` /* 164-byte string literal not displayed */

Secrets is the secrets file Profile names: the database credentials, the token pair and the OAuth material auth needs.

Variables

This section is empty.

Functions

func DataAccessOnly

func DataAccessOnly(profile string) string

DataAccessOnly rewrites the profile for a process hosting data-access alone: the gRPC listener only, so cors and the auth block go with the domain.

func WithHosts

func WithHosts(profile string) string

WithHosts pins each listener and the probe to a host, the way Omnibus binds every port on the loopback interface. The HTTP listener gets an IPv6 host.

func WithoutOAuth

func WithoutOAuth(secrets string) string

WithoutOAuth drops the OAuth material from the secrets, as the secrets of a process hosting data-access alone must.

func Write

func Write(t *testing.T, profile, secrets string) string

Write puts the profile and the secrets file it names in a temporary directory and returns the profile's path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL