2018-06-28 17:29:26 +00:00
|
|
|
package framework
|
|
|
|
|
2018-06-28 19:55:53 +00:00
|
|
|
// TestCase is the interface which an E2E test case implements.
|
|
|
|
// It is not meant to be implemented directly, instead the struct should embed
|
|
|
|
// the 'framework.TC' struct
|
2023-02-07 14:10:40 +00:00
|
|
|
//
|
|
|
|
// Deprecated: no longer use e2e/framework for new tests; see TestExample for new e2e test structure.
|
2018-06-28 17:29:26 +00:00
|
|
|
type TestCase interface {
|
|
|
|
internalTestCase
|
|
|
|
|
2018-06-28 19:55:53 +00:00
|
|
|
Name() string
|
2018-06-28 17:29:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type internalTestCase interface {
|
2020-09-18 15:46:47 +00:00
|
|
|
setClusterInfo(*ClusterInfo)
|
2018-06-28 17:29:26 +00:00
|
|
|
}
|
|
|
|
|
2018-07-03 18:26:05 +00:00
|
|
|
// BeforeAllTests is used to define a method to be called before the execution
|
|
|
|
// of all tests.
|
2023-02-07 14:10:40 +00:00
|
|
|
//
|
|
|
|
// Deprecated: no longer use e2e/framework for new tests; see TestExample for new e2e test structure.
|
2018-07-03 18:26:05 +00:00
|
|
|
type BeforeAllTests interface {
|
2018-07-10 19:57:02 +00:00
|
|
|
BeforeAll(*F)
|
2018-06-28 17:29:26 +00:00
|
|
|
}
|
|
|
|
|
2018-07-03 18:26:05 +00:00
|
|
|
// AfterAllTests is used to define a method to be called after the execution of
|
|
|
|
// all tests.
|
2023-02-07 14:10:40 +00:00
|
|
|
//
|
|
|
|
// Deprecated: no longer use e2e/framework for new tests; see TestExample for new e2e test structure.
|
2018-07-03 18:26:05 +00:00
|
|
|
type AfterAllTests interface {
|
2018-07-10 19:57:02 +00:00
|
|
|
AfterAll(*F)
|
2018-06-28 17:29:26 +00:00
|
|
|
}
|
|
|
|
|
2018-07-03 18:26:05 +00:00
|
|
|
// BeforeEachTest is used to define a method to be called before each test.
|
2023-02-07 14:10:40 +00:00
|
|
|
//
|
|
|
|
// Deprecated: no longer use e2e/framework for new tests; see TestExample for new e2e test structure.
|
2018-07-03 18:26:05 +00:00
|
|
|
type BeforeEachTest interface {
|
2018-07-10 19:57:02 +00:00
|
|
|
BeforeEach(*F)
|
2018-06-28 17:29:26 +00:00
|
|
|
}
|
|
|
|
|
2020-09-18 15:46:47 +00:00
|
|
|
// AfterEachTest is used to define a method to be called after each test.
|
2023-02-07 14:10:40 +00:00
|
|
|
//
|
|
|
|
// Deprecated: no longer use e2e/framework for new tests; see TestExample for new e2e test structure.
|
2018-07-03 18:26:05 +00:00
|
|
|
type AfterEachTest interface {
|
2018-07-10 19:57:02 +00:00
|
|
|
AfterEach(*F)
|
2018-06-28 17:29:26 +00:00
|
|
|
}
|