remote

package
v0.0.0-...-7d3b672 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 FakePluginConnection struct {
	Id    uint64 `json:"id"`
	Name  string `json:"name"`
	Token string `json:"token"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL