recordings

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

This folder contains JSON-encoded recordings of k8s watch Events that can be used to validate await logic for the provider. These recordings are organized into the following structure:

  • workflows - Each file contains a JSON array of watch Events corresponding to a recorded workflow of interest.
  • states - Each file contains a JSON-encoded watch Event corresponding to a state of interest.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLoadState

func MustLoadState(path string) *unstructured.Unstructured

MustLoadState loads a JSON-encoded k8s event from the specified path, and returns a corresponding Unstructured object. This function is intended to be used with vetted test data and will panic on error.

func MustLoadWorkflow

func MustLoadWorkflow(path string) []*unstructured.Unstructured

MustLoadWorkflow loads a JSON array of k8s events from the specified path, and returns a corresponding slice of Unstructured objects. This function is intended to be used with vetted test data and will panic on error. Note: The test data can be produced with the `kubespy record` command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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