1
0
Эх сурвалжийг харах

default description if none set by user

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 5 жил өмнө
parent
commit
4d11594df0

+ 3 - 0
ecs/local/context.go

@@ -36,5 +36,8 @@ func (e ecsLocalSimulation) Logout(ctx context.Context) error {
 
 
 func (e ecsLocalSimulation) CreateContextData(ctx context.Context, params interface{}) (contextData interface{}, description string, err error) {
 func (e ecsLocalSimulation) CreateContextData(ctx context.Context, params interface{}) (contextData interface{}, description string, err error) {
 	opts := params.(ecs.ContextParams)
 	opts := params.(ecs.ContextParams)
+	if opts.Description == "" {
+		opts.Description = "ECS local endpoints"
+	}
 	return struct{}{}, opts.Description, nil
 	return struct{}{}, opts.Description, nil
 }
 }

+ 1 - 1
tests/ecs-local-e2e/context_test.go

@@ -14,7 +14,7 @@
    limitations under the License.
    limitations under the License.
 */
 */
 
 
-package ecs_local_e2e
+package main
 
 
 import (
 import (
 	"fmt"
 	"fmt"