Documentation ¶
Overview ¶
Package servicetest provides tests for the services installed by the Windows Agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertServiceUsers ¶
func AssertServiceUsers(t *testing.T, expected windowsCommon.ServiceConfigMap, actual windowsCommon.ServiceConfigMap) bool
AssertServiceUsers asserts that the service users from the expected map match the actual map
Compares UserSIDs rather than UserNames to avoid needing to handle name formatting differences
Types ¶
type Option ¶
Option is a functional option for Tester
func WithExpectedAgentUser ¶
WithExpectedAgentUser sets the expected user for the Agent
type Tester ¶
type Tester struct {
// contains filtered or unexported fields
}
Tester provides tests for the services installed by the Windows Agent
func NewTester ¶
func NewTester(host *components.RemoteHost, opts ...Option) (*Tester, error)
NewTester creates a new Tester
Click to show internal directories.
Click to hide internal directories.