فهرست منبع

default description if none set by user

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 5 سال پیش
والد
کامیت
4d11594df0
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 3 0
      ecs/local/context.go
  2. 1 1
      tests/ecs-local-e2e/context_test.go

+ 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) {
 	opts := params.(ecs.ContextParams)
+	if opts.Description == "" {
+		opts.Description = "ECS local endpoints"
+	}
 	return struct{}{}, opts.Description, nil
 }

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

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