github.com/smithx10/nomad@v0.9.1-rc1/e2e/framework/interfaces.go (about)

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