Documentation
¶
Overview ¶
Package testutil provides helpers shared by pkg/modules/* unit and integration tests. They let a test build a module execution context (variable.Variable) without a real cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestVariable ¶
NewTestVariable creates a new variable.Variable for testing purposes. It initializes a test playbook and client via _const.NewTestPlaybook, then creates an in-memory variable source. It merges the provided vars as remote variables for the specified hosts. This allows you to customize the per-host variable context for unit tests needing module execution context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.