test

package
v0.0.0-...-f953b1c Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveRenewalOpportunityForContract

func ActiveRenewalOpportunityForContract(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId, opportunityId string) string

func AssertNeo4jLabels

func AssertNeo4jLabels(ctx context.Context, t *testing.T, driver *neo4j.DriverWithContext, expectedLabels []string)

func AssertNeo4jNodeCount

func AssertNeo4jNodeCount(ctx context.Context, t *testing.T, driver *neo4j.DriverWithContext, nodes map[string]int)

func AssertNeo4jRelationCount

func AssertNeo4jRelationCount(ctx context.Context, t *testing.T, driver *neo4j.DriverWithContext, relations map[string]int)

func AssertRelationship

func AssertRelationship(ctx context.Context, t *testing.T, driver *neo4j.DriverWithContext, fromNodeId, relationshipType, toNodeId string)

func AssertRelationshipWithProperties

func AssertRelationshipWithProperties(ctx context.Context, t *testing.T, driver *neo4j.DriverWithContext, fromNodeId, relationshipType, toNodeId string, expectedProperties map[string]any)

func AssertRelationships

func AssertRelationships(ctx context.Context, t *testing.T, driver *neo4j.DriverWithContext, fromNodeId string, relationshipTypes []string, toNodeId string)

func CleanupAllData

func CleanupAllData(ctx context.Context, driver *neo4j.DriverWithContext)

func CloseDriver

func CloseDriver(driver neo4j.DriverWithContext)

func CreateBankAccount

func CreateBankAccount(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, bankAccount entity.BankAccountEntity) string

func CreateBillingProfile

func CreateBillingProfile(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, billingProfile entity.BillingProfileEntity) string

func CreateBillingProfileForOrganization

func CreateBillingProfileForOrganization(ctx context.Context, driver *neo4j.DriverWithContext, tenant, orgId string, billingProfile entity.BillingProfileEntity) string

func CreateContact

func CreateContact(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, contact entity.ContactEntity) string

func CreateContractForOrganization

func CreateContractForOrganization(ctx context.Context, driver *neo4j.DriverWithContext, tenant, organizationId string, contract entity.ContractEntity) string

func CreateCountry

func CreateCountry(ctx context.Context, driver *neo4j.DriverWithContext, entity entity.CountryEntity) string

func CreateDefaultUser

func CreateDefaultUser(ctx context.Context, driver *neo4j.DriverWithContext, tenant string) string

func CreateDefaultUserAlpha

func CreateDefaultUserAlpha(ctx context.Context, driver *neo4j.DriverWithContext, tenant string) string

func CreateDefaultUserWithId

func CreateDefaultUserWithId(ctx context.Context, driver *neo4j.DriverWithContext, tenant, userId string) string

func CreateEmail

func CreateEmail(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, entity entity.EmailEntity) string

func CreateEmailForUser

func CreateEmailForUser(ctx context.Context, driver *neo4j.DriverWithContext, tenant, userId string, entity entity.EmailEntity) string

func CreateExternalSystem

func CreateExternalSystem(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, externalSystem entity.ExternalSystemEntity)

func CreateInvoiceForContract

func CreateInvoiceForContract(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, invoice entity.InvoiceEntity) string

func CreateInvoiceLine

func CreateInvoiceLine(ctx context.Context, driver *neo4j.DriverWithContext, tenant, invoiceId string, invoiceLine entity.InvoiceLineEntity) string

func CreateInvoicingCycle

func CreateInvoicingCycle(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, entity entity.InvoicingCycleEntity) string

func CreateLocation

func CreateLocation(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, location entity.LocationEntity) string

func CreateLogEntry

func CreateLogEntry(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, logEntry entity.LogEntryEntity) string

func CreateLogEntryForOrganization

func CreateLogEntryForOrganization(ctx context.Context, driver *neo4j.DriverWithContext, tenant, orgId string, logEntry entity.LogEntryEntity) string

func CreateMasterPlan

func CreateMasterPlan(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, masterPlan entity.MasterPlanEntity) string

func CreateMasterPlanMilestone

func CreateMasterPlanMilestone(ctx context.Context, driver *neo4j.DriverWithContext, tenant, masterPlanId string, masterPlanMilestone entity.MasterPlanMilestoneEntity) string

func CreateOpportunity

func CreateOpportunity(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, opportunity entity.OpportunityEntity) string

func CreateOpportunityForContract

func CreateOpportunityForContract(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, opportunity entity.OpportunityEntity) string

func CreateOrder

func CreateOrder(ctx context.Context, driver *neo4j.DriverWithContext, tenant, organizationId string, order entity.OrderEntity) string

func CreateOrganization

func CreateOrganization(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, organization entity.OrganizationEntity) string

func CreateOrganizationPlan

func CreateOrganizationPlan(ctx context.Context, driver *neo4j.DriverWithContext, tenant, masterPlanId, orgId string, orgPlan entity.OrganizationPlanEntity) string

func CreateOrganizationPlanMilestone

func CreateOrganizationPlanMilestone(ctx context.Context, driver *neo4j.DriverWithContext, tenant, orgPlanId string, orgPlanMilestone entity.OrganizationPlanMilestoneEntity) string

func CreatePhoneNumber

func CreatePhoneNumber(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, phoneNumber entity.PhoneNumberEntity) string

func CreateReminder

func CreateReminder(ctx context.Context, driver *neo4j.DriverWithContext, tenant, userId, orgId string, createdAt time.Time, reminderEntity entity.ReminderEntity) string

func CreateServiceLineItemForContract

