fn: agent call overrider (#1080)

Similar to LB Agent call overrider, this PR adds Agent overrider
for Agents to modify/analyze a Call/Extensions during GetCall().
This commit is contained in:
Tolga Ceylan
2018-06-20 16:21:09 -07:00
committed by GitHub
parent 77f243bfaf
commit 881a0ba1db
5 changed files with 63 additions and 11 deletions

View File

@@ -110,6 +110,12 @@ func TestCanExecuteFunction(t *testing.T) {
if err != nil || cheese != "Tete de Moine" {
t.Fatalf("getConfigContent/FN_CHEESE check failed (%v) on %v", err, output)
}
// Now let's check FN_WINE, since runners have override to insert this.
wine, err := getConfigContent("FN_WINE", output.Bytes())
if err != nil || wine != "1982 Margaux" {
t.Fatalf("getConfigContent/FN_WINE check failed (%v) on %v", err, output)
}
}
func TestCanExecuteBigOutput(t *testing.T) {