Documentation ¶
Index ¶
- Variables
- func DatasetActions(t *testing.T, rmf RepoMakerFunc)
- func NewJobsByAutomationFile() cafs.File
- func NewMemRepoFromDir(path string) (repo.Repo, crypto.PrivKey, error)
- func NewTestRepo(rc *regclient.Client) (mr repo.Repo, err error)
- func NewTestRepoFromProfileID(id profile.ID, dataIndex int) (repo.Repo, error)
- func ProfileConfig() *config.ProfilePod
- func ReadRepoConfig(path string) (pro *profile.Profile, pk crypto.PrivKey, err error)
- func RunRepoTests(t *testing.T, rmf RepoMakerFunc)
- type RepoMakerFunc
Constants ¶
This section is empty.
Variables ¶
var BadDataFile = cafs.NewMemfileBytes("bad_csv_file.csv", []byte(`
asdlkfasd,,
fm as
f;lajsmf
a
's;f a'
sdlfj asdf`))
BadDataFile is a bunch of bad CSV data
var BadDataFormatFile = cafs.NewMemfileBytes("abc.csv", []byte(`
"colA","colB","colC","colD"
1,2,3,4
1,2,3`))
BadDataFormatFile has weird line lengths
var BadStructureFile = cafs.NewMemfileBytes("badStructure.csv", []byte(`
colA, colB, colB, colC
1,2,3,4
1,2,3,4`))
BadStructureFile has double-named columns
Functions ¶
func DatasetActions ¶ added in v0.3.0
func DatasetActions(t *testing.T, rmf RepoMakerFunc)
DatasetActions runs actions.Dataset tests against a given repo TODO - actions should only use public repo methods. remove this test in favor of a lower-level test suite
func NewJobsByAutomationFile ¶ added in v0.3.1
NewJobsByAutomationFile returns a new file of valid csv data
func NewMemRepoFromDir ¶ added in v0.3.0
NewMemRepoFromDir reads a director of testCases and calls createDataset on each case with the given privatekey, yeilding a repo where the peer with this pk has created each dataset in question
func NewTestRepo ¶
NewTestRepo generates a repository usable for testing purposes
func NewTestRepoFromProfileID ¶ added in v0.3.2
NewTestRepoFromProfileID constructs a repo from a profileID, usable for tests
func ProfileConfig ¶ added in v0.3.0
func ProfileConfig() *config.ProfilePod
ProfileConfig returns the test profile as a config.Profile
func ReadRepoConfig ¶ added in v0.3.0
ReadRepoConfig loads configuration data from a .yaml file
func RunRepoTests ¶
func RunRepoTests(t *testing.T, rmf RepoMakerFunc)
RunRepoTests tests that this repo conforms to expected behaviors