From 6543cd1e97ad712df8d2de76aff216ca65dac88a Mon Sep 17 00:00:00 2001 From: "eitam.ring@kubemq.io" Date: Sun, 30 Aug 2020 16:32:11 +0300 Subject: [PATCH] Minor correction to aws - lambda --- targets/aws/lambda/client_test.go | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/targets/aws/lambda/client_test.go b/targets/aws/lambda/client_test.go index b8aef44b..57afef66 100644 --- a/targets/aws/lambda/client_test.go +++ b/targets/aws/lambda/client_test.go @@ -97,8 +97,8 @@ func TestClient_Init(t *testing.T) { { name: "init", cfg: config.Spec{ - Name: "aws-lambda", - Kind: "aws.lambda", + Name: "target-aws-lambda", + Kind: "target.aws.lambda", Properties: map[string]string{ "aws_key": dat.awsKey, "aws_secret_key": dat.awsSecretKey, @@ -109,8 +109,8 @@ func TestClient_Init(t *testing.T) { }, { name: "init - missing key", cfg: config.Spec{ - Name: "aws-lambda", - Kind: "aws.lambda", + Name: "target-aws-lambda", + Kind: "target.aws.lambda", Properties: map[string]string{ "aws_secret_key": dat.awsSecretKey, "region": dat.region, @@ -120,8 +120,8 @@ func TestClient_Init(t *testing.T) { }, { name: "init - missing region", cfg: config.Spec{ - Name: "aws-lambda", - Kind: "aws.lambda", + Name: "target-aws-lambda", + Kind: "target.aws.lambda", Properties: map[string]string{ "aws_key": dat.awsKey, "aws_secret_key": dat.awsSecretKey, @@ -131,8 +131,8 @@ func TestClient_Init(t *testing.T) { }, { name: "init - missing secret key", cfg: config.Spec{ - Name: "aws-lambda", - Kind: "aws.lambda", + Name: "target-aws-lambda", + Kind: "target.aws.lambda", Properties: map[string]string{ "aws_key": dat.awsKey, "region": dat.region, @@ -163,8 +163,8 @@ func TestClient_List(t *testing.T) { dat, err := getTestStructure() require.NoError(t, err) cfg := config.Spec{ - Name: "aws-lambda", - Kind: "aws.lambda", + Name: "target-aws-lambda", + Kind: "target.aws.lambda", Properties: map[string]string{ "aws_key": dat.awsKey, "aws_secret_key": dat.awsSecretKey, @@ -206,8 +206,8 @@ func TestClient_Create(t *testing.T) { dat, err := getTestStructure() require.NoError(t, err) cfg := config.Spec{ - Name: "aws-lambda", - Kind: "aws.lambda", + Name: "target-aws-lambda", + Kind: "target.aws.lambda", Properties: map[string]string{ "aws_key": dat.awsKey, "aws_secret_key": dat.awsSecretKey, @@ -284,8 +284,8 @@ func TestClient_Delete(t *testing.T) { dat, err := getTestStructure() require.NoError(t, err) cfg := config.Spec{ - Name: "aws-lambda", - Kind: "aws.lambda", + Name: "target-aws-lambda", + Kind: "target.aws.lambda", Properties: map[string]string{ "aws_key": dat.awsKey, "aws_secret_key": dat.awsSecretKey, @@ -336,8 +336,8 @@ func TestClient_Run(t *testing.T) { dat, err := getTestStructure() require.NoError(t, err) cfg := config.Spec{ - Name: "aws-lambda", - Kind: "aws.lambda", + Name: "target-aws-lambda", + Kind: "target.aws.lambda", Properties: map[string]string{ "aws_key": dat.awsKey, "aws_secret_key": dat.awsSecretKey,