mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-16 16:00:37 -05:00
* Rename module name from "github.com/hashicorp/terraform" to "github.com/placeholderplaceholderplaceholder/opentf". Signed-off-by: Jakub Martin <kubam@spacelift.io> * Gofmt. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Regenerate protobuf. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix comments. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo issue and pull request link changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo comment changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix comment. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo some link changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * make generate && make protobuf Signed-off-by: Jakub Martin <kubam@spacelift.io> --------- Signed-off-by: Jakub Martin <kubam@spacelift.io>
50 lines
1.2 KiB
Go
50 lines
1.2 KiB
Go
package json
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/placeholderplaceholderplaceholder/opentf/internal/moduletest"
|
|
)
|
|
|
|
type TestSuiteAbstract map[string][]string
|
|
|
|
type TestStatus string
|
|
|
|
type TestFileStatus struct {
|
|
Path string `json:"path"`
|
|
Status TestStatus `json:"status"`
|
|
}
|
|
|
|
type TestRunStatus struct {
|
|
Path string `json:"path"`
|
|
Run string `json:"run"`
|
|
Status TestStatus `json:"status"`
|
|
}
|
|
|
|
type TestSuiteSummary struct {
|
|
Status TestStatus `json:"status"`
|
|
Passed int `json:"passed"`
|
|
Failed int `json:"failed"`
|
|
Errored int `json:"errored"`
|
|
Skipped int `json:"skipped"`
|
|
}
|
|
|
|
type TestFileCleanup struct {
|
|
FailedResources []TestFailedResource `json:"failed_resources"`
|
|
}
|
|
|
|
type TestFailedResource struct {
|
|
Instance string `json:"instance"`
|
|
DeposedKey string `json:"deposed_key,omitempty"`
|
|
}
|
|
|
|
type TestFatalInterrupt struct {
|
|
State []TestFailedResource `json:"state,omitempty"`
|
|
States map[string][]TestFailedResource `json:"states,omitempty"`
|
|
Planned []string `json:"planned,omitempty"`
|
|
}
|
|
|
|
func ToTestStatus(status moduletest.Status) TestStatus {
|
|
return TestStatus(strings.ToLower(status.String()))
|
|
}
|