GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev — testing package - knative.dev/func/pkg/deployer/testing - Go Packages

Details

  • checked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • unchecked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/knative/func

Links

  • Open Source Insights Logo Open Source Insights

Documentation ¶

Index ¶

  • func TestInt_Deploy(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, ...)
  • func TestInt_EnvsUpdate(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, ...)
  • func TestInt_Events(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, ...)
  • func TestInt_FullPath(t *testing.T, deployer fn.Deployer, remover fn.Remover, lister fn.Lister, ...)
  • func TestInt_Metadata(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, ...)
  • func TestInt_OperatorSync(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, ...)
  • func TestInt_ResourceValidationOnFirstDeploy(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, ...)
  • func TestInt_Scale(t *testing.T, deployer fn.Deployer, remover fn.Remover, describer fn.Describer, ...)

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.

Source Files ¶

View all Source files
  • integration_test_helper.go
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.