From f7d50d22531eab220784402c213a4b90ec5b8d1e Mon Sep 17 00:00:00 2001 From: Mark Bonsack Date: Thu, 26 Mar 2020 22:16:54 -0700 Subject: [PATCH] Simplify test and templatize filter * Simplify test (from IOS copy/paste) * Add `tmpl` extension to filter file for gomplate --- package/etc/conf.d/filters/f5/{bigip.conf => bigip.conf.tmpl} | 0 tests/test_f5_bigip.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename package/etc/conf.d/filters/f5/{bigip.conf => bigip.conf.tmpl} (100%) diff --git a/package/etc/conf.d/filters/f5/bigip.conf b/package/etc/conf.d/filters/f5/bigip.conf.tmpl similarity index 100% rename from package/etc/conf.d/filters/f5/bigip.conf rename to package/etc/conf.d/filters/f5/bigip.conf.tmpl diff --git a/tests/test_f5_bigip.py b/tests/test_f5_bigip.py index e7bf36f..ad38d69 100644 --- a/tests/test_f5_bigip.py +++ b/tests/test_f5_bigip.py @@ -105,10 +105,10 @@ def test_f5_bigip_irule(record_property, setup_wordlist, get_host_key, setup_spl iso, bsd, time, date, tzoffset, tzname, epoch = time_operations(dt) # Tune time functions - epoch = epoch[:-7] + epoch = epoch[:-3] mt = env.from_string(event + "\n") - message = mt.render(mark="<166>", bsd=bsd, host=host) + message = mt.render(mark="<166>", iso=iso, host=host) sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])