[ 
https://issues.apache.org/jira/browse/KNOX-3002?focusedWorklogId=902262&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-902262
 ]

ASF GitHub Bot logged work on KNOX-3002:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Jan/24 10:39
            Start Date: 29/Jan/24 10:39
    Worklog Time Spent: 10m 
      Work Description: zeroflag commented on code in PR #835:
URL: https://github.com/apache/knox/pull/835#discussion_r1469398237


##########
gateway-server/src/test/java/org/apache/knox/gateway/util/DescriptorGeneratorTest.java:
##########
@@ -0,0 +1,55 @@
+package org.apache.knox.gateway.util;
+
+import static org.junit.Assert.assertEquals;
+
+import java.io.File;
+import java.nio.charset.Charset;
+import java.util.Arrays;
+import java.util.List;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
+import org.apache.knox.gateway.model.DescriptorConfiguration;
+import org.apache.knox.gateway.model.Topology;
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.rules.TemporaryFolder;
+
+public class DescriptorGeneratorTest {
+  private static final ObjectMapper mapper = new ObjectMapper();
+  private static final String TEST_DESC_1 = "test_desc1.json";
+  private static final String TEST_PROV_1 = "test_prov1.json";
+  private static final String IMPALA_UI = "IMPALAUI";
+  private static final List<String> URLS =
+          Arrays.asList("http://amagyar-1.test.site:25000/";, 
"http://amagyar-2.test.site:25000";);
+  @Rule
+  public TemporaryFolder folder= new TemporaryFolder();

Review Comment:
   This is not for creating an input file, but for the resulting output file. 
The generrated descriptor will be placed into this temp folder (and junit will 
clean it automatically).





Issue Time Tracking
-------------------

    Worklog Id:     (was: 902262)
    Time Spent: 50m  (was: 40m)

> KnoxCLI command for generating descriptor for a role type from a list of hosts
> ------------------------------------------------------------------------------
>
>                 Key: KNOX-3002
>                 URL: https://issues.apache.org/jira/browse/KNOX-3002
>             Project: Apache Knox
>          Issue Type: New Feature
>          Components: KnoxCLI
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to