apitest

package
v2.6.20 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const SessionSecret = "hubsession"

Variables

This section is empty.

Functions

func ConfirmEmail

func ConfirmEmail(t util.TestingTWithCleanup, gurl string, secret string)

func DefaultBillingConfig added in v2.3.0

func DefaultBillingConfig(t util.TestingTWithCleanup) billing.Config

func DefaultTextileConfig

func DefaultTextileConfig(t util.TestingTWithCleanup) core.Config

func GetIPFSApiAddr added in v2.4.0

func GetIPFSApiAddr() ma.Multiaddr

GetIPFSApiAddr returns env value or default.

func GetMongoUri added in v2.4.0

func GetMongoUri() string

GetMongoUri returns env value or default.

func MakeBillingWithConfig added in v2.3.0

func MakeBillingWithConfig(t util.TestingTWithCleanup, conf billing.Config)

func MakeTextile

func MakeTextile(t *testing.T) core.Config

func MakeTextileWithConfig

func MakeTextileWithConfig(t util.TestingTWithCleanup, conf core.Config, opts ...Option) func()

func NewEmail

func NewEmail() string

func NewUsername

func NewUsername() string

func Signin

func Signin(t *testing.T, client *client.Client, conf core.Config, usernameOrEmail string) *pb.SigninResponse

func Signup

func Signup(t util.TestingTWithCleanup, client *client.Client, conf core.Config, username, email string) *pb.SignupResponse

func StartServices added in v2.3.0

func StartServices() (cleanup func())

StartServices starts local mongodb and ipfs services.

Types

type Option added in v2.3.0

type Option func(*Options)

func WithRepoPath added in v2.3.0

func WithRepoPath(repoPath string) Option

func WithoutAutoShutdown added in v2.3.0

func WithoutAutoShutdown() Option

type Options added in v2.3.0

type Options struct {
	RepoPath       string
	NoAutoShutdown bool
}

Jump to

Keyboard shortcuts

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