Documentation
¶
Index ¶
- func CreateCRD(ctx context.Context, t *testing.T, repoinfo *ghlib.Repository, run *params.Run, ...) error
- func CreateCRDIncoming(ctx context.Context, t *testing.T, repoinfo *ghlib.Repository, run *params.Run, ...) error
- func CreateTag(ctx context.Context, t *testing.T, runcnx *params.Run, ...) (*github.Tag, error)
- func DeleteTag(ctx context.Context, ghcnx *pacgithub.Provider, opts options.E2E, ...) error
- func PRCreate(ctx context.Context, cs *params.Run, ghcnx *ghprovider.Provider, ...) (int, error)
- func PushFilesToRef(ctx context.Context, client *ghlib.Client, ...) (string, *ghlib.Reference, error)
- func Setup(ctx context.Context, onSecondController, viaDirectWebhook bool) (context.Context, *params.Run, options.E2E, *github.Provider, error)
- type InstrumentationAPICall
- type PRTest
- type TestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCRDIncoming ¶ added in v0.17.0
func PushFilesToRef ¶
Types ¶
type InstrumentationAPICall ¶ added in v0.37.0
type InstrumentationAPICall struct {
Operation string `json:"operation"`
DurationMs int64 `json:"duration_ms"`
URLPath string `json:"url_path"`
RateLimitRemaining string `json:"rate_limit_remaining"`
StatusCode int `json:"status_code"`
Provider string `json:"provider"`
Repo string `json:"repo"`
}
InstrumentationAPICall represents a single GitHub API call with its metadata.
type PRTest ¶ added in v0.25.0
type PRTest struct {
Label string
YamlFiles []string
SecondController bool
Webhook bool
NoStatusCheck bool
Cnx *params.Run
Options options.E2E
Provider *ghprovider.Provider
TargetNamespace string
TargetRefName string
PRNumber int
SHA string
Logger *zap.SugaredLogger
CommitTitle string
}
func (*PRTest) RunPullRequest ¶ added in v0.25.0
func (*PRTest) RunPushRequest ¶ added in v0.25.0
type TestResult ¶ added in v0.37.0
type TestResult struct {
TestName string `json:"test_name"`
Timestamp string `json:"timestamp"`
Controller string `json:"controller"`
PRNumber int `json:"pr_number"`
SHA string `json:"sha"`
TargetNamespace string `json:"target_namespace"`
GitHubAPICalls []InstrumentationAPICall `json:"github_api_calls"`
TotalCalls int `json:"total_calls"`
OAuth2MarkerLine int `json:"oauth2_marker_line"`
}
TestResult represents the complete test result with GitHub API calls.
Click to show internal directories.
Click to hide internal directories.