e2e

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 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) (*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 CreateDatatype added in v0.11.0

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

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 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 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 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 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 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) (*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 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"`
}

type Stack

type Stack struct {
	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