From c591f30385b0c31ce31cceb1bedd88c91e198c30 Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Mon, 9 Oct 2023 11:57:03 +0200 Subject: [PATCH] Fixes #23545: Parameter name in metadata.xml should be its uppercased id --- policies/rudderc/src/backends/metadata.rs | 2 +- .../tests/cases/general/escaping/metadata.xml | 2 +- .../tests/cases/general/form/metadata.xml | 26 +++++++++---------- .../tests/cases/general/ntp/metadata.xml | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/policies/rudderc/src/backends/metadata.rs b/policies/rudderc/src/backends/metadata.rs index 1f6c26dd8a9..b8e0bf30e5f 100644 --- a/policies/rudderc/src/backends/metadata.rs +++ b/policies/rudderc/src/backends/metadata.rs @@ -95,7 +95,7 @@ impl From for Input { }; Self { - name: p.id.to_string(), + name: p.id.to_string().to_uppercase(), description: p.name, long_description: p.description, constraint: Constraint { diff --git a/policies/rudderc/tests/cases/general/escaping/metadata.xml b/policies/rudderc/tests/cases/general/escaping/metadata.xml index ecfdd85926e..f3aaf4c4d53 100644 --- a/policies/rudderc/tests/cases/general/escaping/metadata.xml +++ b/policies/rudderc/tests/cases/general/escaping/metadata.xml @@ -26,7 +26,7 @@
- 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27e + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27E server ${sys.host} . | / ${sys.${host}} ' '' ''' $ $$ " "" \ \\😋aà3 diff --git a/policies/rudderc/tests/cases/general/form/metadata.xml b/policies/rudderc/tests/cases/general/form/metadata.xml index 50e5a9a3bfa..25dee4bddd4 100644 --- a/policies/rudderc/tests/cases/general/form/metadata.xml +++ b/policies/rudderc/tests/cases/general/form/metadata.xml @@ -26,7 +26,7 @@
- 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27a + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27A server_a description @@ -34,7 +34,7 @@ - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27b + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27B server_b The server hostname @@ -61,21 +61,21 @@ - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27d + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27D server_d mail - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27e + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27E server_e boolean - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27f + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27F server_f password @@ -83,7 +83,7 @@ - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27g + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27G server_g password @@ -91,42 +91,42 @@ - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27h + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27H server_h perm - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27i + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27I server_i size-gb - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27j + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27J server_j textarea - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27k + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27K server_k ipv6 - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27l + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27L server_l textarea - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27m + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27M server_m integer @@ -134,7 +134,7 @@ - 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27n + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27N server_n textarea diff --git a/policies/rudderc/tests/cases/general/ntp/metadata.xml b/policies/rudderc/tests/cases/general/ntp/metadata.xml index f2578110030..b46195ebd10 100644 --- a/policies/rudderc/tests/cases/general/ntp/metadata.xml +++ b/policies/rudderc/tests/cases/general/ntp/metadata.xml @@ -35,7 +35,7 @@
- 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27e + 3439BBB0-D8F1-4C43-95A9-0C56BFB8C27E server The server hostname