Documentation
¶
Overview ¶
Package envtestutil holds what the tests of the `krci env` verbs that take <deployment> <env> share: a mock portal and the checks every such verb passes.
Index ¶
Constants ¶
const ( Deployment = "my-pipeline" Env = "dev" Namespace = "my-pipeline-dev" LocalCluster = "in-cluster" )
The environment Portal serves.
Variables ¶
This section is empty.
Functions ¶
func CheckInvalidTarget ¶
CheckInvalidTarget checks that the verb rejects a wrong number of positionals, an invalid deployment or env and an unknown output format before its run function.
func CheckNotFound ¶
CheckNotFound checks the message of the verb for a missing deployment and for a missing environment, on stderr and in the JSON error envelope. kind and items are what Portal serves in the environment namespace.
func CheckRemoteCluster ¶
CheckRemoteCluster checks that the verb refuses an environment on another cluster with a message that names the cluster.
Types ¶
This section is empty.