Documentation
¶
Overview ¶
Package prototest provides shared builders for valid proto messages: the relationships messages the buf.validate rule tests use, co-located with each proto package (relationships / lookup / update), and the config messages the pkg/config tests use.
Index ¶
- func EndpointDatabase(driver configpb.Database_Driver, sslMode configpb.Database_SslMode) *configpb.Database
- func Identity() *relpb.Identity
- func InfrastructureDatabase(driver configpb.Database_Driver, sslMode configpb.Database_SslMode, ...) *configpb.Database
- func Object(t *testing.T) *relpb.Object
- func Role(t *testing.T) *relpb.Role
- func SubjectIdentity() *relpb.Subject
- func V7(t *testing.T) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointDatabase ¶ added in v1.96.0
func EndpointDatabase(driver configpb.Database_Driver, sslMode configpb.Database_SslMode) *configpb.Database
EndpointDatabase builds a database block with the endpoint source.
func InfrastructureDatabase ¶ added in v1.99.0
func InfrastructureDatabase(driver configpb.Database_Driver, sslMode configpb.Database_SslMode, path, secretsDir string) *configpb.Database
InfrastructureDatabase builds a database block with the infrastructure source at the given contract paths.
func SubjectIdentity ¶
SubjectIdentity returns a relationships.Subject carrying a valid Identity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.