From 66d05ce9ca996721304b21084f90c336a93e04dd Mon Sep 17 00:00:00 2001 From: Maxwell Brown Date: Thu, 2 Jan 2025 14:46:22 -0800 Subject: [PATCH] project name -> key for now Signed-off-by: Maxwell Brown --- .../plugins/source/jira/configuration/ProjectConfig.java | 2 +- .../dataprepper/plugins/source/jira/JiraServiceTest.java | 2 +- .../dataprepper/plugins/source/jira/JiraSourceConfigTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data-prepper-plugins/saas-source-plugins/jira-source/src/main/java/org/opensearch/dataprepper/plugins/source/jira/configuration/ProjectConfig.java b/data-prepper-plugins/saas-source-plugins/jira-source/src/main/java/org/opensearch/dataprepper/plugins/source/jira/configuration/ProjectConfig.java index be50869074..2e3e63caf0 100644 --- a/data-prepper-plugins/saas-source-plugins/jira-source/src/main/java/org/opensearch/dataprepper/plugins/source/jira/configuration/ProjectConfig.java +++ b/data-prepper-plugins/saas-source-plugins/jira-source/src/main/java/org/opensearch/dataprepper/plugins/source/jira/configuration/ProjectConfig.java @@ -5,6 +5,6 @@ @Getter public class ProjectConfig { - @JsonProperty("name") + @JsonProperty("key") private NameConfig nameConfig; } diff --git a/data-prepper-plugins/saas-source-plugins/jira-source/src/test/java/org/opensearch/dataprepper/plugins/source/jira/JiraServiceTest.java b/data-prepper-plugins/saas-source-plugins/jira-source/src/test/java/org/opensearch/dataprepper/plugins/source/jira/JiraServiceTest.java index 1be5772ea4..6993cde80f 100644 --- a/data-prepper-plugins/saas-source-plugins/jira-source/src/test/java/org/opensearch/dataprepper/plugins/source/jira/JiraServiceTest.java +++ b/data-prepper-plugins/saas-source-plugins/jira-source/src/test/java/org/opensearch/dataprepper/plugins/source/jira/JiraServiceTest.java @@ -119,7 +119,7 @@ public static JiraSourceConfig createJiraConfiguration(String auth_type, Map nameMap = new HashMap<>(); nameMap.put("include", projectKey); - projectMap.put("name", nameMap); + projectMap.put("key", nameMap); filterMap.put("project", projectMap); diff --git a/data-prepper-plugins/saas-source-plugins/jira-source/src/test/java/org/opensearch/dataprepper/plugins/source/jira/JiraSourceConfigTest.java b/data-prepper-plugins/saas-source-plugins/jira-source/src/test/java/org/opensearch/dataprepper/plugins/source/jira/JiraSourceConfigTest.java index 962662584e..2ff45cbb90 100644 --- a/data-prepper-plugins/saas-source-plugins/jira-source/src/test/java/org/opensearch/dataprepper/plugins/source/jira/JiraSourceConfigTest.java +++ b/data-prepper-plugins/saas-source-plugins/jira-source/src/test/java/org/opensearch/dataprepper/plugins/source/jira/JiraSourceConfigTest.java @@ -80,7 +80,7 @@ private JiraSourceConfig createJiraSourceConfig(String authtype, boolean hasToke Map nameMap = new HashMap<>(); nameMap.put("include", projectList); - projectMap.put("name", nameMap); + projectMap.put("key", nameMap); filterMap.put("project", projectMap); configMap.put("filter", filterMap);