Skip to content

Commit

Permalink
Fixes #23545: Parameter name in metadata.xml should be its uppercased id
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Oct 9, 2023
1 parent dc23c6c commit c591f30
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion policies/rudderc/src/backends/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl From<Parameter> for Input {
};

Self {
name: p.id.to_string(),
name: p.id.to_string().to_uppercase(),
description: p.name,
long_description: p.description,
constraint: Constraint {
Expand Down
2 changes: 1 addition & 1 deletion policies/rudderc/tests/cases/general/escaping/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<SECTIONS>
<SECTION name="Technique parameters">
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27e</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27E</NAME>
<DESCRIPTION>server</DESCRIPTION>
<LONGDESCRIPTION>${sys.host} . | / ${sys.${host}} &apos; &apos;&apos; &apos;&apos;&apos; $ $$ &quot; &quot;&quot; \ \\😋aà3</LONGDESCRIPTION>
<CONSTRAINT>
Expand Down
26 changes: 13 additions & 13 deletions policies/rudderc/tests/cases/general/form/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
<SECTIONS>
<SECTION name="Technique parameters">
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27a</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27A</NAME>
<DESCRIPTION>server_a</DESCRIPTION>
<LONGDESCRIPTION>description</LONGDESCRIPTION>
<CONSTRAINT>
<TYPE>textarea</TYPE>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27b</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27B</NAME>
<DESCRIPTION>server_b</DESCRIPTION>
<LONGDESCRIPTION>The server hostname</LONGDESCRIPTION>
<CONSTRAINT>
Expand All @@ -61,80 +61,80 @@
</CONSTRAINT>
</SELECT1>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27d</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27D</NAME>
<DESCRIPTION>server_d</DESCRIPTION>
<CONSTRAINT>
<TYPE>mail</TYPE>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27e</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27E</NAME>
<DESCRIPTION>server_e</DESCRIPTION>
<CONSTRAINT>
<TYPE>boolean</TYPE>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27f</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27F</NAME>
<DESCRIPTION>server_f</DESCRIPTION>
<CONSTRAINT>
<TYPE>password</TYPE>
<PASSWORDHASH>pre-hashed,unix-crypt-des,linux-shadow-sha512</PASSWORDHASH>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27g</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27G</NAME>
<DESCRIPTION>server_g</DESCRIPTION>
<CONSTRAINT>
<TYPE>password</TYPE>
<PASSWORDHASH>pre-hashed,linux-shadow-sha256,linux-shadow-sha512,aix-ssha256,aix-ssha512</PASSWORDHASH>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27h</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27H</NAME>
<DESCRIPTION>server_h</DESCRIPTION>
<CONSTRAINT>
<TYPE>perm</TYPE>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27i</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27I</NAME>
<DESCRIPTION>server_i</DESCRIPTION>
<CONSTRAINT>
<TYPE>size-gb</TYPE>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27j</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27J</NAME>
<DESCRIPTION>server_j</DESCRIPTION>
<CONSTRAINT>
<TYPE>textarea</TYPE>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27k</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27K</NAME>
<DESCRIPTION>server_k</DESCRIPTION>
<CONSTRAINT>
<TYPE>ipv6</TYPE>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27l</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27L</NAME>
<DESCRIPTION>server_l</DESCRIPTION>
<CONSTRAINT>
<TYPE>textarea</TYPE>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27m</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27M</NAME>
<DESCRIPTION>server_m</DESCRIPTION>
<CONSTRAINT>
<TYPE>integer</TYPE>
<DEFAULT>42</DEFAULT>
</CONSTRAINT>
</INPUT>
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27n</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27N</NAME>
<DESCRIPTION>server_n</DESCRIPTION>
<CONSTRAINT>
<TYPE>textarea</TYPE>
Expand Down
2 changes: 1 addition & 1 deletion policies/rudderc/tests/cases/general/ntp/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<SECTIONS>
<SECTION name="Technique parameters">
<INPUT>
<NAME>3439bbb0-d8f1-4c43-95a9-0c56bfb8c27e</NAME>
<NAME>3439BBB0-D8F1-4C43-95A9-0C56BFB8C27E</NAME>
<DESCRIPTION>server</DESCRIPTION>
<LONGDESCRIPTION>The server hostname</LONGDESCRIPTION>
<CONSTRAINT>
Expand Down

0 comments on commit c591f30

Please sign in to comment.