| Index: impl/dummy/dummy.go
|
| diff --git a/impl/dummy/dummy.go b/impl/dummy/dummy.go
|
| index 45879e1ce43f006f61e184121b082a9ea353fc5f..c657a9a2509b1bd1038591bbd0199ebd8ab6d23d 100644
|
| --- a/impl/dummy/dummy.go
|
| +++ b/impl/dummy/dummy.go
|
| @@ -164,10 +164,19 @@ func (i) AppID() string { return "appid" }
|
| func (i) FullyQualifiedAppID() string { return "dummy~appid" }
|
| func (i) GetNamespace() string { return "dummy-namespace" }
|
| func (i) ModuleHostname(module, version, instance string) (string, error) {
|
| - panic(ni())
|
| + if instance != "" {
|
| + panic(ni())
|
| + }
|
| + if module == "" {
|
| + module = "module"
|
| + }
|
| + if version == "" {
|
| + version = "version"
|
| + }
|
| + return fmt.Sprintf("%s.%s.dummy-appid.example.com", version, module), nil
|
| }
|
| -func (i) ModuleName() string { panic(ni()) }
|
| -func (i) DefaultVersionHostname() string { panic(ni()) }
|
| +func (i) ModuleName() string { return "module" }
|
| +func (i) DefaultVersionHostname() string { return "dummy-appid.example.com" }
|
| func (i) PublicCertificates() ([]info.Certificate, error) { panic(ni()) }
|
| func (i) RequestID() string { panic(ni()) }
|
| func (i) ServiceAccount() (string, error) { panic(ni()) }
|
|
|