Documentation ¶
Index ¶
- Constants
- func AllRequestTracesContent(id string, logs []paltypes.RequestTrace) string
- func CleanupAllRequestTracesContent(id string, logs []paltypes.RequestTrace) string
- func CleanupErrorMarkdownReport(report types.Error, logs []paltypes.RequestTrace) string
- func CleanupMarkdownReport(passReport types.PassReport) string
- func DiffMarkdownReport(report types.Diff, logs []paltypes.RequestTrace) string
- func DiffMessageDescription(diff types.Change) string
- func DiffMessageMarkdown(diff types.Change) string
- func DiffMessageReadable(diff types.Change) string
- func DiffMessageTerraform(diff types.Change) string
- func ErrorMarkdownReport(report types.Error, logs []paltypes.RequestTrace) string
- func GenerateApiTestReports(wd string, swaggerPath string) error
- func HttpRequestToString(r *paltypes.HttpRequest) string
- func HttpResponseToString(r *paltypes.HttpResponse) string
- func IsUrlMatchWithId(url string, id string) bool
- func PassedMarkdownReport(passReport types.PassReport, coverageReport coverage.CoverageReport) string
- func RequestTraceToString(r paltypes.RequestTrace) string
- func RequestTracesContent(id string, logs []paltypes.RequestTrace) string
- type ApiTestConfig
- type ApiTestReport
- type ErrorItem
- type Suppression
- type UnCoveredOperations
Constants ¶
View Source
const ( TestReportDirName = "ArmstrongReport" TraceLogDirName = "traces" ApiTestReportFileName = "SwaggerAccuracyReport" ApiTestConfigFileName = "ApiTestConfig.json" )
Variables ¶
This section is empty.
Functions ¶
func AllRequestTracesContent ¶
func AllRequestTracesContent(id string, logs []paltypes.RequestTrace) string
func CleanupAllRequestTracesContent ¶
func CleanupAllRequestTracesContent(id string, logs []paltypes.RequestTrace) string
func CleanupErrorMarkdownReport ¶
func CleanupErrorMarkdownReport(report types.Error, logs []paltypes.RequestTrace) string
func CleanupMarkdownReport ¶
func CleanupMarkdownReport(passReport types.PassReport) string
func DiffMarkdownReport ¶
func DiffMarkdownReport(report types.Diff, logs []paltypes.RequestTrace) string
func DiffMessageDescription ¶
func DiffMessageMarkdown ¶
func DiffMessageReadable ¶
func DiffMessageTerraform ¶
func ErrorMarkdownReport ¶
func ErrorMarkdownReport(report types.Error, logs []paltypes.RequestTrace) string
func GenerateApiTestReports ¶
func HttpRequestToString ¶
func HttpRequestToString(r *paltypes.HttpRequest) string
func HttpResponseToString ¶
func HttpResponseToString(r *paltypes.HttpResponse) string
func IsUrlMatchWithId ¶
func PassedMarkdownReport ¶
func PassedMarkdownReport(passReport types.PassReport, coverageReport coverage.CoverageReport) string
func RequestTraceToString ¶
func RequestTraceToString(r paltypes.RequestTrace) string
func RequestTracesContent ¶
func RequestTracesContent(id string, logs []paltypes.RequestTrace) string
Types ¶
type ApiTestConfig ¶
type ApiTestConfig struct {
SuppressionList []Suppression `json:"suppressionList"`
}
type ApiTestReport ¶
type ApiTestReport struct { CoveredSpecFiles []string `json:"coveredSpecFiles"` UnCoveredOperationsList []UnCoveredOperations `json:"unCoveredOperationsList"` Errors []ErrorItem `json:"errors"` }
func OavValidateTraffic ¶
func OavValidateTraffic(traceDir string, swaggerPath string, outputDir string) (*ApiTestReport, error)
type Suppression ¶
type UnCoveredOperations ¶
Click to show internal directories.
Click to hide internal directories.