Logo
Explore Help
Register Sign In
actions/actions-runner-controller
1
0
Fork 0
You've already forked actions-runner-controller
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
v0.20.0
actions-runner-controller/testing/getenv.go

17 lines
191 B
Go
Raw Permalink Normal View History

e2e: Cover RunnerDeployment (#668) Previously the E2E test suite covered only RunnerSet. This refactors the existing E2E test code to extract the common test structure into a `env` struct and its methods, and use it to write two very similar tests, one for RunnerSet and another for RunnerDeployment.
2021-06-29 17:52:43 +09:00
package testing
import (
"os"
"testing"
)
func Getenv(t *testing.T, name string) string {
t.Helper()
v := os.Getenv(name)
if v == "" {
t.Fatal(name + " must be set")
}
return v
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 140ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API