Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/certification/embedded/embedded.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ func WithAppProtocol(protocol runtime.Protocol, port int) Option {
}
}

func WithoutApp() Option {
return func(config *runtime.Config) {
config.ApplicationPort = 0
}
}

func WithDaprHTTPPort(port int) Option {
return func(config *runtime.Config) {
config.HTTPPort = port
Expand All @@ -76,6 +82,12 @@ func WithListenAddresses(addresses []string) Option {
}
}

func WithComponentsPath(path string) Option {
return func(config *runtime.Config) {
config.Standalone.ComponentsPath = path
}
}

func NewRuntime(appID string, opts ...Option) (*runtime.DaprRuntime, error) {
var err error

Expand Down