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 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 CleanupConnectors(groupId string)
- func CleanupDbtProjects()
- func CleanupDbtTransformations(projectId, nextCursor string)
- func CleanupDestinations()
- func CleanupExternalLogging()
- func CleanupGroups()
- func CleanupPrivateLinks()
- func CleanupTeams()
- func CleanupUsers()
- func CleanupWebhooks()
- func CreateConnector(t *testing.T) string
- func CreateDbtDestination(t *testing.T)
- func CreateDbtProject(t *testing.T) string
- func CreateDbtTransformation(t *testing.T) string
- func CreateDestination(t *testing.T) string
- func CreateExternalLogging(t *testing.T) string
- func CreateGroup(t *testing.T) string
- func CreatePrivateLink(t *testing.T) (string, string, string)
- func CreatePrivateLinkDestination(t *testing.T, id string) string
- func CreatePrivateLinkGroup(t *testing.T) string
- func CreateTeam(t *testing.T) string
- func CreateTeamConnector(t *testing.T, teamId string, connectorId string)
- func CreateTeamGroup(t *testing.T, teamId string, groupId string)
- func CreateTeamUser(t *testing.T, teamId string, userId string)
- func CreateTempConnector(t *testing.T) string
- func CreateTempDbtTransformation(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, string)
- func CreateTempUser(t *testing.T) string
- func CreateTempWebhook(t *testing.T) string
- func CreateTestClient() (*fivetran.Client, *mock.HttpClient)
- func CreateUser(t *testing.T) string
- func CreateUserConnector(t *testing.T, userId string, connectorId string)
- func CreateUserGroup(t *testing.T, userId string, groupId string)
- func CreateWebhookAccount(t *testing.T) string
- func DeleteConnector(t *testing.T, id string)
- func DeleteDbtDestination()
- func DeleteDbtTransformation(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 DeletePrivateLink(t *testing.T, id string)
- func DeleteTeam(t *testing.T, id string)
- func DeleteTeamConnector(t *testing.T, teamId string, connectorId string)
- func DeleteTeamGroup(t *testing.T, teamId string, groupId string)
- func DeleteTeamUser(t *testing.T, teamId string, userId string)
- func DeleteUser(t *testing.T, id string)
- func DeleteUserConnector(t *testing.T, userId string, connectorId 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_CONNECTOR_ID = "test_connector_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 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 CleanupConnectors ¶
func CleanupConnectors(groupId string)
func CleanupDbtProjects ¶
func CleanupDbtProjects()
func CleanupDbtTransformations ¶
func CleanupDbtTransformations(projectId, nextCursor string)
func CleanupDestinations ¶
func CleanupDestinations()
func CleanupExternalLogging ¶
func CleanupExternalLogging()
func CleanupGroups ¶
func CleanupGroups()
func CleanupPrivateLinks ¶ added in v0.8.1
func CleanupPrivateLinks()
func CleanupTeams ¶
func CleanupTeams()
func CleanupUsers ¶
func CleanupUsers()
func CleanupWebhooks ¶
func CleanupWebhooks()
func CreateConnector ¶
func CreateDbtDestination ¶
func CreateDbtProject ¶
func CreateDbtTransformation ¶
func CreateDestination ¶
func CreateExternalLogging ¶
func CreateGroup ¶
func CreatePrivateLink ¶ added in v0.8.1
func CreatePrivateLinkDestination ¶ added in v0.8.1
func CreatePrivateLinkGroup ¶ added in v0.8.1
Private Links
func CreateTeamConnector ¶
func CreateTempConnector ¶
func CreateTempDestination ¶
func CreateTempGroup ¶
func CreateTempPrivateLink ¶ added in v0.8.1
func CreateTempUser ¶
func CreateTempWebhook ¶
func CreateTestClient ¶ added in v0.8.0
func CreateTestClient() (*fivetran.Client, *mock.HttpClient)
func CreateUser ¶
func CreateUserConnector ¶ added in v0.8.0
func CreateUserGroup ¶ added in v0.8.0
func CreateWebhookAccount ¶
func DeleteConnector ¶
func DeleteDbtDestination ¶
func DeleteDbtDestination()
func DeleteDbtTransformation ¶
func DeleteDestination ¶
func DeleteExternalLogging ¶
func DeleteGroup ¶
func DeletePrivateLink ¶ added in v0.8.1
func DeleteTeam ¶
func DeleteTeamConnector ¶
func DeleteUser ¶
func DeleteUserConnector ¶ added in v0.8.0
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.