Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntegrationTestSuite ¶
type IntegrationTestSuite struct {
suite.Suite
Env TestEnv
// contains filtered or unexported fields
}
IntegrationTestSuite base for all tests It's an integration test because we don't require a specifically deployed instance, we rely on the availability of prod.
func (*IntegrationTestSuite) AfterTest ¶
func (s *IntegrationTestSuite) AfterTest(suiteName, testName string)
AfterTest is run after the test has executed
Currently used to print useful information for failing tests
func (*IntegrationTestSuite) BeforeTest ¶
func (s *IntegrationTestSuite) BeforeTest(suiteName, testName string)
BeforeTest is run before the test
It gets the correct suite wide test environment As well as makes a test specific test tenant
func (*IntegrationTestSuite) SetupSuite ¶
func (s *IntegrationTestSuite) SetupSuite()
func (*IntegrationTestSuite) StdinWriteAndClose ¶
func (s *IntegrationTestSuite) StdinWriteAndClose(b []byte) (int, error)
StdinWriteAndClose writes the provided bytes to std in and closes the write side of pipe It should be called to provided input for any test that read stdin. os.Stdin is set to the read side of the pipe in BeforeTest, and restored in AfterTest.
type TestEnv ¶
type TestEnv struct {
// FQDN of the deployment to test against
FQDN string
VerifiableDataURL string
// azure blob storage variable
MerklelogAccountName string
MerklelogURL string
PublicTenantId string
MerkelogURLPrefix string
PublicKey string
}
func NewTestEnv ¶
NewTestEnv generates retrieves values from the environment.