Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteTestFile ¶ added in v0.6.0
WriteTestFile writes the provided contents from the reader into a newly created random-named file inside t.TempDir(). The created file has restrictive permissions (0600). It returns the full path to the created file or an error.
func WriteTestFileWithName ¶ added in v0.6.0
WriteTestFileWithName writes the provided contents from the reader into a file with the specified name inside t.TempDir(). The created file has restrictive permissions (0600). It returns the full path to the created file or an error.
Types ¶
type Step ¶
type Step struct {
PreRun func(TestContext) error
Run func(TestContext) error
PostRun func(TestContext) error
Verify func(TestContext) error
}
Compact acc runner
type TestContext ¶
type TestContext interface {
util.CmdContext
Org() string
OrgUrl() string
PAT() string
Project() string
SetValue(key, value any)
Value(key any) (any, bool)
}
func NewAccTestContext ¶ added in v0.7.0
func NewAccTestContext(t *testing.T) TestContext
Precheck and context builder
func NewTestContext ¶ added in v0.7.0
func NewTestContext(t *testing.T) TestContext
Click to show internal directories.
Click to hide internal directories.