Compare commits

..

1 Commits

Author SHA1 Message Date
p4u1 585d71daff fix: correct append service name logic in Filters function
continuous-integration/drone/pr Build is passing Details
This fixes a regression introduced by #395
2023-12-21 14:18:37 +01:00
1 changed files with 8 additions and 8 deletions

View File

@ -120,7 +120,7 @@ func TestFilters(t *testing.T) {
app, err := config.NewApp(config.AppEnv{
"DOMAIN": "test.example.com",
"RECIPE": "test-recipe",
}, "filtertest", config.AppFile{
}, "test_example_com", config.AppFile{
Path: "./testdir/filtertest.end",
Server: "local",
})
@ -134,7 +134,7 @@ func TestFilters(t *testing.T) {
}
compareFilter(t, f, map[string]map[string]bool{
"name": {
"filtertest": true,
"test_example_com": true,
},
})
@ -144,7 +144,7 @@ func TestFilters(t *testing.T) {
}
compareFilter(t, f2, map[string]map[string]bool{
"name": {
"^filtertest": true,
"^test_example_com": true,
},
})
@ -154,8 +154,8 @@ func TestFilters(t *testing.T) {
}
compareFilter(t, f3, map[string]map[string]bool{
"name": {
"filtertest_bar": true,
"filtertest_foo": true,
"test_example_com_bar": true,
"test_example_com_foo": true,
},
})
@ -165,8 +165,8 @@ func TestFilters(t *testing.T) {
}
compareFilter(t, f4, map[string]map[string]bool{
"name": {
"^filtertest_bar": true,
"^filtertest_foo": true,
"^test_example_com_bar": true,
"^test_example_com_foo": true,
},
})
@ -176,7 +176,7 @@ func TestFilters(t *testing.T) {
}
compareFilter(t, f5, map[string]map[string]bool{
"name": {
"filtertest_foo": true,
"test_example_com_foo": true,
},
})
}