From 4d11594df024add42ce280a9c2afed685a1bc27c Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 31 Aug 2020 17:00:27 +0200 Subject: [PATCH] default description if none set by user Signed-off-by: Nicolas De Loof --- ecs/local/context.go | 3 +++ tests/ecs-local-e2e/context_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ecs/local/context.go b/ecs/local/context.go index 174d99e3..e2a93c9f 100644 --- a/ecs/local/context.go +++ b/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) { opts := params.(ecs.ContextParams) + if opts.Description == "" { + opts.Description = "ECS local endpoints" + } return struct{}{}, opts.Description, nil } diff --git a/tests/ecs-local-e2e/context_test.go b/tests/ecs-local-e2e/context_test.go index cab0c80d..6bf26bb7 100644 --- a/tests/ecs-local-e2e/context_test.go +++ b/tests/ecs-local-e2e/context_test.go @@ -14,7 +14,7 @@ limitations under the License. */ -package ecs_local_e2e +package main import ( "fmt"