test

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Zone      = "is1a"
	APIClient = api.NewCallerWithOptions(&api.CallerOptions{
		Options: &client.Options{
			AccessToken:       "fake",
			AccessTokenSecret: "fake",
			UserAgent:         "sacloud/autoscaler/fake/test",
			Trace:             os.Getenv("SAKURACLOUD_TRACE") != "",
		},
		TraceAPI: os.Getenv("SAKURACLOUD_TRACE") != "",
		FakeMode: true,
	})
	Logger = log.NewLogger(&log.LoggerOption{
		Writer:    os.Stderr,
		JSON:      false,
		TimeStamp: true,
		Caller:    true,
		Level:     slog.LevelDebug,
	})
)

Functions

func AddTestDNS added in v0.0.2

func AddTestDNS(t *testing.T, name string) (*iaas.DNS, func())

func AddTestELB added in v0.4.0

func AddTestELB(t *testing.T, name string) func()

func AddTestServer added in v0.0.2

func AddTestServer(t *testing.T, name string) (*iaas.Server, func())

func AddTestSwitch added in v0.1.0

func AddTestSwitch(t *testing.T, name string) (*iaas.Switch, func())

func StringOrFilePath added in v0.4.0

func StringOrFilePath(t *testing.T, s string) config.StringOrFilePath

Types

This section is empty.

Jump to

Keyboard shortcuts

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