Documentation
¶
Index ¶
- func HttpGet(url string) error
- func HttpGetWithResponse(url string) ([]byte, error)
- func HttpRequestUntilSuccess(url string, timeout time.Duration) error
- func InitializeWithTerraform(t *testing.T) func()
- func RunCommand(t *testing.T, command string, args ...string) error
- func RunCommandWithCombinedOutput(t *testing.T, command string, args ...string) ([]byte, error)
- func RunCommandWithOutput(t *testing.T, command string, args ...string) ([]byte, error)
- func StartCommand(t *testing.T, command string, args ...string) error
- func StartCommandWithStdErr(t *testing.T, command string, args ...string) (io.Reader, error)
- func StartCommandWithStdOut(t *testing.T, command string, args ...string) (io.Reader, error)
- func TerraformApply() error
- func TerraformDestroy() error
- func TerraformInit() error
- func TerraformRefresh() error
- type Output
- func (o *Output) Body() string
- func (o *Output) Contains(substr string) bool
- func (o *Output) Fatal(t *testing.T, args ...interface{})
- func (o *Output) Fatalf(t *testing.T, format string, args ...interface{})
- func (o *Output) Output()
- func (o *Output) WaitOutput(substr string, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpGetWithResponse ¶ added in v0.0.5
HttpGetWithResponse 指定のURLにGETでリクエストを行い、ステータスコード200以外の場合はエラーを返す
func HttpRequestUntilSuccess ¶
HttpRequestUntilSuccess ステータス200が返ってくるまで定期的に指定のURLにGETでリクエストを行う
func InitializeWithTerraform ¶
InitializeWithTerraform カレントディレクトリで`terraform init & terraform apply --auto-approve`を実行し、 `terraform destroy --auto-approve`するfuncを返す
各テストコードで`defer InitializeWithTerraform()()`のように利用する。
func RunCommandWithOutput ¶
func StartCommand ¶ added in v0.0.5
func StartCommandWithStdErr ¶ added in v0.0.5
func StartCommandWithStdOut ¶ added in v0.0.5
func TerraformApply ¶
func TerraformApply() error
func TerraformDestroy ¶
func TerraformDestroy() error
func TerraformInit ¶
func TerraformInit() error
func TerraformRefresh ¶
func TerraformRefresh() error
Types ¶
Click to show internal directories.
Click to hide internal directories.