func CreateServiceLineItemForContract(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, serviceLineItem entity.ServiceLineItemEntity) string

func CreateSocial

func CreateSocial(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, social entity.SocialEntity) string

func CreateTag

func CreateTag(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, tagEntity entity.TagEntity) string

func CreateTenant

func CreateTenant(ctx context.Context, driver *neo4j.DriverWithContext, tenant string)

func CreateTenantBillingProfile

func CreateTenantBillingProfile(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, profile entity.TenantBillingProfileEntity) string

func CreateTenantSettings

func CreateTenantSettings(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, settings entity.TenantSettingsEntity) string

func CreateUser

func CreateUser(ctx context.Context, driver *neo4j.DriverWithContext, tenant string, user entity.UserEntity) string

func CreateUserWithId

func CreateUserWithId(ctx context.Context, driver *neo4j.DriverWithContext, tenant, userId string)

func CreateWorkspace

func CreateWorkspace(ctx context.Context, driver *neo4j.DriverWithContext, workspace string, provider string, tenant string)

func ExecuteReadQueryWithCollectionReturn

func ExecuteReadQueryWithCollectionReturn(ctx context.Context, driver *neo4j.DriverWithContext, query string, params map[string]any) []*db.Record

func ExecuteReadQueryWithSingleReturn

func ExecuteReadQueryWithSingleReturn(ctx context.Context, driver *neo4j.DriverWithContext, query string, params map[string]any) any

func ExecuteWriteQuery

func ExecuteWriteQuery(ctx context.Context, driver *neo4j.DriverWithContext, query string, params map[string]interface{})

func GetAllLabels

func GetAllLabels(ctx context.Context, driver *neo4j.DriverWithContext) []string

func GetAllNodesByLabel

func GetAllNodesByLabel(ctx context.Context, driver *neo4j.DriverWithContext, label string) ([]*dbtype.Node, error)

func GetCountOfNodes

func GetCountOfNodes(ctx context.Context, driver *neo4j.DriverWithContext, nodeLabel string) int

func GetCountOfRelationships

func GetCountOfRelationships(ctx context.Context, driver *neo4j.DriverWithContext, relationship string) int

func GetFirstNodeByLabel

func GetFirstNodeByLabel(ctx context.Context, driver *neo4j.DriverWithContext, label string) (*dbtype.Node, error)

func GetNodeById

func GetNodeById(ctx context.Context, driver *neo4j.DriverWithContext, label, id string) (*dbtype.Node, error)

func GetRelationship

func GetRelationship(ctx context.Context, driver *neo4j.DriverWithContext, fromNodeId, toNodeId string) (*dbtype.Relationship, error)

func GetRelationships

func GetRelationships(ctx context.Context, driver *neo4j.DriverWithContext, fromNodeId, toNodeId string) ([]dbtype.Relationship, error)

func GetTotalCountOfNodes

func GetTotalCountOfNodes(ctx context.Context, driver *neo4j.DriverWithContext) int

func InitTestNeo4jDB

func InitTestNeo4jDB() (testcontainers.Container, *neo4j.DriverWithContext)

func InsertContractWithActiveRenewalOpportunity

func InsertContractWithActiveRenewalOpportunity(ctx context.Context, driver *neo4j.DriverWithContext, tenant, organizationId string, contract entity.ContractEntity, opportunity entity.OpportunityEntity) string

func InsertContractWithOpportunity

func InsertContractWithOpportunity(ctx context.Context, driver *neo4j.DriverWithContext, tenant, organizationId string, contract entity.ContractEntity, opportunity entity.OpportunityEntity) string

func InsertServiceLineItem

func InsertServiceLineItem(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, billedType enum.BilledType, price float64, quantity int64, startedAt time.Time) string

func InsertServiceLineItemCanceled

func InsertServiceLineItemCanceled(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, billedType enum.BilledType, price float64, quantity int64, startedAt, endedAt time.Time) string

func InsertServiceLineItemCanceledWithParent

func InsertServiceLineItemCanceledWithParent(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, billedType enum.BilledType, price float64, quantity int64, previousBilledType enum.BilledType, previousPrice float64, previousQuantity int64, startedAt, endedAt time.Time, parentId string)

func InsertServiceLineItemEnded

func InsertServiceLineItemEnded(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, billedType enum.BilledType, price float64, quantity int64, startedAt, endedAt time.Time) string

func InsertServiceLineItemEndedWithParent

func InsertServiceLineItemEndedWithParent(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, billedType enum.BilledType, price float64, quantity int64, previousBilledType enum.BilledType, previousPrice float64, previousQuantity int64, startedAt, endedAt time.Time, parentId string)

func InsertServiceLineItemWithParent

func InsertServiceLineItemWithParent(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, billedType enum.BilledType, price float64, quantity int64, previousBilledType enum.BilledType, previousPrice float64, previousQuantity int64, startedAt time.Time, parentId string)

func LinkContractWithOpportunity

func LinkContractWithOpportunity(ctx context.Context, driver *neo4j.DriverWithContext, contractId, opportunityId string, renewal bool)

func LinkNodes

func LinkNodes(ctx context.Context, driver *neo4j.DriverWithContext, fromId, toId string, relation string, properties ...map[string]any)

func MarkInvoicingStarted

func MarkInvoicingStarted(ctx context.Context, driver *neo4j.DriverWithContext, tenant, contractId string, invoicingStartedAt time.Time)

func Terminate

func Terminate(container testcontainers.Container, ctx context.Context)

func UserOwnsOrganization

func UserOwnsOrganization(ctx context.Context, driver *neo4j.DriverWithContext, userId, organizationId string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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