actions

package
v0.0.0-...-569970b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(tracer opentracing.Tracer) *buffalo.App

App ...

func DashboardAPIGetHandler

func DashboardAPIGetHandler(c buffalo.Context) error

DashboardAPIGetHandler ...

func DashboardAppGetHandler

func DashboardAppGetHandler(c buffalo.Context) error

DashboardAppGetHandler ...

func DashboardDetailsGetHandler

func DashboardDetailsGetHandler(c buffalo.Context) error

DashboardDetailsGetHandler ...

func DashboardGetHandler

func DashboardGetHandler(c buffalo.Context) error

DashboardGetHandler ...

func DashboardIndexGetHandler

func DashboardIndexGetHandler(c buffalo.Context) error

DashboardIndexGetHandler ...

func DashboardLoginPostHandler

func DashboardLoginPostHandler(c buffalo.Context) error

DashboardLoginPostHandler ...

func InitApp

func InitApp() error

InitApp ...

func ProvisionDeleteHandler

func ProvisionDeleteHandler(c buffalo.Context) error

ProvisionDeleteHandler ...

func ProvisionPostHandler

func ProvisionPostHandler(c buffalo.Context) error

ProvisionPostHandler ...

func ProvisionPutHandler

func ProvisionPutHandler(c buffalo.Context) error

ProvisionPutHandler ...

func RegisterProfEndpoints

func RegisterProfEndpoints(app *buffalo.App)

RegisterProfEndpoints Registers pprof endpoints

func RootGetHandler

func RootGetHandler(c buffalo.Context) error

RootGetHandler ...

func StepAPIGetHandler

func StepAPIGetHandler(c buffalo.Context) error

StepAPIGetHandler ...

func TestAssetUploadURLsAndroid

func TestAssetUploadURLsAndroid(c buffalo.Context) error

TestAssetUploadURLsAndroid handles request for Android test assets upload URLs

func TestAssetsGet

func TestAssetsGet(c buffalo.Context) error

TestAssetsGet ...

func TestAssetsPost

func TestAssetsPost(c buffalo.Context) error

TestAssetsPost ...

func TestGet

func TestGet(c buffalo.Context) error

TestGet ...

func TestPost

func TestPost(c buffalo.Context) error

TestPost ...

func TestReportPatchHandler

func TestReportPatchHandler(c buffalo.Context) error

TestReportPatchHandler ...

func TestReportShowHandler

func TestReportShowHandler(c buffalo.Context) error

TestReportShowHandler ...

func TestReportsListHandler

func TestReportsListHandler(c buffalo.Context) error

TestReportsListHandler ...

func TestReportsPostHandler

func TestReportsPostHandler(c buffalo.Context) error

TestReportsPostHandler ...

func TestSummaryHandler

func TestSummaryHandler(c buffalo.Context) error

TestSummaryHandler ...

func WebhookHandler

func WebhookHandler(c buffalo.Context) error

WebhookHandler ...

Types

type AppData

type AppData struct {
	AppSlug                string  `json:"app_slug"`
	BuildSlug              string  `json:"build_slug"`
	BuildNumber            int     `json:"build_number"`
	BuildStatus            int     `json:"build_status"`
	BuildTriggeredWorkflow string  `json:"build_triggered_workflow"`
	Git                    GitData `json:"git"`
}

AppData ...

type Env

type Env struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Env ...

type GitData

type GitData struct {
	Provider      string `json:"provider"`
	SrcBranch     string `json:"src_branch"`
	DstBranch     string `json:"dst_branch"`
	PullRequestID int    `json:"pull_request_id"`
}

GitData ...

type OutputURLModel

type OutputURLModel struct {
	ScreenshotURLs  []string          `json:"screenshot_urls,omitempty"`
	VideoURL        string            `json:"video_url,omitempty"`
	ActivityMapURL  string            `json:"activity_map_url,omitempty"`
	TestSuiteXMLURL string            `json:"test_suite_xml_url,omitempty"`
	LogURLs         []string          `json:"log_urls,omitempty"`
	AssetURLs       map[string]string `json:"asset_urls,omitempty"`
}

OutputURLModel ...

type ProvisionData

type ProvisionData struct {
	Plan            string `json:"plan"`
	AppSlug         string `json:"app_slug"`
	BitriseAPIToken string `json:"api_token"`
}

ProvisionData ...

type Test

type Test struct {
	DeviceName   string         `json:"device_name,omitempty"`
	APILevel     string         `json:"api_level,omitempty"`
	Status       string         `json:"status,omitempty"` //pending,inProgress,complete
	TestResults  []TestResults  `json:"test_results,omitempty"`
	Outcome      string         `json:"outcome,omitempty"` //failure,inconclusive,success,skipped?
	Orientation  string         `json:"orientation,omitempty"`
	Locale       string         `json:"locale,omitempty"`
	StepID       string         `json:"step_id,omitempty"`
	OutputURLs   OutputURLModel `json:"output_urls,omitempty"`
	TestType     string         `json:"test_type,omitempty"`
	TestIssues   []TestIssue    `json:"test_issues,omitempty"`
	StepDuration int            `json:"step_duration_in_seconds,omitempty"`
}

Test ...

type TestIssue

type TestIssue struct {
	Name       string `json:"name,omitempty"`
	Summary    string `json:"summary,omitempty"`
	Stacktrace string `json:"stacktrace,omitempty"`
}

TestIssue ...

type TestReportResponseItem

type TestReportResponseItem struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

TestReportResponseItem ...

type TestResults

type TestResults struct {
	Skipped int `json:"in_progress,omitempty"`
	Failed  int `json:"failed,omitempty"`
	Total   int `json:"total,omitempty"`
}

TestResults ...

type TestSummaryResponseModel

type TestSummaryResponseModel struct {
	Totals Totals `json:"totals"`
}

TestSummaryResponseModel ...

type Totals

type Totals struct {
	Tests        int `json:"tests"`
	Passed       int `json:"passed"`
	Skipped      int `json:"skipped"`
	Failed       int `json:"failed"`
	Inconclusive int `json:"inconclusive"`
}

Totals ...

func GetTotals

func GetTotals(appSlug, buildSlug string, logger *zap.Logger) (Totals, error)

GetTotals ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL