Help us shape the future of Go! Take the 2026 Go Developer Survey

testing

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestInt_Deploy

func TestInt_Deploy(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, deployerName string)

TestInt_Deploy ensures that the deployer creates a callable service. See TestInt_Metadata for Labels, Volumes, Envs. See TestInt_Events for Subscriptions

func TestInt_EnvsUpdate

func TestInt_EnvsUpdate(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, deployerName string)

TestInt_EnvsUpdate ensures that removing and updating envs are correctly reflected during a deployment update.

func TestInt_Events

func TestInt_Events(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, deployerName string)

TestInt_Events ensures that eventing triggers work.

func TestInt_FullPath

func TestInt_FullPath(t *testing.T, deployer fn.Deployer, remover fn.Remover, lister fn.Lister, describer fn.Describer, deployerName string)

Basic happy path test of deploy->describe->list->re-deploy->delete.

func TestInt_Metadata

func TestInt_Metadata(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, deployerName string)

TestInt_Metadata ensures that Secrets, Labels, and Volumes are applied when deploying.

func TestInt_OperatorSync added in v0.50.0

func TestInt_OperatorSync(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, deployerName string)

TestInt_OperatorSync ensures that deploying with WithSyncer creates a Function CR on first deploy, and only annotates it on subsequent deploys.

func TestInt_ResourceValidationOnFirstDeploy added in v0.50.0

func TestInt_ResourceValidationOnFirstDeploy(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, deployerName string)

TestInt_ResourceValidationOnFirstDeploy verifies that a first-time deploy referencing a non-existent Secret is rejected with an error, and that the same deploy succeeds once the Secret is created on the cluster.

This is a regression test for the bug where generateNewService allocated its own local referenced-resource sets that were never visible to the caller, causing CheckResourcesArePresent to always run against empty sets and silently pass validation on the create path.

func TestInt_Scale

func TestInt_Scale(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, deployerName string)

TestInt_Scale spot-checks that the scale settings are applied by ensuring the service is started multiple times when minScale=2

Types

This section is empty.

Jump to

Keyboard shortcuts

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