e2e

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastBlobMessage

func BroadcastBlobMessage(t *testing.T, client *resty.Client) (*fftypes.Data, *resty.Response, error)

func BroadcastMessage

func BroadcastMessage(client *resty.Client, data *fftypes.DataRefOrValue, confirm bool) (*resty.Response, error)

func BurnTokens

func BurnTokens(t *testing.T, client *resty.Client, burn *fftypes.TokenTransferInput, confirm bool) *fftypes.TokenTransfer

func CleanupExistingSubscription

func CleanupExistingSubscription(t *testing.T, client *resty.Client, namespace, name string)

func CreateBlob

func CreateBlob(t *testing.T, client *resty.Client, dt *fftypes.DatatypeRef) *fftypes.Data

func CreateContractSubscription added in v0.12.0

func CreateContractSubscription(t *testing.T, client *resty.Client, event *fftypes.FFIEvent, location *fftypes.JSONObject) *fftypes.ContractSubscription

func CreateDatatype added in v0.11.0

func CreateDatatype(t *testing.T, client *resty.Client, datatype *fftypes.Datatype, confirm bool) *fftypes.Datatype

func CreateFFI added in v0.12.0

func CreateFFI(t *testing.T, client *resty.Client, ffi *fftypes.FFI) (interface{}, error)

func CreateSubscription

func CreateSubscription(t *testing.T, client *resty.Client, input interface{}, expectedStatus int) *fftypes.Subscription

func CreateTokenPool

func CreateTokenPool(t *testing.T, client *resty.Client, pool *fftypes.TokenPool, confirm bool) *fftypes.TokenPool

func DeleteContractSubscription added in v0.12.0

func DeleteContractSubscription(t *testing.T, client *resty.Client, id *fftypes.UUID)

func DeleteSubscription

func DeleteSubscription(t *testing.T, client *resty.Client, id *fftypes.UUID)

func GetBlob

func GetBlob(t *testing.T, client *resty.Client, data *fftypes.Data, expectedStatus int) []byte

func GetBlockchainEvent added in v0.12.0

func GetBlockchainEvent(t *testing.T, client *resty.Client, eventID string) (interface{}, error)

func GetContractEvents added in v0.12.0

func GetContractEvents(t *testing.T, client *resty.Client, startTime time.Time, subscriptionID *fftypes.UUID) (events []*fftypes.BlockchainEvent)

func GetContractSubscriptions added in v0.12.0

func GetContractSubscriptions(t *testing.T, client *resty.Client, startTime time.Time) (subs []*fftypes.ContractSubscription)

func GetData

func GetData(t *testing.T, client *resty.Client, startTime time.Time, expectedStatus int) (data []*fftypes.Data)

func GetDataForMessage added in v0.11.0

func GetDataForMessage(t *testing.T, client *resty.Client, startTime time.Time, messageHash *fftypes.Bytes32) (data []*fftypes.Data)

func GetEvent added in v0.12.0

func GetEvent(t *testing.T, client *resty.Client, eventID string) (interface{}, error)

func GetMemberHostname

func GetMemberHostname(filename string, n int) (string, error)

func GetMemberPort

func GetMemberPort(filename string, n int) (int, error)

func GetMessages

func GetMessages(t *testing.T, client *resty.Client, startTime time.Time, msgType fftypes.MessageType, expectedStatus int) (msgs []*fftypes.Message)

func GetNamespaces

func GetNamespaces(client *resty.Client) (*resty.Response, error)

func GetOrgs

func GetOrgs(t *testing.T, client *resty.Client, expectedStatus int) (orgs []*fftypes.Organization)

func GetTokenAccountPools added in v0.11.5

func GetTokenAccountPools(t *testing.T, client *resty.Client, identity string) (pools []*fftypes.TokenAccountPool)

func GetTokenAccounts added in v0.11.5

func GetTokenAccounts(t *testing.T, client *resty.Client, poolID *fftypes.UUID) (accounts []*fftypes.TokenAccount)

func GetTokenBalance added in v0.11.0

func GetTokenBalance(t *testing.T, client *resty.Client, poolID *fftypes.UUID, tokenIndex, key string) (account *fftypes.TokenBalance)

func GetTokenPools

func GetTokenPools(t *testing.T, client *resty.Client, startTime time.Time) (pools []*fftypes.TokenPool)

func GetTokenTransfers

func GetTokenTransfers(t *testing.T, client *resty.Client, poolID *fftypes.UUID) (transfers []*fftypes.TokenTransfer)

func InvokeContractMethod added in v0.12.0

func InvokeContractMethod(t *testing.T, client *resty.Client, req *fftypes.ContractCallRequest) (interface{}, error)

func InvokeFFIMethod added in v0.12.0

func InvokeFFIMethod(t *testing.T, client *resty.Client, interfaceID, methodName string, req *fftypes.ContractCallRequest) (interface{}, error)

func MintTokens

func MintTokens(t *testing.T, client *resty.Client, mint *fftypes.TokenTransferInput, confirm bool) *fftypes.TokenTransfer

func NewResty

func NewResty(t *testing.T) *resty.Client

func PrivateBlobMessageDatatypeTagged

func PrivateBlobMessageDatatypeTagged(t *testing.T, client *resty.Client, orgNames []string) (*fftypes.Data, *resty.Response, error)

func PrivateMessage

func PrivateMessage(t *testing.T, client *resty.Client, data *fftypes.DataRefOrValue, orgNames []string, tag string, txType fftypes.TransactionType, confirm bool) (*resty.Response, error)

func QueryContractMethod added in v0.12.0

func QueryContractMethod(t *testing.T, client *resty.Client, req *fftypes.ContractCallRequest) (interface{}, error)

func QueryFFIMethod added in v0.12.0

func QueryFFIMethod(t *testing.T, client *resty.Client, interfaceID, methodName string, req *fftypes.ContractCallRequest) (interface{}, error)

func RequestReply

func RequestReply(t *testing.T, client *resty.Client, data *fftypes.DataRefOrValue, orgNames []string, tag string, txType fftypes.TransactionType) *fftypes.MessageInOut

func TransferTokens

func TransferTokens(t *testing.T, client *resty.Client, transfer *fftypes.TokenTransferInput, confirm bool) *fftypes.TokenTransfer

Types

type Member

type Member struct {
	ExposedFireflyPort   int    `json:"exposedFireflyPort,omitempty"`
	FireflyHostname      string `json:"fireflyHostname,omitempty"`
	Username             string `json:"username,omitempty"`
	Password             string `json:"password,omitempty"`
	UseHTTPS             bool   `json:"useHttps,omitempty"`
	ExposedConnectorPort int    `json:"exposedConnectorPort,omitempty"`
	OrgName              string `json:"orgName,omitempty"`
}

type Stack

type Stack struct {
	Name    string    `json:"name,omitempty"`
	Members []*Member `json:"members,omitempty"`
}

func ReadStack

func ReadStack(filename string) (*Stack, error)

Jump to

Keyboard shortcuts

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