mirror of
https://github.com/hanzoai/volume.git
synced 2026-10-01 00:48:00 +00:00
A fork of Rancher's local-path-provisioner at v0.0.36. The behaviour is unchanged and deliberately so — a directory on the node a pod lands on is the right thing for a disk. What changes is identity. The provisioner answers to hanzo.ai/volume rather than rancher.io/local-path. That is not branding: two provisioners sharing one name race for the same claims, and a stock k3s carries the upstream one, so a cluster running both would settle our storage by chance. Data lives at /var/lib/hanzo/volume, so reading a Hanzo cluster does not mean learning another vendor's directory. Apache-2.0 as published, unaltered, with Rancher's attribution in NOTICE. The README says what this is not: durability. A volume here dies with its node. That is hanzoai/replicate's question, one layer up, and keeping the two apart is what lets the disk stay this simple.
67 lines
1.8 KiB
Go
67 lines
1.8 KiB
Go
package suite
|
|
|
|
import "testing"
|
|
|
|
// TestingSuite can store and return the current *testing.T context
|
|
// generated by 'go test'.
|
|
type TestingSuite interface {
|
|
T() *testing.T
|
|
SetT(*testing.T)
|
|
SetS(suite TestingSuite)
|
|
}
|
|
|
|
// SetupAllSuite has a SetupSuite method, which will run before the
|
|
// tests in the suite are run.
|
|
type SetupAllSuite interface {
|
|
SetupSuite()
|
|
}
|
|
|
|
// SetupTestSuite has a SetupTest method, which will run before each
|
|
// test in the suite.
|
|
type SetupTestSuite interface {
|
|
SetupTest()
|
|
}
|
|
|
|
// TearDownAllSuite has a TearDownSuite method, which will run after
|
|
// all the tests in the suite have been run.
|
|
type TearDownAllSuite interface {
|
|
TearDownSuite()
|
|
}
|
|
|
|
// TearDownTestSuite has a TearDownTest method, which will run after
|
|
// each test in the suite.
|
|
type TearDownTestSuite interface {
|
|
TearDownTest()
|
|
}
|
|
|
|
// BeforeTest has a function to be executed right before the test
|
|
// starts and receives the suite and test names as input
|
|
type BeforeTest interface {
|
|
BeforeTest(suiteName, testName string)
|
|
}
|
|
|
|
// AfterTest has a function to be executed right after the test
|
|
// finishes and receives the suite and test names as input
|
|
type AfterTest interface {
|
|
AfterTest(suiteName, testName string)
|
|
}
|
|
|
|
// WithStats implements HandleStats, a function that will be executed
|
|
// when a test suite is finished. The stats contain information about
|
|
// the execution of that suite and its tests.
|
|
type WithStats interface {
|
|
HandleStats(suiteName string, stats *SuiteInformation)
|
|
}
|
|
|
|
// SetupSubTest has a SetupSubTest method, which will run before each
|
|
// subtest in the suite.
|
|
type SetupSubTest interface {
|
|
SetupSubTest()
|
|
}
|
|
|
|
// TearDownSubTest has a TearDownSubTest method, which will run after
|
|
// each subtest in the suite have been run.
|
|
type TearDownSubTest interface {
|
|
TearDownSubTest()
|
|
}
|