Skip to content

Commit

Permalink
filter_ecs: update tests for finalized metadata names
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley committed Oct 10, 2022
1 parent aea8c19 commit 9200384
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/runtime/filter_ecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void flb_test_ecs_filter()
/* Configure filter */
ret = flb_filter_set(ctx->flb, ctx->f_ffd,
"ecs_tag_prefix", "testprefix-",
"ADD", "resource $ClusterName.$TaskID.$ContainerName",
"ADD", "resource $ClusterName.$TaskID.$ECSContainerName",
NULL);
TEST_CHECK(ret == 0);

Expand Down Expand Up @@ -182,7 +182,7 @@ static void flb_test_ecs_filter_no_prefix()
/* Configure filter */
ret = flb_filter_set(ctx->flb, ctx->f_ffd,
"ecs_tag_prefix", "",
"ADD", "resource $ClusterName.$TaskID.$ContainerName",
"ADD", "resource $ClusterName.$TaskID.$ECSContainerName",
NULL);
TEST_CHECK(ret == 0);

Expand Down Expand Up @@ -233,7 +233,7 @@ static void flb_test_ecs_filter_cluster_metadata_only()
"ecs_tag_prefix", "",
"cluster_metadata_only", "on",
/* only cluster value will be populated */
"ADD", "resource $ClusterName.$TaskID.$ContainerName",
"ADD", "resource $ClusterName.$TaskID.$ECSContainerName",
NULL);
TEST_CHECK(ret == 0);

Expand Down Expand Up @@ -283,7 +283,7 @@ static void flb_test_ecs_filter_cluster_error()
/* Configure filter */
ret = flb_filter_set(ctx->flb, ctx->f_ffd,
"ecs_tag_prefix", "",
"ADD", "resource $ClusterName.$TaskID.$ContainerName",
"ADD", "resource $ClusterName.$TaskID.$ECSContainerName",
NULL);
TEST_CHECK(ret == 0);

Expand Down Expand Up @@ -333,7 +333,7 @@ static void flb_test_ecs_filter_task_error()
/* Configure filter */
ret = flb_filter_set(ctx->flb, ctx->f_ffd,
"ecs_tag_prefix", "",
"ADD", "resource $ClusterName.$TaskID.$ContainerName",
"ADD", "resource $ClusterName.$TaskID.$ECSContainerName",
NULL);
TEST_CHECK(ret == 0);

Expand Down

0 comments on commit 9200384

Please sign in to comment.