arcaflow_plugin_test_impl_go

package module
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

README

Testing plugin for Arcaflow

This plugin is used for standardized integration tests. It can be used directly in Go, or it can be deployed with any of the supported container deployers.

Steps

wait

This plugin has one step called wait, which waits for the duration specified by the input wait_time_ms

There are two possible outputs for step wait:

  • success: When it waits the expected duration.
  • cancelled_early: When it is cancelled at or before the end of its expected wait period.

The output is predictable for testing purposes, with the success output just outputting the expected sleep time, and the cancelled_early output outputting the expected and actual wait time.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchema added in v0.4.2

func GetSchema() *schema.CallableSchema

Types

type HelloWorldInput added in v0.2.0

type HelloWorldInput struct {
	Fail bool `json:"fail"`
}

type HelloWorldOutput added in v0.2.0

type HelloWorldOutput struct {
}

type WaitInput added in v0.2.0

type WaitInput struct {
	WaitTime int `json:"wait_time_ms"`
}

type WaitOutput added in v0.2.0

type WaitOutput struct {
	Message string `json:"message"`
}

type WaitStepData added in v0.2.0

type WaitStepData struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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