INNER CODE UNIT · Go

TestGithubactionRunnerController

evryfs/github-actions-runner-operator · controllers/githubactionrunner_controller_test.go:44

func TestGithubactionRunnerController(t *testing.T) {
	const namespace = "someNamespace"
	const name = "somerunner"
	const secretName = "someSecretName"
	const org = "SomeOrg"
	const repo = ""
	const token = "someToken"
	const tokenKey = "GH_TOKEN"

	const someLabel = "someLabel"
	const someLabelValue = "someLabelValue"

	var mockResult []*github.Runner

	mockAPI := new(mockAPI)
	mockAPI.On("GetRunners", org, repo, token).Return(mockResult, nil).Once()

	runner := &v1alpha1.GithubActionRunner{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…