github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/e2e/framework/interfaces.go (about) 1 package framework 2 3 import "github.com/hashicorp/nomad/e2e/framework/provisioning" 4 5 // TestCase is the interface which an E2E test case implements. 6 // It is not meant to be implemented directly, instead the struct should embed 7 // the 'framework.TC' struct 8 type TestCase interface { 9 internalTestCase 10 11 Name() string 12 } 13 14 type internalTestCase interface { 15 setClusterInfo(*provisioning.ClusterInfo) 16 } 17 18 // BeforeAllTests is used to define a method to be called before the execution 19 // of all tests. 20 type BeforeAllTests interface { 21 BeforeAll(*F) 22 } 23 24 // AfterAllTests is used to define a method to be called after the execution of 25 // all tests. 26 type AfterAllTests interface { 27 AfterAll(*F) 28 } 29 30 // BeforeEachTest is used to define a method to be called before each test. 31 type BeforeEachTest interface { 32 BeforeEach(*F) 33 } 34 35 // AfterEachTest is used to degine a method to be called after each test. 36 type AfterEachTest interface { 37 AfterEach(*F) 38 }