Documentation ¶
Index ¶
- Variables
- func BreakingChangesDetect(currentModulePath, owner, repo string, tag *string) (string, error)
- func CompareTwoModules(dir1 string, dir2 string) (string, error)
- func GetCurrentMajorVersionFromEnv() (int, error)
- func GetCurrentModuleRootPath() (string, error)
- func ModuleUpgradeTest(t *testing.T, ...)
- func ReadRetryableErrors(retryableCfg []byte, t *testing.T) map[string]string
- func RunE2ETest(t *testing.T, moduleRootPath, exampleRelativePath string, ...)
- func RunE2ETestWithOption(t *testing.T, moduleRootPath, exampleRelativePath string, ...)
- func RunUnitTest(t *testing.T, moduleRootPath, exampleRelativePath string, ...)
- func VarsToFile(t *testing.T, vars map[string]any) string
- type Change
- type ChangeCategory
- type KeyedMutex
- type Module
- type Output
- type StreamLogger
- type TerraformOutput
- type TestOptions
- type TestVersionSnapshot
- type Variable
Constants ¶
This section is empty.
Variables ¶
View Source
var CannotTestError = fmt.Errorf("no previous tag yet or previous tag's folder structure is different than the current version, skip upgrade test")
View Source
var SkipV0Error = fmt.Errorf("v0 is meant to be unstable, skip upgrade test")
Functions ¶
func BreakingChangesDetect ¶ added in v0.0.21
func CompareTwoModules ¶ added in v0.0.21
func ModuleUpgradeTest ¶
func ReadRetryableErrors ¶ added in v0.1.0
func RunE2ETest ¶
func RunE2ETestWithOption ¶ added in v0.13.0
func RunE2ETestWithOption(t *testing.T, moduleRootPath, exampleRelativePath string, testOption TestOptions)
func RunUnitTest ¶ added in v0.10.0
Types ¶
type Change ¶ added in v0.0.21
type Change struct { diff.Change Category ChangeCategory `json:"category"` Name *string `json:"name"` Attribute *string `json:"attribute"` }
func BreakingChanges ¶ added in v0.0.21
type ChangeCategory ¶ added in v0.0.21
type ChangeCategory = string
type KeyedMutex ¶ added in v0.9.0
type KeyedMutex struct {
// contains filtered or unexported fields
}
func (*KeyedMutex) Lock ¶ added in v0.9.0
func (m *KeyedMutex) Lock(key string) func()
type Module ¶ added in v0.0.21
type StreamLogger ¶ added in v0.8.0
type StreamLogger struct {
// contains filtered or unexported fields
}
func NewMemoryLogger ¶ added in v0.8.0
func NewMemoryLogger() *StreamLogger
func NewStreamLogger ¶ added in v0.8.0
func NewStreamLogger(stream io.ReadWriter) *StreamLogger
func (*StreamLogger) Close ¶ added in v0.8.0
func (s *StreamLogger) Close() error
func (*StreamLogger) Logf ¶ added in v0.8.0
func (s *StreamLogger) Logf(t testing.TestingT, format string, args ...interface{})
func (*StreamLogger) PipeFrom ¶ added in v0.8.0
func (s *StreamLogger) PipeFrom(srcLogger *StreamLogger) error
type TerraformOutput ¶
type TerraformOutput = map[string]interface{}
type TestOptions ¶ added in v0.13.0
type TestVersionSnapshot ¶ added in v0.7.0
type TestVersionSnapshot struct { ModuleRootFolder string SubModuleRelativeFolder string Time time.Time Success bool Versions string ErrorMsg string }
func FailedTestVersionSnapshot ¶ added in v0.8.0
func FailedTestVersionSnapshot(rootFolder, exampleRelativePath, errMsg string) *TestVersionSnapshot
func SuccessTestVersionSnapshot ¶ added in v0.8.0
func SuccessTestVersionSnapshot(rootFolder, exampleRelativePath string) *TestVersionSnapshot
func (*TestVersionSnapshot) Save ¶ added in v0.8.0
func (s *TestVersionSnapshot) Save(t *testing.T) error
func (*TestVersionSnapshot) ToString ¶ added in v0.7.0
func (s *TestVersionSnapshot) ToString() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.