From 6ad872b5476b559eaeda8119a1b6cbc0ea6cdae0 Mon Sep 17 00:00:00 2001 From: Paulin Todev Date: Tue, 11 Jun 2024 16:10:32 +0100 Subject: [PATCH] Fix converter tests --- .../testdata-v2/integrations_v2.alloy | 14 +++++++------- .../staticconvert/testdata-v2/integrations_v2.yaml | 1 + .../staticconvert/testdata/integrations.alloy | 13 +++++++------ .../staticconvert/testdata/integrations.yaml | 1 + 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/internal/converter/internal/staticconvert/testdata-v2/integrations_v2.alloy b/internal/converter/internal/staticconvert/testdata-v2/integrations_v2.alloy index 8a5f5a9ad6..af629c5bb4 100644 --- a/internal/converter/internal/staticconvert/testdata-v2/integrations_v2.alloy +++ b/internal/converter/internal/staticconvert/testdata-v2/integrations_v2.alloy @@ -715,15 +715,15 @@ prometheus.exporter.snmp "integrations_snmp" { auth = "public", module = "if_mib", name = "network_switch.1", + snmp_context = "dummyContext", walk_params = "public", - snmp_context = "dummyContext" - }, { - address = "192.168.1.3", - auth = "private", - module = "mikrotik", - name = "network_router_2", - walk_params = "private", + address = "192.168.1.3", + auth = "private", + module = "mikrotik", + name = "network_router_2", + snmp_context = "dummyContext", + walk_params = "private", }] } diff --git a/internal/converter/internal/staticconvert/testdata-v2/integrations_v2.yaml b/internal/converter/internal/staticconvert/testdata-v2/integrations_v2.yaml index 4b23ce7b05..11131ab7a5 100644 --- a/internal/converter/internal/staticconvert/testdata-v2/integrations_v2.yaml +++ b/internal/converter/internal/staticconvert/testdata-v2/integrations_v2.yaml @@ -215,6 +215,7 @@ integrations: module: mikrotik walk_params: private auth: private + snmp_context: dummyContext snowflake_configs: - account_name: XXXXXXX-YYYYYYY username: snowflake-user diff --git a/internal/converter/internal/staticconvert/testdata/integrations.alloy b/internal/converter/internal/staticconvert/testdata/integrations.alloy index de24e6be9b..ef8f28a074 100644 --- a/internal/converter/internal/staticconvert/testdata/integrations.alloy +++ b/internal/converter/internal/staticconvert/testdata/integrations.alloy @@ -94,14 +94,15 @@ prometheus.exporter.snmp "integrations_snmp" { auth = "public", module = "if_mib", name = "network_switch.1", + snmp_context = "dummyContext", walk_params = "public", - snmp_context = "dummyContext" }, { - address = "192.168.1.3", - auth = "private", - module = "mikrotik", - name = "network_router_2", - walk_params = "private", + address = "192.168.1.3", + auth = "private", + module = "mikrotik", + name = "network_router_2", + snmp_context = "dummyContext", + walk_params = "private", }] } diff --git a/internal/converter/internal/staticconvert/testdata/integrations.yaml b/internal/converter/internal/staticconvert/testdata/integrations.yaml index bfeffcec89..d9a2170eaa 100644 --- a/internal/converter/internal/staticconvert/testdata/integrations.yaml +++ b/internal/converter/internal/staticconvert/testdata/integrations.yaml @@ -182,6 +182,7 @@ integrations: module: mikrotik walk_params: private auth: private + snmp_context: dummyContext snowflake: enabled: true account_name: XXXXXXX-YYYYYYY