provisiontest

package
Version: v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package provisiontest provides utilities for testing provisioners

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSSHCommander

type FakeSSHCommander struct {
	Responses map[string]string
}

FakeSSHCommander is an implementation of provision.SSHCommander to provide predictable responses set by testing code Extend it when needed

func NewFakeSSHCommander

func NewFakeSSHCommander(options FakeSSHCommanderOptions) *FakeSSHCommander

NewFakeSSHCommander creates a FakeSSHCommander without actually knowing the underlying sshcommands

func (*FakeSSHCommander) SSHCommand

func (sshCmder *FakeSSHCommander) SSHCommand(args string) (string, error)

SSHCommand is an implementation of provision.SSHCommander.SSHCommand to provide predictable responses set by testing code

type FakeSSHCommanderOptions

type FakeSSHCommanderOptions struct {
	//Result of the ssh command to look up the FilesystemType
	FilesystemType string
}

FakeSSHCommanderOptions is intended to create a FakeSSHCommander without actually knowing the underlying sshcommands by passing it to NewSSHCommander

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL