# Packages
No description provided by the author
# Functions
AdmitWorkspaceAccess create RBAC rules that allow the given users and/or groups to access the given workspace, optionally as admin.
ClientCAUserConfig returns a config based on a dynamically created client certificate.
No description provided by the author
No description provided by the author
CreateResources creates all resources from a filesystem in the given workspace identified by upstreamConfig.
CreateTempDirForTest creates the named directory with a unique base path derived from the name of the current test.
DirectOrGoRunCommand returns the string tokens required to start the given executable in the currently configured mode (direct or via `go run`).
Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick.
EventuallyCondition asserts that the object returned by getter() eventually has a condition that matches the evaluator.
EventuallyReady asserts that the object returned by getter() eventually has a ready condition.
ExpectWorkspaces sets up an Expecter in order to allow registering expectations in tests with minimal setup.
ExpectWorkspaceShards sets up an Expecter in order to allow registering expectations in tests with minimal setup.
No description provided by the author
No description provided by the author
GetFreePort asks the kernel for a free open port that is ready to use.
No description provided by the author
No description provided by the author
No description provided by the author
Kubectl runs kubectl with the given arguments and returns the combined stderr and stdout.
KubectlApply runs kubectl apply -f with the supplied input piped to stdin and returns the combined stderr and stdout output.
LoadKubeConfig loads a kubeconfig from disk.
LogicalClusterRawConfig returns the raw cluster config of the given config.
No description provided by the author
NewAccessory creates a new accessory process.
No description provided by the author
NewExpecter creates a informer-driven registry of expectations, which will be triggered on every event that the informer ingests.
NewFakeWorkloadServer creates a workspace in the provided server and org and creates a server fixture for the logical cluster that results.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PrivateKcpServer returns a new kcp server fixture managing a new server process that is not intended to be shared between tests.
RepositoryBinDir returns the absolute path of <repo-dir>/bin.
RepositoryDir returns the absolute path of <repo-dir>.
No description provided by the author
RunTMCCliPlugin runs the tmc workspace plugin with the provided subcommand and returns the combined stderr and stdout output.
No description provided by the author
No description provided by the author
ScratchDirs determines where artifacts and data should live for a test server.
SharedKcpServer returns a kcp server fixture intended to be shared between tests.
StartKcpCommand returns the string tokens required to start kcp in the currently configured mode (direct or via `go run`).
StaticTokenUserConfig returns a user config based on static user tokens defined in "test/e2e/framework/auth-tokens.csv".
Suite should be called at the very beginning of a test case, to ensure that a test is only run when the suite containing it is selected by the user running tests.
TestServerArgs returns the set of kcp args used to start a test server using the token auth file from the working tree.
TestServerArgsWithTokenAuthFile returns the set of kcp args used to start a test server with the given token auth file.
TestServerWithAuditPolicyFile returns the set of kcp args used to start a test server with the given audit policy file.
No description provided by the author
TmcCliPluginCommand returns the cli args to run the workspace plugin directly or via go run (depending on whether NO_GORUN is set).
No description provided by the author
UniqueGroup returns a unique API group with the given suffix by prefixing some random 8 character base36 string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithCustomArguments applies provided arguments to a given kcp configuration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithRequiredGroups is a privileged action, so we return a privileged option type, and only the helpers that use the system:master config can consume this.
No description provided by the author
WithScratchDirectories adds custom scratch directories to a kcp configuration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WriteLogicalClusterConfig creates a logical cluster config for the given config and cluster name and writes it to the test's artifact path.
WriteTokenAuthFile writes the embedded token file to the current test's data dir.
# Variables
No description provided by the author
# Structs
Accessory knows how to run an executable with arguments for the duration of the context.
No description provided by the author
ExpectationController knows how to register expectations and trigger them.
StartedSyncerFixture contains the configuration used to start a syncer and interact with its downstream cluster.
# Interfaces
Expecter allows callers to register expectations.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
Expectation closes over a statement of intent, allowing the caller to accumulate errors and determine when the expectation should cease to be evaluated.
No description provided by the author
RegisterWorkspaceExpectation registers an expectation about the future state of the seed.
RegisterWorkspaceShardExpectation registers an expectation about the future state of the seed.
No description provided by the author
No description provided by the author
No description provided by the author
TmcConfigOption a function that wish to modify a given tmc configuration.
No description provided by the author
WorkspaceExpectation evaluates an expectation about the object.
WorkspaceShardExpectation evaluates an expectation about the object.