testutil

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2025 SGNL.ai, Inc.

Copyright 2025 SGNL.ai, Inc.

Copyright 2025 SGNL.ai, Inc.

Index

Constants

View Source
const (
	LDAPPort  = "389"
	LDAPSPort = "636"
)

Variables

This section is empty.

Functions

func GenPtr

func GenPtr[T any](v T) *T

func Run

func Run(t *testing.T, s suite.TestingSuite)

Types

type CommonSuite

type CommonSuite struct {
	suite.Suite
}

func (*CommonSuite) StartLDAPServer

func (s *CommonSuite) StartLDAPServer(ctx context.Context, isLDAPS bool) (testcontainers.Container, nat.Port)

StartLDAPServer runs an instance of active directory over LDAP protocol in a local container for testing. It returns the container and open port. May fail the test internally if setup fails.

Jump to

Keyboard shortcuts

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