Documentation ¶
Index ¶
- Constants
- func AccAddress(t testing.TB) sdk.AccAddress
- func Attribute(t testing.TB) sdk.Attribute
- func Attributes(t testing.TB) []sdk.Attribute
- func BidID(t testing.TB) mtypes.BidID
- func Coin(_ testing.TB) sdk.Coin
- func Deployment(t testing.TB) dtypes.Deployment
- func DeploymentGroup(t testing.TB, did dtypes.DeploymentID, gseq uint32) dtypes.Group
- func DeploymentGroups(t testing.TB, did dtypes.DeploymentID, gseq uint32) []dtypes.Group
- func DeploymentID(t testing.TB) dtypes.DeploymentID
- func GroupID(t testing.TB) dtypes.GroupID
- func Hostname(t testing.TB) string
- func Keyring(t testing.TB) keys.Keybase
- func LeaseID(t testing.TB) mtypes.LeaseID
- func Logger(t testing.TB) log.Logger
- func Name(_ testing.TB, prefix string) string
- func OrderID(t testing.TB) mtypes.OrderID
- func ParseDeploymentEvent(t testing.TB, events sdk.Events) sdkutil.ModuleEvent
- func ParseEvent(t testing.TB, events sdk.Events) sdkutil.Event
- func ParseMarketEvent(t testing.TB, events sdk.Events) sdkutil.ModuleEvent
- func ParseProviderEvent(t testing.TB, events sdk.Events) sdkutil.ModuleEvent
- func Provider(t testing.TB) ptypes.Provider
- func Resources(t testing.TB) []dtypes.Resource
- func Unit(_ testing.TB) types.Unit
- type ManifestGenerator
Constants ¶
const CoinDenom = "akash"
CoinDenom provides ability to create coins in test functions and pass them into testutil functionality.
Variables ¶
This section is empty.
Functions ¶
func AccAddress ¶ added in v0.7.3
func AccAddress(t testing.TB) sdk.AccAddress
AccAddress provides an Account's Address bytes from a ed25519 generated private key.
func Attributes ¶ added in v0.7.3
Attributes generates a set of sdk.Attribute
func Deployment ¶
func Deployment(t testing.TB) dtypes.Deployment
Deployment generates a dtype.Deployment in state `DeploymentActive`
func DeploymentGroup ¶ added in v0.3.0
DeploymentGroup generates a dtype.DepDeploymentGroup in state `GroupOpen` with a set of random required attributes
func DeploymentGroups ¶ added in v0.0.2
DeploymentGroups returns a set of deployment groups generated by DeploymentGroup
func DeploymentID ¶ added in v0.7.3
func DeploymentID(t testing.TB) dtypes.DeploymentID
func ParseDeploymentEvent ¶ added in v0.7.3
func ParseMarketEvent ¶ added in v0.7.4
func ParseProviderEvent ¶ added in v0.7.4
Types ¶
type ManifestGenerator ¶ added in v0.7.3
type ManifestGenerator interface { Manifest(t testing.TB) manifest.Manifest Group(t testing.TB) manifest.Group Service(t testing.TB) manifest.Service ServiceExpose(t testing.TB) manifest.ServiceExpose }
ManifestGenerator is an interface for generating test manifests
var ( // DefaultManifestGenerator is the default test manifest generator DefaultManifestGenerator ManifestGenerator = RandManifestGenerator // ManifestGenerators is a list of all available manifest generators ManifestGenerators = []struct { Name string Generator ManifestGenerator }{ {"overflow", OverflowManifestGenerator}, {"random", RandManifestGenerator}, {"app", AppManifestGenerator}, } )
var AppManifestGenerator ManifestGenerator = manifestGeneratorApp{}
AppManifestGenerator represents a real-world, deployable configuration.
var OverflowManifestGenerator ManifestGenerator = manifestGeneratorOverflow{}
OverflowManifestGenerator generates a manifest maximum integer values
var RandManifestGenerator ManifestGenerator = manifestGeneratorRand{}
RandManifestGenerator generates a manifest with random values