summaryrefslogtreecommitdiff
path: root/modules/telegraf/testing.py
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@ut.ee>2025-05-15 00:22:14 +0300
committerRasmus Luha <rasmus.luha@ut.ee>2025-05-15 00:22:14 +0300
commit6b647a41a1eb508710de1bc583fd7d404078c744 (patch)
tree255e2dcbda472719374a495a29ca921df8910253 /modules/telegraf/testing.py
parent0f275b1bf3e24f7fb62e0cf8e2abe5eb8c45d929 (diff)
cleanup
Diffstat (limited to 'modules/telegraf/testing.py')
-rw-r--r--modules/telegraf/testing.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/modules/telegraf/testing.py b/modules/telegraf/testing.py
deleted file mode 100644
index d049bbf..0000000
--- a/modules/telegraf/testing.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import toml
-
-def modify_input(template, new_pipeline_path, key, value):
- data = toml.load(template)
- pluggin = data["inputs"]["http"][0]
-
- if key in pluggin:
-
- print(f"Before: {key} = {http_input[key]}")
- http_input[key] = value
- print(f"After: {key} = {http_input[key]}")
-
-
- with open(new_pipeline_path, "w") as f:
- toml.dump(data, f)
-
-modify_input("templates/basic_ETL.toml", "test_pipers.toml, "urls", ["stillTesting"])