types

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package types contains the types that are used in the e2e tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestPlatform

type TestPlatform struct {
	T          *testing.T
	TestFolder string
}

TestPlatform is the test "state" that allows for helper functions such as deferring the teardown step.

func NewTestPlatform

func NewTestPlatform(t *testing.T) *TestPlatform

NewTestPlatform generates the test "state" object that allows for helper functions such as deferring the teardown step.

func (*TestPlatform) RunSSHCommand

func (platform *TestPlatform) RunSSHCommand(command string) (string, error)

RunSSHCommand provides a simple way to run a shell command on the server that is created using Terraform.

func (*TestPlatform) RunSSHCommandAsSudo

func (platform *TestPlatform) RunSSHCommandAsSudo(command string) (string, error)

RunSSHCommandAsSudo provides a simple way to run a shell command with sudo on the server that is created using Terraform.

func (*TestPlatform) Teardown

func (platform *TestPlatform) Teardown()

Teardown brings down the Terraform infrastructure that was created.

Jump to

Keyboard shortcuts

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