@@ -34,12 +34,12 @@ var validRecipe = recipe.Recipe{
3434 Name : "test-extractor" ,
3535 },
3636 Processors : []recipe.PluginRecipe {
37- {Name : "test-processor" , Config : map [string ]interface {} {
37+ {Name : "test-processor" , Config : map [string ]any {
3838 "proc-foo" : "proc-bar" ,
3939 }},
4040 },
4141 Sinks : []recipe.PluginRecipe {
42- {Name : "test-sink" , Config : map [string ]interface {} {
42+ {Name : "test-sink" , Config : map [string ]any {
4343 "url" : "http://localhost:3000/data" ,
4444 }},
4545 },
@@ -919,14 +919,14 @@ func TestAgentRun(t *testing.T) {
919919 Source : recipe.PluginRecipe {
920920 Name : "application_yaml" ,
921921 Scope : "application-test" ,
922- Config : map [string ]interface {} {
922+ Config : map [string ]any {
923923 "file" : "../plugins/extractors/application_yaml/testdata/application.detailed.yaml" ,
924924 },
925925 },
926926 Processors : []recipe.PluginRecipe {
927927 {
928928 Name : "script" ,
929- Config : map [string ]interface {} {
929+ Config : map [string ]any {
930930 "engine" : "tengo" ,
931931 "script" : heredoc .Doc (`
932932 text := import("text")
@@ -936,13 +936,13 @@ func TestAgentRun(t *testing.T) {
936936 },
937937 {
938938 Name : "labels" ,
939- Config : map [string ]interface {} {
939+ Config : map [string ]any {
940940 "labels" : map [string ]string {"field_a" : "1" },
941941 },
942942 },
943943 },
944944 Sinks : []recipe.PluginRecipe {
945- {Name : "test-sink" , Config : map [string ]interface {} {}},
945+ {Name : "test-sink" , Config : map [string ]any {}},
946946 },
947947 })
948948 assert .NoError (t , run .Error )
@@ -953,13 +953,13 @@ func TestAgentRun(t *testing.T) {
953953 Type : "application" ,
954954 Description : "My amazing project" ,
955955 Properties : func () * structpb.Struct {
956- s , _ := structpb .NewStruct (map [string ]interface {} {
956+ s , _ := structpb .NewStruct (map [string ]any {
957957 "id" : "test-id" ,
958958 "version" : "c23sdf6" ,
959959 "url" : "http://company.com/myteam/test" ,
960960 "create_time" : "2006-01-02T15:04:05Z" ,
961961 "update_time" : "2006-01-02T15:04:05Z" ,
962- "labels" : map [string ]interface {} {"field_a" : "1" , "x" : "y" },
962+ "labels" : map [string ]any {"field_a" : "1" , "x" : "y" },
963963 })
964964 return s
965965 }(),
@@ -982,13 +982,13 @@ func TestAgentRun(t *testing.T) {
982982 Source : recipe.PluginRecipe {
983983 Name : "application_yaml" ,
984984 Scope : "application-test" ,
985- Config : map [string ]interface {} {
985+ Config : map [string ]any {
986986 "file" : "../plugins/extractors/application_yaml/testdata/application.detailed.yaml" ,
987987 },
988988 },
989989 Sinks : []recipe.PluginRecipe {{
990990 Name : "file" ,
991- Config : map [string ]interface {} {
991+ Config : map [string ]any {
992992 "path" : "./application_yaml-sink[yaml].out" ,
993993 "format" : "yaml" ,
994994 "overwrite" : true ,
@@ -1081,22 +1081,22 @@ func TestValidate(t *testing.T) {
10811081 Name : "sample" ,
10821082 Source : recipe.PluginRecipe {
10831083 Name : "test-extractor" ,
1084- Config : map [string ]interface {} {
1084+ Config : map [string ]any {
10851085 "proc-foo" : "proc-bar" ,
10861086 },
10871087 },
10881088 Processors : []recipe.PluginRecipe {
10891089 {
10901090 Name : "test-processor" ,
1091- Config : map [string ]interface {} {
1091+ Config : map [string ]any {
10921092 "proc-foo" : "proc-bar" ,
10931093 },
10941094 },
10951095 },
10961096 Sinks : []recipe.PluginRecipe {
10971097 {
10981098 Name : "test-sink" ,
1099- Config : map [string ]interface {} {
1099+ Config : map [string ]any {
11001100 "url" : "http://localhost:3000/data" ,
11011101 },
11021102 },
0 commit comments