Documentation
¶
Index ¶
- Constants
- Variables
- func AddUserToGroup(t *testing.T, groupId string, email string)
- func AssertEmpty(t *testing.T, actual interface{})
- func AssertEqual(t *testing.T, actual interface{}, expected interface{})
- func AssertHasKey(t *testing.T, source map[string]interface{}, key string)
- func AssertHasLength(t *testing.T, actual interface{}, expected int)
- func AssertHasNoKey(t *testing.T, source map[string]interface{}, key string)
- func AssertIsNil(t *testing.T, value *int)
- func AssertIsNotNil(t *testing.T, value interface{})
- func AssertKey(t *testing.T, key string, requestPart map[string]interface{}, ...)
- func AssertKeyValue(t *testing.T, source map[string]interface{}, key string, expected interface{})
- func AssertNotEmpty(t *testing.T, actual interface{})
- func AssertTimeEqual(t *testing.T, actualTime time.Time, expectedTime string)
- func BoolToStr(b bool) string
- func CleanupAccount()
- func CleanupConnections(groupId string)
- func CleanupDestinations()
- func CleanupExternalLogging()
- func CleanupGroups()
- func CleanupHybridDeploymentAgents()
- func CleanupPrivateLinks()
- func CleanupProxy()
- func CleanupTeams()
- func CleanupTrasformationProjects()
- func CleanupTrasformations()
- func CleanupUsers()
- func CleanupWebhooks()
- func CreateConnection(t *testing.T) string
- func CreateDestination(t *testing.T) string
- func CreateExternalLogging(t *testing.T) string
- func CreateGroup(t *testing.T) string
- func CreateHybridDeploymentAgent(t *testing.T) string
- func CreatePrivateLink(t *testing.T) string
- func CreateProxy(t *testing.T) string
- func CreateTeam(t *testing.T) string
- func CreateTeamConnection(t *testing.T, teamId string, connectionId string)
- func CreateTeamGroup(t *testing.T, teamId string, groupId string)
- func CreateTeamUser(t *testing.T, teamId string, userId string)
- func CreateTempConnection(t *testing.T) string
- func CreateTempDestination(t *testing.T) string
- func CreateTempExternalLogging(t *testing.T) string
- func CreateTempGroup(t *testing.T) string
- func CreateTempPrivateLink(t *testing.T) string
- func CreateTempTransformationProject(t *testing.T) string
- func CreateTempUser(t *testing.T) string
- func CreateTempWebhook(t *testing.T) string
- func CreateTestClient() (*fivetran.Client, *mock.HttpClient)
- func CreateTransformationProject(t *testing.T) string
- func CreateUser(t *testing.T) string
- func CreateUserConnection(t *testing.T, userId string, connectionId string)
- func CreateUserGroup(t *testing.T, userId string, groupId string)
- func CreateWebhookAccount(t *testing.T) string
- func DeleteConnection(t *testing.T, id string)
- func DeleteDestination(t *testing.T, id string)
- func DeleteExternalLogging(t *testing.T, id string)
- func DeleteGroup(t *testing.T, id string)
- func DeleteHybridDeploymentAgent(t *testing.T, id string)
- func DeletePrivateLink(t *testing.T, id string)
- func DeleteProxy(t *testing.T, id string)
- func DeleteTeam(t *testing.T, id string)
- func DeleteTeamConnection(t *testing.T, teamId string, connectionId string)
- func DeleteTeamGroup(t *testing.T, teamId string, groupId string)
- func DeleteTeamUser(t *testing.T, teamId string, userId string)
- func DeleteTransformation(t *testing.T, id string)
- func DeleteTransformationProject(t *testing.T, id string)
- func DeleteUser(t *testing.T, id string)
- func DeleteUserConnection(t *testing.T, userId string, connectionId string)
- func DeleteUserGroup(t *testing.T, userId string, groupId string)
- func DeleteWebhook(t *testing.T, id string)
- func InitE2E()
- func IsPredefinedGroupExist() bool
- func IsPredefinedUserExist() bool
- func RemoveUserFromGroup(t *testing.T, groupId string, userId string)
- func RequestBodyToJson(t *testing.T, req *http.Request) map[string]interface{}
Constants ¶
View Source
const ( PredefinedGroupName = "GoSdkTesting" PredefinedUserEmail = "dev-markov+go-fivetran-sdk@fivetran.com" PredefinedUserGivenName = "Go" PredefinedUserFamilyName = "5Tran" PredefinedUserPhone = "+1234567890" BqProjectId = "dulcet-yew-246109" // ! WARNING ! // ! Do not change these values on production ones ! // ! When running e2e tests locally endure you're using BLANK ACCOUNT credentials ! PredefinedGroupId = "sepulchre_settlement" PredefinedUserId = "recoup_befell" )
Tests should be re-written to not use a pre-defined user and group
Variables ¶
View Source
var ( TEST_KEY = "test_key" TEST_SECRET = "test_secret" TEST_CONNECTION_ID = "test_connection_id" TEST_HASH = "test_hash" TEST_PUBLIC_KEY = "test_public_key" )
View Source
var CertificateHash string
View Source
var Client *fivetran.Client
View Source
var EncodedCertificate string
Functions ¶
func AssertEmpty ¶
func AssertEqual ¶
func AssertHasKey ¶ added in v0.8.0
func AssertHasLength ¶
func AssertHasNoKey ¶ added in v0.8.0
func AssertIsNil ¶ added in v0.9.1
func AssertIsNotNil ¶ added in v0.8.0
func AssertKeyValue ¶ added in v0.8.0
func AssertNotEmpty ¶
func AssertTimeEqual ¶ added in v0.7.15
func CleanupAccount ¶
func CleanupAccount()
func CleanupConnections ¶ added in v1.1.1
func CleanupConnections(groupId string)
func CleanupDestinations ¶
func CleanupDestinations()
func CleanupExternalLogging ¶
func CleanupExternalLogging()
func CleanupGroups ¶
func CleanupGroups()
func CleanupHybridDeploymentAgents ¶ added in v1.0.0
func CleanupHybridDeploymentAgents()
func CleanupPrivateLinks ¶ added in v0.8.1
func CleanupPrivateLinks()
func CleanupProxy ¶ added in v0.8.5
func CleanupProxy()
func CleanupTeams ¶
func CleanupTeams()
func CleanupTrasformationProjects ¶ added in v1.0.7
func CleanupTrasformationProjects()
func CleanupTrasformations ¶ added in v1.0.7
func CleanupTrasformations()
func CleanupUsers ¶
func CleanupUsers()
func CleanupWebhooks ¶
func CleanupWebhooks()
func CreateConnection ¶ added in v1.1.1
func CreateDestination ¶
func CreateExternalLogging ¶
func CreateGroup ¶
func CreateHybridDeploymentAgent ¶ added in v1.0.0
func CreateProxy ¶ added in v0.8.5
func CreateTeamConnection ¶ added in v1.1.1
func CreateTempConnection ¶ added in v1.1.1
func CreateTempDestination ¶
func CreateTempGroup ¶
func CreateTempPrivateLink ¶ added in v0.8.1
func CreateTempTransformationProject ¶ added in v1.0.7
func CreateTempUser ¶
func CreateTempWebhook ¶
func CreateTestClient ¶ added in v0.8.0
func CreateTestClient() (*fivetran.Client, *mock.HttpClient)
func CreateTransformationProject ¶ added in v1.0.7
func CreateUser ¶
func CreateUserConnection ¶ added in v1.1.1
func CreateUserGroup ¶ added in v0.8.0
func CreateWebhookAccount ¶
func DeleteConnection ¶ added in v1.1.1
func DeleteDestination ¶
func DeleteExternalLogging ¶
func DeleteGroup ¶
func DeleteHybridDeploymentAgent ¶ added in v1.0.0
func DeletePrivateLink ¶ added in v0.8.1
func DeleteProxy ¶ added in v0.8.5
func DeleteTeam ¶
func DeleteTeamConnection ¶ added in v1.1.1
func DeleteTransformation ¶ added in v1.0.7
func DeleteTransformationProject ¶ added in v1.0.7
func DeleteUser ¶
func DeleteUserConnection ¶ added in v1.1.1
func DeleteUserGroup ¶ added in v0.8.0
func DeleteWebhook ¶
func IsPredefinedGroupExist ¶
func IsPredefinedGroupExist() bool
func IsPredefinedUserExist ¶
func IsPredefinedUserExist() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.