mirror of https://github.com/k3s-io/k3s
expose e2e methods for downstream use
parent
5c08d276a0
commit
2952af0d59
|
@ -29,7 +29,7 @@ type command struct {
|
|||
component string
|
||||
}
|
||||
|
||||
func coreDump(dir string) {
|
||||
func CoreDump(dir string) {
|
||||
c, err := loadClient()
|
||||
if err != nil {
|
||||
fmt.Printf("Error creating client: %v", err)
|
||||
|
|
|
@ -91,7 +91,7 @@ func TestE2E(t *testing.T) {
|
|||
if err := os.MkdirAll(*reportDir, 0755); err != nil {
|
||||
glog.Errorf("Failed creating report directory: %v", err)
|
||||
}
|
||||
defer coreDump(*reportDir)
|
||||
defer CoreDump(*reportDir)
|
||||
}
|
||||
|
||||
if testContext.Provider == "" {
|
||||
|
|
|
@ -125,6 +125,10 @@ type TestContextType struct {
|
|||
|
||||
var testContext TestContextType
|
||||
|
||||
func SetTestContext(t TestContextType) {
|
||||
testContext = t
|
||||
}
|
||||
|
||||
type ContainerFailures struct {
|
||||
status *api.ContainerStateTerminated
|
||||
restarts int
|
||||
|
|
Loading…
Reference in New Issue