test_helpers

package
v0.3.1-0...-df68014 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTmpConfigPath

func CreateTmpConfigPath(rootTemplatePath string, configPath string, username string, apiKey string) (string, error)

func GenerateCpiJsonPayload

func GenerateCpiJsonPayload(methodName string, rootTemplatePath string, replacementMap map[string]string) (string, error)

func ReadJsonTestFixtures

func ReadJsonTestFixtures(workingDir, packageName, fileName string) ([]byte, error)

func RunCpi

func RunCpi(rootCpiPath string, configPath string, jsonPayload string) ([]byte, error)

func SetTestFixtureForFakeSoftLayerClient

func SetTestFixtureForFakeSoftLayerClient(fakeSoftLayerClient *fakesslclient.FakeSoftLayerClient, fileName string)

func SetTestFixturesForFakeSoftLayerClient

func SetTestFixturesForFakeSoftLayerClient(fakeSoftLayerClient *fakesslclient.FakeSoftLayerClient, fileNames []string)

Types

type ConfigTemplate

type ConfigTemplate struct {
	Username string
	ApiKey   string
}

type CpiTemplate

type CpiTemplate struct {
	ID           string
	DirectorUuid string
	Tags         string
}

Jump to

Keyboard shortcuts

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