Documentation
¶
Index ¶
- Constants
- Variables
- func ConnectLocalServer(t *testing.T) *helper.DevlakeClient
- func CreateClient(t *testing.T) *helper.DevlakeClient
- func CreateTestConnection(client *helper.DevlakeClient) *helper.Connection
- func DeleteScopeWithDataIntegrityValidation(t *testing.T, client *helper.DevlakeClient, connectionId uint64, ...) services.BlueprintProjectPairs
- type BlueprintTestParams
- type FakePluginConnection
- type FakeProject
- type FakeScopeConfig
Constants ¶
View Source
const ( PLUGIN_NAME = "fake" TOKEN = "this_is_a_valid_token" FAKE_PLUGIN_DIR = "python/test/fakeplugin" )
Variables ¶
View Source
var ( PluginDataTables = []string{ "_raw_fake_fakepipelinestream", "_tool_fakeplugin_fakepipelines", "cicd_pipelines", "cicd_scopes", } PluginConfigTables = []string{ "_tool_fakeplugin_fakescopeconfigs", "_tool_fakeplugin_fakeconnections", } PluginScopeTable = "_tool_fakeplugin_fakeprojects" )
Functions ¶
func ConnectLocalServer ¶
func ConnectLocalServer(t *testing.T) *helper.DevlakeClient
func CreateClient ¶
func CreateClient(t *testing.T) *helper.DevlakeClient
func CreateTestConnection ¶
func CreateTestConnection(client *helper.DevlakeClient) *helper.Connection
func DeleteScopeWithDataIntegrityValidation ¶
func DeleteScopeWithDataIntegrityValidation(t *testing.T, client *helper.DevlakeClient, connectionId uint64, scopeId string, deleteDataOnly bool) services.BlueprintProjectPairs
Types ¶
type BlueprintTestParams ¶
type BlueprintTestParams struct {
// contains filtered or unexported fields
}
func CreateTestBlueprints ¶
func CreateTestBlueprints(t *testing.T, client *helper.DevlakeClient, count int) *BlueprintTestParams
type FakePluginConnection ¶
type FakeProject ¶
type FakeProject struct {
Id string `json:"id"`
Name string `json:"name"`
ConnectionId uint64 `json:"connectionId"`
ScopeConfigId uint64 `json:"scopeConfigId"`
Url string `json:"url"`
}
func CreateTestScope ¶
func CreateTestScope(client *helper.DevlakeClient, config *FakeScopeConfig, connectionId uint64) *FakeProject
type FakeScopeConfig ¶
type FakeScopeConfig struct {
Id uint64 `json:"id"`
Name string `json:"name"`
Env string `json:"env"`
Entities []string `json:"entities"`
}
func CreateTestScopeConfig ¶
func CreateTestScopeConfig(client *helper.DevlakeClient, connectionId uint64) *FakeScopeConfig
Click to show internal directories.
Click to hide internal directories.