Onap to Oclip text migration 71/24371/6
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Fri, 6 Oct 2017 17:56:20 +0000 (23:26 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Mon, 20 Nov 2017 07:12:00 +0000 (12:42 +0530)
Issue-Id: CLI-66

Change-Id: I58e98952c61902e34585e9defabc36d1233a99a4
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
52 files changed:
deployment/zip/installer/install.sh
framework/src/main/java/org/onap/cli/fw/OnapCommand.java
framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java
framework/src/main/java/org/onap/cli/fw/OnapCommandSchema.java
framework/src/main/java/org/onap/cli/fw/ad/OnapAuthClient.java
framework/src/main/java/org/onap/cli/fw/ad/OnapService.java
framework/src/main/java/org/onap/cli/fw/cmd/CommandType.java
framework/src/main/java/org/onap/cli/fw/cmd/OnapHttpCommand.java
framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfg.java
framework/src/main/java/org/onap/cli/fw/error/OnapCommandRegistrationFailed.java
framework/src/main/java/org/onap/cli/fw/error/OnapCommandRegistrationProductInfoMissing.java
framework/src/main/java/org/onap/cli/fw/info/OnapCommandInfo.java
framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java
framework/src/main/java/org/onap/cli/fw/input/ParameterType.java
framework/src/main/java/org/onap/cli/fw/output/OnapCommandResult.java
framework/src/main/java/org/onap/cli/fw/output/OnapCommandResultAttribute.java
framework/src/main/java/org/onap/cli/fw/output/OnapCommandResultAttributeScope.java
framework/src/main/java/org/onap/cli/fw/output/ResultType.java
framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
framework/src/main/java/org/onap/cli/fw/run/OnapCommandExecutor.java
framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java
framework/src/main/resources/open-cli-schema/schema-refresh.yaml
framework/src/main/resources/open-cli-schema/schema-validate.yaml
framework/src/test/java/org/onap/cli/fw/OnapCommandRegistrarTest.java
framework/src/test/java/org/onap/cli/fw/cmd/OnapSchemaRefreshCommandTest.java
framework/src/test/java/org/onap/cli/fw/error/OnapCommandErrorTest.java
framework/src/test/java/org/onap/cli/fw/input/OnapCommandParameterTest.java
framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultAttributeScopeTest.java
framework/src/test/java/org/onap/cli/fw/schema/ValidateSchemaTest.java
framework/src/test/java/org/onap/cli/fw/utils/OnapCommandUtilsTest.java
framework/src/test/resources/onap-test-schema.yaml
framework/src/test/resources/open-cli-schema/sample-test-schema.yaml
framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml
framework/src/test/resources/sample-cmd-test-help.txt
framework/src/test/resources/sample-test-info.yaml
framework/src/test/resources/sample-test-invalid-schema-duplicate-longoption.yaml
framework/src/test/resources/sample-test-invalid-schema-duplicate-name.yaml
framework/src/test/resources/sample-test-invalid-schema-duplicate-shortoption.yaml
framework/src/test/resources/sample-test-invalid-schema.yaml
framework/src/test/resources/sample-test-schema-auth-required.yaml
framework/src/test/resources/sample-test-schema-http.yaml
framework/src/test/resources/sample-test-schema-swagger.yaml
framework/src/test/resources/schema-validate-basic.yaml
framework/src/test/resources/schema-validate-http.yaml
framework/src/test/resources/schema-validate-invalid.yaml
framework/src/test/resources/schema-validate-invalidschematype.yaml
framework/src/test/resources/schema-validate-pass.yaml
main/src/main/java/org/onap/cli/main/OnapCli.java
main/src/main/java/org/onap/cli/main/utils/OnapCliUtils.java
main/src/main/resources/onap-readme.txt
main/src/test/resources/open-cli-schema/sample-create-schema.yaml
main/src/test/resources/sample-test-schema.yaml

index f98198f..71488da 100644 (file)
@@ -49,7 +49,7 @@ if [ ! -d ./data ]; then mkdir ./data; fi
 if [ ! -d ./open-cli-schema ]; then mkdir ./open-cli-schema; fi
 chmod +x ./bin/oclip.sh
 
-#Make onap available in path
+#Make oclip available in path
 ln ./bin/oclip.sh $CLI_BIN
 
 #Print the version
index bc9effb..89c6220 100644 (file)
@@ -47,7 +47,7 @@ import org.onap.cli.fw.output.ResultType;
 import org.onap.cli.fw.utils.OnapCommandUtils;
 
 /**
- * Onap Command.
+ * Oclip Command.
  *
  */
 public abstract class OnapCommand {
@@ -71,7 +71,7 @@ public abstract class OnapCommand {
     }
 
     /**
-     * Onap command description, defined by derived command.
+     * Oclip command description, defined by derived command.
      */
     public String getDescription() {
         return this.cmdDescription;
@@ -82,7 +82,7 @@ public abstract class OnapCommand {
     }
 
     /*
-     * Onap command name like user-create, ns-list, etc , defined by derived command
+     * Oclip command name like user-create, ns-list, etc , defined by derived command
      */
     public String getName() {
         return this.cmdName;
@@ -105,21 +105,21 @@ public abstract class OnapCommand {
     }
 
     /*
-     * Onap command input parameters, defined by derived command
+     * Oclip command input parameters, defined by derived command
      */
     public List<OnapCommandParameter> getParameters() {
         return this.cmdParameters;
     }
 
     /*
-     * Onap command input parameters, defined by derived command
+     * Oclip command input parameters, defined by derived command
      */
     public Map<String, OnapCommandParameter> getParametersMap() {
         return OnapCommandUtils.getInputMap(this.getParameters());
     }
 
     /*
-     * Onap command output results, defined by derived command
+     * Oclip command output results, defined by derived command
      */
     public OnapCommandResult getResult() {
         return this.cmdResult;
@@ -184,7 +184,7 @@ public abstract class OnapCommand {
     }
 
     /**
-     * Onap command execute with given parameters on service. Before calling this method, its mandatory to set all
+     * Oclip command execute with given parameters on service. Before calling this method, its mandatory to set all
      * parameters value.
      *
      * @throws OnapCommandException
index 1a0514e..dcd9a50 100644 (file)
@@ -46,7 +46,7 @@ import org.onap.cli.fw.utils.SchemaInfo;
 
 
 /**
- * Onap Command registrar provides a common place, where every command would get registered automatically when its
+ * Oclip Command registrar provides a common place, where every command would get registered automatically when its
  * loaded into JVM.
  *
  */
@@ -258,7 +258,7 @@ public class OnapCommandRegistrar {
     }
 
     /**
-     * Helps to find the Onap CLI version, could be used with --version or -v option.
+     * Helps to find the Oclip CLI version, could be used with --version or -v option.
      *
      * @return string
      */
index 47a8495..d7254fb 100644 (file)
@@ -24,7 +24,7 @@ import org.onap.cli.fw.cmd.CommandType;
 
 /**
  * Provide command name and schema file location, which is placed in the main resources folder (in classpath). It is
- * recommended to keep the name for schema, in the form of onap-[command-name]-schema.yaml, considered this format as
+ * recommended to keep the name for schema, in the form of oclip-[command-name]-schema.yaml, considered this format as
  * default if the schema declaration is missing for a command abc-create, schema file name could be
  * abc-create-schema.yaml, corresponding command would like as below
  *
index 362360a..471b7ea 100644 (file)
@@ -35,7 +35,7 @@ import org.onap.cli.fw.output.OnapCommandResultAttribute;
 import org.onap.cli.fw.utils.OnapCommandUtils;
 
 /**
- * Onap Auth client helps to do login and logout.
+ * Oclip Auth client helps to do login and logout.
  *
  */
 public class OnapAuthClient {
index 7462bb1..a16c443 100644 (file)
@@ -19,16 +19,16 @@ package org.onap.cli.fw.ad;
 import org.onap.cli.fw.conf.Constants;
 
 /**
- * Onap Service as reported in api catalog.
+ * Oclip Service as reported in api catalog.
  */
 public class OnapService {
     /*
-     * Onap Service name like aai.
+     * Oclip Service name like aai.
      */
     private String serviceName;
 
     /*
-     * Onap Service API version like v1, v2, etc
+     * Oclip Service API version like v1, v2, etc
      */
     private String serviceVersion;
 
index 633a8f3..baaf7e1 100644 (file)
@@ -20,7 +20,7 @@ import org.onap.cli.fw.error.OnapCommandInvalidCommandType;
 import org.onap.cli.fw.error.OnapCommandInvalidParameterType;
 
 /**
- * Command type supported by Onap CLI.
+ * Command type supported by Oclip CLI.
  *
  */
 public enum CommandType {
index 860adce..198affb 100644 (file)
@@ -40,7 +40,7 @@ import org.onap.cli.http.mock.MockRequest;
 import org.onap.cli.http.mock.MockResponse;
 
 /**
- * Onap Command.
+ * Oclip Command.
  *
  */
 public class OnapHttpCommand extends OnapCommand {
@@ -53,7 +53,7 @@ public class OnapHttpCommand extends OnapCommand {
 
     protected OnapAuthClient authClient;
 
-    private OnapService onapService = new OnapService();
+    private OnapService oclipService = new OnapService();
 
     public void setInput(HttpInput input) {
         this.input = input;
@@ -85,14 +85,14 @@ public class OnapHttpCommand extends OnapCommand {
     }
 
     /*
-     * Onap service, this command uses to execute it.
+     * Oclip service, this command uses to execute it.
      */
     public OnapService getService() {
-        return this.onapService;
+        return this.oclipService;
     }
 
     public void setService(OnapService service) {
-        this.onapService = service;
+        this.oclipService = service;
     }
 
     @Override
index 6092935..bc01a76 100644 (file)
@@ -27,7 +27,7 @@ import java.util.UUID;
 import java.util.stream.Collectors;
 
 /**
- * Onap command constants.
+ * Oclip command constants.
  *
  */
 public final class OnapCommandConfg {
index a353c4c..fa826d5 100644 (file)
@@ -17,7 +17,7 @@
 package org.onap.cli.fw.error;
 
 /**
- * Command Not registered in Onap Command Registrar.
+ * Command Not registered in Oclip Command Registrar.
  *
  */
 public class OnapCommandRegistrationFailed extends OnapCommandException {
index 7584fec..c3d9e62 100644 (file)
@@ -17,7 +17,7 @@
 package org.onap.cli.fw.error;
 
 /**
- * Command Not registered in Onap Command Registrar as version missing.
+ * Command Not registered in Oclip Command Registrar as version missing.
  *
  */
 public class OnapCommandRegistrationProductInfoMissing extends OnapCommandException {
index b127ad3..f3f3bfe 100644 (file)
@@ -19,7 +19,7 @@ package org.onap.cli.fw.info;
 import org.onap.cli.fw.cmd.CommandType;
 
 /**
- * Onap Command info like product version, service, contact, etc.
+ * Oclip Command info like product version, service, contact, etc.
  */
 public class OnapCommandInfo {
 
index 09071f1..05b5fa2 100644 (file)
@@ -30,7 +30,7 @@ import java.util.Map;
 import java.util.UUID;
 
 /**
- * Onap Command's input parameter.
+ * Oclip Command's input parameter.
  *
  */
 public class OnapCommandParameter {
index 791d7e4..6a9254f 100644 (file)
@@ -19,7 +19,7 @@ package org.onap.cli.fw.input;
 import org.onap.cli.fw.error.OnapCommandInvalidParameterType;
 
 /**
- * Parameter type supported by Onap CLI.
+ * Parameter type supported by Oclip CLI.
  *
  */
 public enum ParameterType {
index 5dd761c..678bcfc 100644 (file)
@@ -30,13 +30,13 @@ import java.util.List;
 import java.util.Map;
 
 /**
- * Onap Command result holds the final output of the command.
+ * Oclip Command result holds the final output of the command.
  *
  */
 public class OnapCommandResult {
 
     /*
-     * if type=JSON, then JSON response of the command from back-end Onap service, by default all the command would
+     * if type=JSON, then JSON response of the command from back-end Oclip service, by default all the command would
      * set this value once the back-end call returns, which would be useful to print the output in JSON format, returned
      * from the back-end service.
      *
index fcd6f1a..ba4d543 100644 (file)
@@ -23,7 +23,7 @@ import java.util.Arrays;
 import java.util.List;
 
 /**
- * Onap command output records, helps to define the title and its description while command is defined and during run
+ * Oclip command output records, helps to define the title and its description while command is defined and during run
  * time, it captures the value of the output as well.
  */
 public class OnapCommandResultAttribute {
index e03937d..0f63f23 100644 (file)
@@ -19,7 +19,7 @@ package org.onap.cli.fw.output;
 import org.onap.cli.fw.error.OnapCommandInvalidResultAttributeScope;
 
 /**
- * Onap command supports to print output with given set of defined attributes, and each attributes are marked with this
+ * Oclip command supports to print output with given set of defined attributes, and each attributes are marked with this
  * visibility.
  *
  */
index 3744944..49ddf45 100644 (file)
@@ -17,7 +17,7 @@
 package org.onap.cli.fw.output;
 
 /**
- * Onap command result format.
+ * Oclip command result format.
  *
  */
 public enum ResultType {
index 8b7a9b8..beb2330 100644 (file)
@@ -32,7 +32,7 @@ import java.util.Map;
 import java.util.StringTokenizer;
 
 /**
- * Onap Command Table print.
+ * Oclip Command Table print.
  *
  */
 public class OnapCommandPrint {
index abd04b0..a3ff7bc 100644 (file)
@@ -17,7 +17,7 @@
 package org.onap.cli.fw.run;
 
 /**
- * Onap Command executor.
+ * Oclip Command executor.
  *
  */
 public class OnapCommandExecutor {
index bcb404f..579c4af 100644 (file)
@@ -1204,7 +1204,7 @@ public class OnapCommandUtils {
     }
 
     /**
-     * Discover the Onap commands.
+     * Discover the Oclip commands.
      *
      * @return list
      */
index 136bc1c..349554b 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: schema-refresh
-description: Onap command to refresh schemas stored in open_cli_schema folders.
+description: Oclip command to refresh schemas stored in open_cli_schema folders.
 
 info:
   product: open-cli
index e5b22bb..65acfb0 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: schema-validate
-description: Onap command to validate schema
+description: Oclip command to validate schema
 
 info:
   product: open-cli
index 0374434..8a69ae6 100644 (file)
@@ -75,7 +75,7 @@ public class OnapCommandRegistrarTest {
     }
 
     @Test
-    public void onapCommandNotFoundTest() throws OnapCommandException {
+    public void oclipCommandNotFoundTest() throws OnapCommandException {
         try {
             registerar = OnapCommandRegistrar.getRegistrar();
             registerar.get("Test1");
@@ -88,7 +88,7 @@ public class OnapCommandRegistrarTest {
     }
 
     @Test
-    public void onapCommandRegistrationFailedTest() throws OnapCommandException {
+    public void oclipCommandRegistrationFailedTest() throws OnapCommandException {
 
         @OnapCommandSchema(schema = "sample-test-schema.yaml")
         class Test extends OnapCommand {
index b9345f7..7aedd42 100644 (file)
@@ -32,14 +32,14 @@ public class OnapSchemaRefreshCommandTest {
         cmd.initializeSchema("schema-refresh.yaml");
         cmd.execute();
 
-        List<OnapCommandResultAttribute> onapCommandResultAttribute = cmd.getResult()
+        List<OnapCommandResultAttribute> oclipCommandResultAttribute = cmd.getResult()
                 .getRecords();
 
-        String s1Number = onapCommandResultAttribute.get(0).getValues().get(0);
-        String cmdName = onapCommandResultAttribute.get(1).getValues().get(0);
-        String cmdVer = onapCommandResultAttribute.get(2).getValues().get(0);
-        String cmdFile = onapCommandResultAttribute.get(3).getValues().get(0);
-        String version = onapCommandResultAttribute.get(4).getValues().get(0);
+        String s1Number = oclipCommandResultAttribute.get(0).getValues().get(0);
+        String cmdName = oclipCommandResultAttribute.get(1).getValues().get(0);
+        String cmdVer = oclipCommandResultAttribute.get(2).getValues().get(0);
+        String cmdFile = oclipCommandResultAttribute.get(3).getValues().get(0);
+        String version = oclipCommandResultAttribute.get(4).getValues().get(0);
 
         assertTrue(s1Number.equalsIgnoreCase("1"));
     }
index f23fb0b..45560c4 100644 (file)
@@ -23,7 +23,7 @@ import org.junit.Test;
 public class OnapCommandErrorTest {
 
     @Test
-    public void onapCommandDiscoveryFailedTest() {
+    public void oclipCommandDiscoveryFailedTest() {
         OnapCommandDiscoveryFailed failed = new OnapCommandDiscoveryFailed("name");
         assertEquals("0x1001::Failed auto discover schema files from name under class path, ", failed.getMessage());
         failed = new OnapCommandDiscoveryFailed("directory", "name");
@@ -32,45 +32,45 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandInvalidParameterValueTest() {
+    public void oclipCommandInvalidParameterValueTest() {
         OnapCommandInvalidParameterValue failed = new OnapCommandInvalidParameterValue("name");
         assertEquals("0x7002::Parameter name value is invalid, ", failed.getMessage());
     }
 
     @Test
-    public void onapCommandResultMapProcessingFailedTest() {
+    public void oclipCommandResultMapProcessingFailedTest() {
         OnapCommandResultMapProcessingFailed failed = new OnapCommandResultMapProcessingFailed("name",
                 new Exception("failed"));
         assertEquals("0x3002::Failed to parse the result format of command name, failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandHttpHeaderNotFoundTest() {
+    public void oclipCommandHttpHeaderNotFoundTest() {
         OnapCommandHttpHeaderNotFound failed = new OnapCommandHttpHeaderNotFound("name");
         assertEquals("0x3003::Http header name is not returned from the service", failed.getMessage());
     }
 
     @Test
-    public void onapCommandClientInitialzationFailedTest() {
+    public void oclipCommandClientInitialzationFailedTest() {
         OnapCommandClientInitialzationFailed failed = new OnapCommandClientInitialzationFailed("Test",
                 new Exception("Test Command Failed"));
         assertEquals("0x5001::API client for the command Test is failed, Test Command Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandExceptionTest1() {
+    public void oclipCommandExceptionTest1() {
         OnapCommandException failed = new OnapCommandException("1", "Test Command Failed");
         assertEquals("1::Test Command Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandExceptionTest2() {
+    public void oclipCommandExceptionTest2() {
         OnapCommandException failed = new OnapCommandException("1", "Test Command Failed", 201);
         assertEquals("201::1::Test Command Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandExecutionFailedTest1() {
+    public void oclipCommandExecutionFailedTest1() {
         OnapCommandExecutionFailed failed = new OnapCommandExecutionFailed("Test", "Test Command Failed", 201);
         assertEquals("201::0x6001::Command Test failed to execute, Test Command Failed", failed.getMessage());
         failed = new OnapCommandExecutionFailed("Test", new Exception("Test Command Failed"), 201);
@@ -78,13 +78,13 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandExecutionFailedTest2() {
+    public void oclipCommandExecutionFailedTest2() {
         OnapCommandExecutionFailed failed = new OnapCommandExecutionFailed("Test Command Failed");
         assertEquals("0x6001::Test Command Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandExecutionFailedTest3() {
+    public void oclipCommandExecutionFailedTest3() {
         OnapCommandExecutionFailed failed = new OnapCommandExecutionFailed("Test", "Test Command Failed");
         assertEquals("0x6001::Command Test failed to execute, Test Command Failed", failed.getMessage());
 
@@ -93,21 +93,21 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandExecutorInfoMissingTest() {
+    public void oclipCommandExecutorInfoMissingTest() {
         OnapCommandExecutorInfoMissing failed = new OnapCommandExecutorInfoMissing("Test");
 
         assertEquals("0x6002::Command Test excutor info is missing from schema", failed.getMessage());
     }
 
     @Test
-    public void onapCommandHelpFailedTest() {
+    public void oclipCommandHelpFailedTest() {
         OnapCommandHelpFailed failed = new OnapCommandHelpFailed(new Exception("Failed"));
 
         assertEquals("0x9001::Command failed to print help message, Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandHttpFailureTest1() {
+    public void oclipCommandHttpFailureTest1() {
         OnapCommandHttpFailure failed = new OnapCommandHttpFailure("Failed");
         assertEquals("0x3001::Failed", failed.getMessage());
 
@@ -116,28 +116,28 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandHttpFailureTest2() {
+    public void oclipCommandHttpFailureTest2() {
         OnapCommandHttpFailure failed = new OnapCommandHttpFailure("Failed", 203);
 
         assertEquals("203::0x3001::Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandInvalidParameterTypeTest() {
+    public void oclipCommandInvalidParameterTypeTest() {
         OnapCommandInvalidParameterType failed = new OnapCommandInvalidParameterType("Failed");
 
         assertEquals("0x7001::Parameter type Failed is invalid", failed.getMessage());
     }
 
     @Test
-    public void onapCommandInvalidPrintDirectionTest() {
+    public void oclipCommandInvalidPrintDirectionTest() {
         OnapCommandInvalidPrintDirection failed = new OnapCommandInvalidPrintDirection("Direction");
 
         assertEquals("0x8003::Print direction Direction is invalid", failed.getMessage());
     }
 
     @Test
-    public void onapCommandInvalidRegistrationTest() {
+    public void oclipCommandInvalidRegistrationTest() {
         OnapCommandInvalidRegistration failed = new OnapCommandInvalidRegistration(OnapCommandErrorTest.class);
 
         assertEquals("0x2001::Invalid commad class org.onap.cli.fw.error.OnapCommandErrorTest registration, "
@@ -145,42 +145,42 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandInvalidResultAttributeScopeTest() {
+    public void oclipCommandInvalidResultAttributeScopeTest() {
         OnapCommandInvalidResultAttributeScope failed = new OnapCommandInvalidResultAttributeScope("Attribute");
 
         assertEquals("0x8002::Result atrribute Attribute is invalid", failed.getMessage());
     }
 
     @Test
-    public void onapCommandInvalidSchemaTest() {
+    public void oclipCommandInvalidSchemaTest() {
         OnapCommandInvalidSchema failed = new OnapCommandInvalidSchema("Schema", "Failed");
 
         assertEquals("0xb001::Invalid command schema Schema, Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandInvalidSchemaVersionTest() {
+    public void oclipCommandInvalidSchemaVersionTest() {
         OnapCommandInvalidSchemaVersion failed = new OnapCommandInvalidSchemaVersion("1.0");
 
         assertEquals("0xb003::Command schema open_cli_schema_version 1.0 is invalid or missing", failed.getMessage());
     }
 
     @Test
-    public void onapCommandLoginFailedTest1() {
+    public void oclipCommandLoginFailedTest1() {
         OnapCommandLoginFailed failed = new OnapCommandLoginFailed(new Exception("Failed"));
 
         assertEquals("0x4001::Login failed, Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandLoginFailedTest2() {
+    public void oclipCommandLoginFailedTest2() {
         OnapCommandLoginFailed failed = new OnapCommandLoginFailed("Failed", 201);
 
         assertEquals("201::0x4001::Login failed, Failed", failed.getMessage());
     }
 
     @Test
-    public void onapCommandLogoutFailedTest() {
+    public void oclipCommandLogoutFailedTest() {
         OnapCommandLogoutFailed failed = new OnapCommandLogoutFailed(new Exception("Failed"));
         assertEquals("0x4002::Logout failed, Failed", failed.getMessage());
 
@@ -189,42 +189,42 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandNotFoundTest() {
+    public void oclipCommandNotFoundTest() {
         OnapCommandNotFound failed = new OnapCommandNotFound("Test", "1.0");
 
         assertEquals("0x6003::Command Test is not available for product version 1.0", failed.getMessage());
     }
 
     @Test
-    public void onapCommandNotInitializedTest() {
+    public void oclipCommandNotInitializedTest() {
         OnapCommandNotInitialized failed = new OnapCommandNotInitialized("Test");
 
         assertEquals("0x6004::Command Test is not initialized", failed.getMessage());
     }
 
     @Test
-    public void onapCommandOutputPrintingFailedTest() {
+    public void oclipCommandOutputPrintingFailedTest() {
         OnapCommandOutputPrintingFailed failed = new OnapCommandOutputPrintingFailed(new Exception("error"));
 
         assertEquals("0x8006::Command is failed to print the result, error", failed.getMessage());
     }
 
     @Test
-    public void onapCommandParameterMissingTest() {
+    public void oclipCommandParameterMissingTest() {
         OnapCommandParameterMissing failed = new OnapCommandParameterMissing("paramName");
 
         assertEquals("0x7003::Parameter paramName is mandatory", failed.getMessage());
     }
 
     @Test
-    public void onapCommandParameterNameConflictTest() {
+    public void oclipCommandParameterNameConflictTest() {
         OnapCommandParameterNameConflict failed = new OnapCommandParameterNameConflict("paramName");
 
         assertEquals("0x7004::Parameter name paramName is in conflict", failed.getMessage());
     }
 
     @Test
-    public void onapCommandParameterOptionConflictTest() {
+    public void oclipCommandParameterOptionConflictTest() {
         OnapCommandParameterOptionConflict failed = new OnapCommandParameterOptionConflict("option");
 
         assertEquals("0x7006::Parameter option option is in conflict, only one option is allowed with given name",
@@ -232,14 +232,14 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandRegistrationFailedTest() {
+    public void oclipCommandRegistrationFailedTest() {
         OnapCommandRegistrationFailed failed = new OnapCommandRegistrationFailed("Test", "error");
 
         assertEquals("0x2002::Failed to register the command Test, error", failed.getMessage());
     }
 
     @Test
-    public void onapCommandResultInitialzationFailedTest() {
+    public void oclipCommandResultInitialzationFailedTest() {
         OnapCommandResultInitialzationFailed failed = new OnapCommandResultInitialzationFailed("Test",
                 new Exception("error"));
 
@@ -247,32 +247,21 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandSchemaNotFoundTest() {
+    public void oclipCommandSchemaNotFoundTest() {
         OnapCommandSchemaNotFound failed = new OnapCommandSchemaNotFound("Test");
 
         assertEquals("0xb002::Command schema is missing for command Test", failed.getMessage());
     }
 
     @Test
-    public void onapCommandSampleInvalidTest() {
-        OnapCommandInvalidSample failed = new OnapCommandInvalidSample("Test", "error");
-
-        assertEquals("0xf001::Invalid command sample Test, error", failed.getMessage());
-
-        failed = new OnapCommandInvalidSample("Test", new Exception("error"));
-
-        assertEquals("0xf001::Invalid command sample Test, error", failed.getMessage());
-    }
-
-    @Test
-    public void onapCommandServiceNotFoundTest() {
+    public void oclipCommandServiceNotFoundTest() {
         OnapCommandServiceNotFound failed = new OnapCommandServiceNotFound("Service");
 
         assertEquals("0xd001::Service Service is not found in MSB", failed.getMessage());
     }
 
     @Test
-    public void onapCommandOutputFormatNotsupportedTest() {
+    public void oclipCommandOutputFormatNotsupportedTest() {
         OnapCommandOutputFormatNotsupported failed = new OnapCommandOutputFormatNotsupported("Format");
 
         assertEquals("0x8005::Command  does not support the output format Format", failed.getMessage());
@@ -280,7 +269,7 @@ public class OnapCommandErrorTest {
 
 
     @Test
-    public void onapProfilePersistTest() {
+    public void oclipProfilePersistTest() {
         OnapCommandPersistProfileFailed failed = new OnapCommandPersistProfileFailed("error");
 
         assertEquals("0xc002::Failed to persist profile details, error", failed.getMessage());
@@ -292,7 +281,7 @@ public class OnapCommandErrorTest {
 
 
     @Test
-    public void onapProfileLoadTest() {
+    public void oclipProfileLoadTest() {
         OnapCommandLoadProfileFailed failed = new OnapCommandLoadProfileFailed("error");
 
         assertEquals("0xc001::Failed to load profile details, error", failed.getMessage());
@@ -303,7 +292,7 @@ public class OnapCommandErrorTest {
     }
 
     @Test
-    public void onapCommandTypeInvalidTest() {
+    public void oclipCommandTypeInvalidTest() {
         OnapCommandInvalidCommandType failed = new OnapCommandInvalidCommandType("test");
 
         assertEquals("0x3003::Command type test is invalid", failed.getMessage());
index 6137b9d..f2e9f0b 100644 (file)
@@ -91,7 +91,7 @@ public class OnapCommandParameterTest {
     }
 
     @Test(expected = OnapCommandInvalidParameterValue.class)
-    public void onapCommandInvalidParameterValueArrayExeceptionTest() throws OnapCommandInvalidParameterValue {
+    public void oclipCommandInvalidParameterValueArrayExeceptionTest() throws OnapCommandInvalidParameterValue {
         OnapCommandParameter param = new OnapCommandParameter();
         param.setName("name");
         param.setParameterType(ParameterType.ARRAY);
@@ -101,7 +101,7 @@ public class OnapCommandParameterTest {
     }
 
     @Test(expected = OnapCommandInvalidParameterValue.class)
-    public void onapCommandInvalidParameterValueMapExeceptionTest() throws OnapCommandInvalidParameterValue {
+    public void oclipCommandInvalidParameterValueMapExeceptionTest() throws OnapCommandInvalidParameterValue {
         OnapCommandParameter param = new OnapCommandParameter();
         param.setName("name");
         param.setParameterType(ParameterType.MAP);
@@ -110,7 +110,7 @@ public class OnapCommandParameterTest {
     }
 
     @Test(expected = OnapCommandInvalidParameterValue.class)
-    public void onapCommandInvalidParameterValueBinaryExeceptionTest() throws OnapCommandException {
+    public void oclipCommandInvalidParameterValueBinaryExeceptionTest() throws OnapCommandException {
         OnapCommandParameter param = new OnapCommandParameter();
         param.setName("name");
         param.setParameterType(ParameterType.BINARY);
index d74f83a..76d139a 100644 (file)
@@ -25,7 +25,7 @@ import java.util.Collections;
 
 public class OnapCommandResultAttributeScopeTest {
     @Test
-    public void onapCommandResultAttributeTest() {
+    public void oclipCommandResultAttributeTest() {
         OnapCommandResultAttribute att = new OnapCommandResultAttribute();
         att.setDescription("description");
         att.setName("name");
index 62a61d8..654b20c 100644 (file)
@@ -117,8 +117,8 @@ public class ValidateSchemaTest {
         };
         List<String> errorList4 = OnapCommandUtils.loadSchema(cmd2, "schema-validate-invalid.yaml", true, true);
 
-        OnapHttpCommand onapHttpCommand = new OnapHttpCommand();
-        errorList4.addAll(OnapCommandUtils.loadHttpSchema(onapHttpCommand,
+        OnapHttpCommand oclipHttpCommand = new OnapHttpCommand();
+        errorList4.addAll(OnapCommandUtils.loadHttpSchema(oclipHttpCommand,
                 "schema-validate-invalid.yaml", true, true));
         assertTrue(errorList4.size() > 0);
 
index db94a55..43883ce 100644 (file)
@@ -69,12 +69,12 @@ import mockit.MockUp;
 public class OnapCommandUtilsTest {
 
     @Test(expected = OnapCommandInvalidSchema.class)
-    public void onapCommandUtilsInputStreamNullTest() throws OnapCommandException {
+    public void oclipCommandUtilsInputStreamNullTest() throws OnapCommandException {
         OnapCommandUtils.validateSchemaVersion("sample-test1-schema-http1.yaml", "1.0");
     }
 
     @Test
-    public void onapCommandUtilsInputStreamNotNullTest() throws OnapCommandException {
+    public void oclipCommandUtilsInputStreamNotNullTest() throws OnapCommandException {
         Map<String, ?> map = OnapCommandUtils.validateSchemaVersion("sample-test1-schema-http.yaml", "1.0");
         assertTrue(map != null);
     }
index 9f1bf0e..496cb02 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 
 info:
   product: open-cli
@@ -11,14 +11,14 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
     default_value: false
   - name: secure-param
     type: string
-    description: Onap secure param such as password
+    description: Oclip secure param such as password
     short_option: x
     long_option: secure
     is_secured: true
@@ -26,59 +26,59 @@ parameters:
     default_Value: pass123#
   - name: string-param
     type: string
-    description: Onap string param
+    description: Oclip string param
     long_option: string-param
     short_option: c
     is_optional: false
     default_Value: test
   - name: yaml-param
     type: json
-    description: Onap yaml file location param
+    description: Oclip yaml file location param
     long_option: yaml-param
     short_option: y
     is_optional: false
   - name: json-param
     type: json
-    description: Onap json file location param
+    description: Oclip json file location param
     long_option: json-param
     short_option: j
     is_optional: false
   - name: long-param
     type: digit
-    description: Onap long param
+    description: Oclip long param
     short_option: l
     long_option: long-opt
     is_optional: false
     default_value: 10
   - name: url-param
     type: url
-    description: Onap url param
+    description: Oclip url param
     short_option: r
     long_option: url
     is_optional: false
     default_value: http://localhost:8082/file.txt
   - name: env-param
     type: string
-    description: Onap env param.
+    description: Oclip env param.
     short_option: z
     long_option: env
     is_optional: false
     default_value: ${ENV_VAR}
   - name: positional-args
     type: string
-    description: Onap positional args, if no short option and no long option given for it
+    description: Oclip positional args, if no short option and no long option given for it
     is_optional: false
     default_value: http://localhost:8082/file.txt
 results:
   direction: portrait
   attributes:
     - name: output-1
-      description: Onap output attribute marked in short
+      description: Oclip output attribute marked in short
       scope: short
       type: string
       is_secured: true
     - name: output-2
-      description: Onap output attribute marked in long
+      description: Oclip output attribute marked in long
       scope: short
       is_secured: false
       type: string
\ No newline at end of file
index e3b415b..347e912 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 info:
   product: open-cli
   service: test
@@ -9,7 +9,7 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
@@ -17,7 +17,7 @@ parameters:
     is_include: true
   - name: secure-param
     type: string
-    description: Onap secure param such as password
+    description: Oclip secure param such as password
     short_option: x
     long_option: secure
     is_secured: true
@@ -25,61 +25,61 @@ parameters:
     default_Value: pass123#
   - name: string-param
     type: string
-    description: Onap string param
+    description: Oclip string param
     long_option: string-param
     short_option: c
     is_optional: true
     default_Value: test
   - name: yaml-param
     type: json
-    description: Onap yaml file location param
+    description: Oclip yaml file location param
     long_option: yaml-param
     short_option: y
     is_optional: true
   - name: json-param
     type: json
-    description: Onap json file location param
+    description: Oclip json file location param
     long_option: json-param
     short_option: j
     is_optional: true
     is_secured: false
   - name: long-param
     type: digit
-    description: Onap long param
+    description: Oclip long param
     short_option: l
     long_option: long-opt
     is_optional: true
     default_value: 10
   - name: url-param
     type: url
-    description: Onap url param
+    description: Oclip url param
     short_option: r
     long_option: url
     is_optional: true
     default_value: http://localhost:8082/file.txt
   - name: env-param
     type: string
-    description: Onap env param.
+    description: Oclip env param.
     short_option: z
     long_option: env
     is_optional: true
     default_value: ${ENV_VAR}
   - name: positional-args
     type: string
-    description: Onap positional args, if no short option and no long option given for it
+    description: Oclip positional args, if no short option and no long option given for it
     is_optional: true
     default_value: http://localhost:8082/file.txt
 results:
   direction: portrait
   attributes:
     - name: output-1
-      description: Onap output attribute marked in short
+      description: Oclip output attribute marked in short
       scope: short
       type: string
       is_secured: true
       default_value: req-$s{uuid}
     - name: output-2
-      description: Onap output attribute marked in long
+      description: Oclip output attribute marked in long
       scope: short
       is_secured: false
       type: string
index b96a498..72c7dc5 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test1
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 
 info:
   product: open-cli
@@ -11,14 +11,14 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
     default_value: false
   - name: secure-param
     type: string
-    description: Onap secure param such as password
+    description: Oclip secure param such as password
     short_option: x
     long_option: secure
     is_secured: true
@@ -26,47 +26,47 @@ parameters:
     default_Value: pass123#
   - name: string-param
     type: string
-    description: Onap string param
+    description: Oclip string param
     long_option: string-param
     short_option: c
     is_optional: false
     default_Value: test
   - name: yaml-param
     type: json
-    description: Onap yaml file location param
+    description: Oclip yaml file location param
     long_option: yaml-param
     short_option: y
     is_optional: false
   - name: json-param
     type: json
-    description: Onap json file location param
+    description: Oclip json file location param
     long_option: json-param
     short_option: j
     is_optional: false
   - name: long-param
     type: digit
-    description: Onap long param
+    description: Oclip long param
     short_option: l
     long_option: long-opt
     is_optional: false
     default_value: 10
   - name: url-param
     type: url
-    description: Onap url param
+    description: Oclip url param
     short_option: r
     long_option: url
     is_optional: false
     default_value: http://localhost:8082/file.txt
   - name: env-param
     type: string
-    description: Onap env param.
+    description: Oclip env param.
     short_option: z
     long_option: env
     is_optional: false
     default_value: ${ENV_VAR}
   - name: positional-args
     type: string
-    description: Onap positional args, if no short option and no long option given for it
+    description: Oclip positional args, if no short option and no long option given for it
     is_optional: false
     default_value: http://localhost:8082/file.txt
 http:
index fd36587..bc1305c 100644 (file)
@@ -1,8 +1,8 @@
 usage: oclip sample-test
 
-Onap sample command to test the command features
+Oclip sample command to test the command features
 
-Onap service: sample v1
+Oclip service: sample v1
 
 Options:
 [-h | --help] [-v | --version] [-d | --debug]
@@ -12,9 +12,9 @@ Options:
 [-l | --long-opt] [-r | --url] [-z | --env]
 <positional-args>
 where,
--h | --help             Onap command help message. It is of type STRING.
+-h | --help             Oclip command help message. It is of type STRING.
                         By default, it is false.
--v | --version          Onap command service version. It is of type
+-v | --version          Oclip command service version. It is of type
                         STRING. By default, it is false.
 -d | --debug            Enable debug output. It is of type BOOL. By
                         default, it is false.
@@ -26,34 +26,34 @@ where,
                         false.
 -t | --no-title         whether to print title or not. It is of type BOOL.
                         By default, it is false.
--b | --bool             Onap boolean param, by default its always false.
+-b | --bool             Oclip boolean param, by default its always false.
                         It is of type BOOL. It is optional. By default, it
                         is false.
--x | --secure           Onap secure param such as password. It is of
+-x | --secure           Oclip secure param such as password. It is of
                         type STRING. Secured.
--c | --string-param     Onap string param. It is of type STRING.
--y | --yaml-param       Onap yaml file location param. It is of type
+-c | --string-param     Oclip string param. It is of type STRING.
+-y | --yaml-param       Oclip yaml file location param. It is of type
                         JSON. It's recommended to input the complete path
                         of the file, which is having the value for it.
--j | --json-param       Onap json file location param. It is of type
+-j | --json-param       Oclip json file location param. It is of type
                         JSON. It's recommended to input the complete path
                         of the file, which is having the value for it.
--l | --long-opt         Onap long param. It is of type LONG. By default,
+-l | --long-opt         Oclip long param. It is of type LONG. By default,
                         it is 10.
--r | --url              Onap url param. It is of type URL. By default,
+-r | --url              Oclip url param. It is of type URL. By default,
                         it is http://localhost:8082/file.txt.
--z | --env              Onap env param. It is of type STRING. By
+-z | --env              Oclip env param. It is of type STRING. By
                         default, it is read from environment variable
                         ENV_VAR.
-positional-args         Onap positional args, if no short option and no
+positional-args         Oclip positional args, if no short option and no
                         long option given for it. It is of type STRING. By
                         default, it is http://localhost:8082/file.txt.
 
 
 Results:
-output-1  Onap output attribute marked in short and is of
+output-1  Oclip output attribute marked in short and is of
           type STRING. It is secured.
-output-2  Onap output attribute marked in long and is of
+output-2  Oclip output attribute marked in long and is of
           type STRING.
 
 
index 58e7268..b80bfad 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test-info
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 
 info:
   product: open-cli
index bf2ce3f..a0fb0d5 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 
 info:
   product: open-cli
@@ -11,14 +11,14 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
     default_value: false
   - name: secure-param
     type: string
-    description: Onap secure param such as password
+    description: Oclip secure param such as password
     short_option: x
     long_option: secure
     is_secured: true
@@ -26,57 +26,57 @@ parameters:
     default_Value: pass123#
   - name: string-param
     type: string
-    description: Onap string param
+    description: Oclip string param
     long_option: secure
     short_option: c
     is_optional: false
     default_Value: test
   - name: yaml-param
     type: json
-    description: Onap yaml file location param
+    description: Oclip yaml file location param
     long_option: yaml-param
     short_option: y
     is_optional: false
   - name: json-param
     type: json
-    description: Onap json file location param
+    description: Oclip json file location param
     long_option: json-param
     short_option: j
     is_optional: false
   - name: long-param
     type: digit
-    description: Onap long param
+    description: Oclip long param
     short_option: l
     long_option: long-opt
     is_optional: false
     default_value: 10
   - name: url-param
     type: url
-    description: Onap url param
+    description: Oclip url param
     short_option: r
     long_option: url
     is_optional: false
     default_value: http://localhost:8082/file.txt
   - name: env-param
     type: string
-    description: Onap env param.
+    description: Oclip env param.
     short_option: z
     long_option: env
     is_optional: false
     default_value: ${ENV_VAR}
   - name: positional-args
     type: string
-    description: Onap positional args, if no short option and no long option given for it
+    description: Oclip positional args, if no short option and no long option given for it
     is_optional: false
     default_value: http://localhost:8082/file.txt
 results:
   direction: portrait
   attributes:
     - name: output-1
-      description: Onap output attribute marked in short
+      description: Oclip output attribute marked in short
       scope: short
       type: string
     - name: output-2
-      description: Onap output attribute marked in long
+      description: Oclip output attribute marked in long
       scope: short
       type: string
\ No newline at end of file
index 239c536..0718f31 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 info:
   product: open-cli
   service: test
@@ -10,21 +10,21 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
     default_value: false
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
     default_value: false
   - name: secure-param
     type: string
-    description: Onap secure param such as password
+    description: Oclip secure param such as password
     short_option: x
     long_option: secure
     is_secured: true
@@ -32,57 +32,57 @@ parameters:
     default_Value: pass123#
   - name: string-param
     type: string
-    description: Onap string param
+    description: Oclip string param
     long_option: string-param
     short_option: c
     is_optional: false
     default_Value: test
   - name: yaml-param
     type: json
-    description: Onap yaml file location param
+    description: Oclip yaml file location param
     long_option: yaml-param
     short_option: y
     is_optional: false
   - name: json-param
     type: json
-    description: Onap json file location param
+    description: Oclip json file location param
     long_option: json-param
     short_option: j
     is_optional: false
   - name: long-param
     type: digit
-    description: Onap long param
+    description: Oclip long param
     short_option: l
     long_option: long-opt
     is_optional: false
     default_value: 10
   - name: url-param
     type: url
-    description: Onap url param
+    description: Oclip url param
     short_option: r
     long_option: url
     is_optional: false
     default_value: http://localhost:8082/file.txt
   - name: env-param
     type: string
-    description: Onap env param.
+    description: Oclip env param.
     short_option: z
     long_option: env
     is_optional: false
     default_value: ${ENV_VAR}
   - name: positional-args
     type: string
-    description: Onap positional args, if no short option and no long option given for it
+    description: Oclip positional args, if no short option and no long option given for it
     is_optional: false
     default_value: http://localhost:8082/file.txt
 results:
   direction: portrait
   attributes:
     - name: output-1
-      description: Onap output attribute marked in short
+      description: Oclip output attribute marked in short
       scope: short
       type: string
     - name: output-2
-      description: Onap output attribute marked in long
+      description: Oclip output attribute marked in long
       scope: short
       type: string
\ No newline at end of file
index 4c6b27e..d61bf6e 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 info:
   product: open-cli
   service: test
@@ -9,14 +9,14 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
     default_value: false
   - name: secure-param
     type: string
-    description: Onap secure param such as password
+    description: Oclip secure param such as password
     short_option: x
     short_option: y
     long_option: secure
@@ -25,57 +25,57 @@ parameters:
     default_Value: pass123#
   - name: string-param
     type: string
-    description: Onap string param
+    description: Oclip string param
     long_option: string-param
     short_option: c
     is_optional: false
     default_Value: test
   - name: yaml-param
     type: json
-    description: Onap yaml file location param
+    description: Oclip yaml file location param
     long_option: yaml-param
     short_option: y
     is_optional: false
   - name: json-param
     type: json
-    description: Onap json file location param
+    description: Oclip json file location param
     long_option: json-param
     short_option: j
     is_optional: false
   - name: long-param
     type: digit
-    description: Onap long param
+    description: Oclip long param
     short_option: l
     long_option: long-opt
     is_optional: false
     default_value: 10
   - name: url-param
     type: url
-    description: Onap url param
+    description: Oclip url param
     short_option: r
     long_option: url
     is_optional: false
     default_value: http://localhost:8082/file.txt
   - name: env-param
     type: string
-    description: Onap env param.
+    description: Oclip env param.
     short_option: z
     long_option: env
     is_optional: false
     default_value: ${ENV_VAR}
   - name: positional-args
     type: string
-    description: Onap positional args, if no short option and no long option given for it
+    description: Oclip positional args, if no short option and no long option given for it
     is_optional: false
     default_value: http://localhost:8082/file.txt
 results:
   direction: portrait
   attributes:
     - name: output-1
-      description: Onap output attribute marked in short
+      description: Oclip output attribute marked in short
       scope: short
       type: string
     - name: output-2
-      description: Onap output attribute marked in long
+      description: Oclip output attribute marked in long
       scope: short
       type: string
\ No newline at end of file
index 05da6ce..06c45da 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 info:
   product: open-cli
   service: test
@@ -9,14 +9,14 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
     default_value: false
   - name: secure-param
     type: string
-    description: Onap secure param such as password
+    description: Oclip secure param such as password
     short_option: x
     long_option: secure
     is_secured: true
@@ -24,57 +24,57 @@ parameters:
     default_Value: pass123#
   - name: string-param
     type: string
-    description: Onap string param
+    description: Oclip string param
     long_option: string-param
     short_option: c
     is_optional: false
     default_Value: test
   - name: yaml-param
     type: json
-    description: Onap yaml file location param
+    description: Oclip yaml file location param
     long_option: yaml-param
     short_option: y
     is_optional: false
   - name: json-param
     type: json
-    description: Onap json file location param
+    description: Oclip json file location param
     long_option: json-param
     short_option: j
     is_optional: false
   - name: long-param
     type: digit
-    description: Onap long param
+    description: Oclip long param
     short_option: l
     long_option: long-opt
     is_optional: false
     default_value: 10
   - name: url-param
     type: url
-    description: Onap url param
+    description: Oclip url param
     short_option: r
     long_option: url
     is_optional: false
     default_value: http://localhost:8082/file.txt
   - name: env-param
     type: string
-    description: Onap env param.
+    description: Oclip env param.
     short_option: z
     long_option: env
     is_optional: false
     default_value: ${ENV_VAR}
   - name: positional-args
     type: string
-    description: Onap positional args, if no short option and no long option given for it
+    description: Oclip positional args, if no short option and no long option given for it
     is_optional: false
     default_value: http://localhost:8082/file.txt
 results:
   direction: portrait
   attributes:
     - name: output-1
-      description: Onap output attribute marked in short
+      description: Oclip output attribute marked in short
       scope: short
       type: string
     - name: output-2
-      description: Onap output attribute marked in long
+      description: Oclip output attribute marked in long
       scope: short
       type: string
\ No newline at end of file
index e7f5419..062388f 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 info:
   product: open-cli
   service: test
@@ -9,7 +9,7 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
index 60b45e8..b5d9160 100644 (file)
@@ -8,65 +8,65 @@ info:
   author: Kanagaraj Manickam mkr1481@gmail.com
 parameters:
   - name: service-name
-    description: Onap service name
+    description: Oclip service name
     type: string
     short_option: x
     long_option: service-name
     is_optional: false
   - name: service-version
-    description: Onap service version
+    description: Oclip service version
     type: string
     short_option: y
     long_option: service-version
     is_optional: false
   - name: service-url
-    description: Onap service base url
+    description: Oclip service base url
     type: url
     short_option: r
     long_option: service-url
     is_optional: false
   - name: status
-    description: Onap service status
+    description: Oclip service status
     type: digit
     short_option: z
     long_option: service-status
     is_optional: true
     default_value: 1
   - name: node-ip
-    description: Onap service running node IP
+    description: Oclip service running node IP
     type: string
   - name: node-port
-    description: Onap service running node port
+    description: Oclip service running node port
     type: string
   - name: create-or-update
-    description: Onap service create or update
+    description: Oclip service create or update
     type: bool
     default_value: true
 results:
   direction: portrait
   attributes:
     - name: name
-      description: Onap service name
+      description: Oclip service name
       scope: short
       type: string
     - name: version
-      description: Onap service version
+      description: Oclip service version
       scope: short
       type: string
     - name: url
-      description: Onap service base url
+      description: Oclip service base url
       scope: short
       type: url
     - name: status
-      description: Onap service status
+      description: Oclip service status
       scope: short
       type: digit
     - name: nodes
-      description: Onap service running nodes
+      description: Oclip service running nodes
       scope: long
       type: string
     - name: location
-      description: Onap service location
+      description: Oclip service location
       scope: long
       type: url
 http:
index 0c52c71..2d8086e 100644 (file)
@@ -9,7 +9,7 @@ info:
 parameters:
   - name: user
     type: string
-    description: Onap user
+    description: Oclip user
     short_option: n
     long_option: username
     is_optional: false
@@ -17,7 +17,7 @@ results:
   direction: portrait
   attributes:
     - name: name
-      description: Onap user
+      description: Oclip user
       scope: short
       type: string
 exec:
index a421904..1410487 100644 (file)
@@ -8,64 +8,64 @@ info:
   author: Kanagaraj Manickam mkr1481@gmail.com
 parameters:
   - name: service-name1
-    description: Onap service name
+    description: Oclip service name
     type: string
     short_option: x
     long_option: service-name
     is_optional: false
   - name: service-version
-    description: Onap service version
+    description: Oclip service version
     type: string
     short_option: x
     long_option: service-version
     is_optional: false
   - name: service-url
-    description: Onap service base url
+    description: Oclip service base url
     type: url1
     short_option: u
     long_option: service-url
     is_optional: false1
   - name: status
-    description: Onap service status
+    description: Oclip service status
     type: digit
     short_option: z
     long_option: service-version
     is_optional: true
     default_value: 1
   - name: node-ip
-    description: Onap service running node IP
+    description: Oclip service running node IP
     type: string
   - name: node-port
-    description: Onap service running node port
+    description: Oclip service running node port
     type: string
   - name: create-or-update
-    description: Onap service create or update
+    description: Oclip service create or update
     type: cfbcv
     default_value: true
 results:
   direction: portrait1
   attributes:
     - name: name
-      description: Onap service name
+      description: Oclip service name
       scope: short
       type: string
     - name: version
-      description: Onap service version
+      description: Oclip service version
       scope: short
       type: string
     - name: status
-      description: Onap service base url
+      description: Oclip service base url
       scope: short
       type: url
     - name: status
-      description: Onap service status
+      description: Oclip service status
       scope: short1
       type: digit
     - name: nodes
-      description: Onap service running nodes
+      description: Oclip service running nodes
       scope: long
       type: string
     - name: location
-      description: Onap service location
+      description: Oclip service location
       scope: long
       type: url
\ No newline at end of file
index 544de82..8228b17 100644 (file)
@@ -9,65 +9,65 @@ info:
 
 parameters:
   - name: service-name1
-    description: Onap service name
+    description: Oclip service name
     type: string
     short_option: x
     long_option: service-name
     is_optional: false
   - name: service-version
-    description: Onap service version
+    description: Oclip service version
     type: string
     short_option: x
     long_option: service-version
     is_optional: false
   - name: service-url
-    description: Onap service base url
+    description: Oclip service base url
     type: url1
     short_option: u
     long_option: service-url
     is_optional: false1
   - name: status
-    description: Onap service status
+    description: Oclip service status
     type: digit
     short_option: z
     long_option: service-version
     is_optional: true
     default_value: 1
   - name: node-ip
-    description: Onap service running node IP
+    description: Oclip service running node IP
     type: string
   - name: node-port
-    description: Onap service running node port
+    description: Oclip service running node port
     type: string
   - name: create-or-update
-    description: Onap service create or update
+    description: Oclip service create or update
     type: cfbcv
     default_value: true
 results:
   direction: portrait
   attributes:
     - name: name
-      description: Onap service name
+      description: Oclip service name
       scope: short
       type: string
     - name: version
-      description: Onap service version
+      description: Oclip service version
       scope: short
       type: string
     - name: status
-      description: Onap service base url
+      description: Oclip service base url
       scope: short
       type: url
     - name: status
-      description: Onap service status
+      description: Oclip service status
       scope: short1
       type: digit
     - name: nodes
-      description: Onap service running nodes
+      description: Oclip service running nodes
       scope: long
       type: string
     - name: location
-      description: Onap service location
+      description: Oclip service location
       scope: long
       type: url
 http:
index 11aaaca..166e146 100644 (file)
@@ -8,56 +8,56 @@ info:
   author: Kanagaraj Manickam mkr1481@gmail.com
 parameters:
   - name: name
-    description: Onap SDNC name
+    description: Oclip SDNC name
     scope: short
     type: string
     short_option: n
     long_option: name
     is_optional: false
   - name: vendor
-    description: Onap SDNC vendor
+    description: Oclip SDNC vendor
     scope: short
     type: string
     short_option: e
     long_option: vendor
     is_optional: false
   - name: type
-    description: Onap SDNC type
+    description: Oclip SDNC type
     scope: short
     type: string
     short_option: y
     long_option: type
     is_optional: false
   - name: sdnc-version
-    description: Onap SDNC version
+    description: Oclip SDNC version
     scope: short
     type: string
     short_option: r
     long_option: sdnc-version
     is_optional: false
   - name: url
-    description: Onap SDNC base url
+    description: Oclip SDNC base url
     scope: short
     type: url
     short_option: l
     long_option: url
     is_optional: false
   - name: description
-    description: Onap SDNC description
+    description: Oclip SDNC description
     scope: short
     type: string
     short_option: i
     long_option: description
     is_optional: false
   - name: username
-    description: Onap SDNC username
+    description: Oclip SDNC username
     scope: short
     type: string
     short_option: g
     long_option: username
     is_optional: false
   - name: password
-    description: Onap SDNC password
+    description: Oclip SDNC password
     scope: short
     type: string
     is_secured: true
@@ -65,14 +65,14 @@ parameters:
     long_option: password
     is_optional: false
   - name: product-name
-    description: Onap SDNC product-name
+    description: Oclip SDNC product-name
     scope: short
     type: string
     short_option: o
     long_option: product-name
     is_optional: false
   - name: protocol
-    description: Onap SDNC protocol
+    description: Oclip SDNC protocol
     scope: short
     type: string
     short_option: k
@@ -82,52 +82,52 @@ results:
   direction: portrait
   attributes:
     - name: id
-      description: Onap SDNC ID
+      description: Oclip SDNC ID
       scope: short
       type: string
     - name: name
-      description: Onap SDNC name
+      description: Oclip SDNC name
       scope: short
       type: string
     - name: vendor
-      description: Onap SDNC vendor
+      description: Oclip SDNC vendor
       scope: short
       type: string
     - name: type
-      description: Onap SDNC type
+      description: Oclip SDNC type
       scope: short
       type: string
     - name: version
-      description: Onap SDNC version
+      description: Oclip SDNC version
       scope: short
       type: string
     - name: url
-      description: Onap SDNC base url
+      description: Oclip SDNC base url
       scope: short
       type: url
     - name: description
-      description: Onap SDNC description
+      description: Oclip SDNC description
       scope: short
       type: string
     - name: username
-      description: Onap SDNC username
+      description: Oclip SDNC username
       scope: short
       type: string
     - name: password
-      description: Onap SDNC password
+      description: Oclip SDNC password
       scope: short
       type: string
       is_secured: true
     - name: product-name
-      description: Onap SDNC product name
+      description: Oclip SDNC product name
       scope: short
       type: string
     - name: protocol
-      description: Onap SDNC protocol
+      description: Oclip SDNC protocol
       scope: short
       type: string
     - name: create-time
-      description: Onap SDNC create-time
+      description: Oclip SDNC create-time
       scope: long
       type: string
 http:
index 25e1cb5..0d5e34c 100644 (file)
@@ -9,65 +9,65 @@ info:
 name: schema-validate
 parameters:
   - name: service-name1
-    description: Onap service name
+    description: Oclip service name
     type: string
     short_option: x
     long_option: service-name
     is_optional: false
   - name: service-version
-    description: Onap service version
+    description: Oclip service version
     type: string
     short_option: x
     long_option: service-version
     is_optional: false
   - name: service-url
-    description: Onap service base url
+    description: Oclip service base url
     type: url1
     short_option: u
     long_option: service-url
     is_optional: false1
   - name: status
-    description: Onap service status
+    description: Oclip service status
     type: digit
     short_option: z
     long_option: service-version
     is_optional: true
     default_value: 1
   - name: node-ip
-    description: Onap service running node IP
+    description: Oclip service running node IP
     type: string
   - name: node-port
-    description: Onap service running node port
+    description: Oclip service running node port
     type: string
   - name: create-or-update
-    description: Onap service create or update
+    description: Oclip service create or update
     type: cfbcv
     default_value: true
 results:
   direction: portrait
   attributes:
     - name: name
-      description: Onap service name
+      description: Oclip service name
       scope: short
       type: string
     - name: version
-      description: Onap service version
+      description: Oclip service version
       scope: short
       type: string
     - name: status
-      description: Onap service base url
+      description: Oclip service base url
       scope: short
       type: url
     - name: status
-      description: Onap service status
+      description: Oclip service status
       scope: short1
       type: digit
     - name: nodes
-      description: Onap service running nodes
+      description: Oclip service running nodes
       scope: long
       type: string
     - name: location
-      description: Onap service location
+      description: Oclip service location
       scope: long
       type: url
 http:
index 7379520..28da954 100644 (file)
@@ -9,56 +9,56 @@ info:
 
 parameters:
   - name: name
-    description: Onap SDNC name
+    description: Oclip SDNC name
     scope: short
     type: string
     short_option: n
     long_option: name
     is_optional: false
   - name: vendor
-    description: Onap SDNC vendor
+    description: Oclip SDNC vendor
     scope: short
     type: string
     short_option: e
     long_option: vendor
     is_optional: false
   - name: type
-    description: Onap SDNC type
+    description: Oclip SDNC type
     scope: short
     type: string
     short_option: y
     long_option: type
     is_optional: false
   - name: sdnc-version
-    description: Onap SDNC version
+    description: Oclip SDNC version
     scope: short
     type: string
     short_option: r
     long_option: sdnc-version
     is_optional: false
   - name: url
-    description: Onap SDNC base url
+    description: Oclip SDNC base url
     scope: short
     type: url
     short_option: l
     long_option: url
     is_optional: false
   - name: description
-    description: Onap SDNC description
+    description: Oclip SDNC description
     scope: short
     type: string
     short_option: i
     long_option: description
     is_optional: false
   - name: username
-    description: Onap SDNC username
+    description: Oclip SDNC username
     scope: short
     type: string
     short_option: g
     long_option: username
     is_optional: false
   - name: password
-    description: Onap SDNC password
+    description: Oclip SDNC password
     scope: short
     type: string
     is_secured: true
@@ -66,14 +66,14 @@ parameters:
     long_option: password
     is_optional: false
   - name: product-name
-    description: Onap SDNC product-name
+    description: Oclip SDNC product-name
     scope: short
     type: string
     short_option: o
     long_option: product-name
     is_optional: false
   - name: protocol
-    description: Onap SDNC protocol
+    description: Oclip SDNC protocol
     scope: short
     type: string
     short_option: k
@@ -83,52 +83,52 @@ results:
   direction: portrait
   attributes:
     - name: id
-      description: Onap SDNC ID
+      description: Oclip SDNC ID
       scope: short
       type: string
     - name: name
-      description: Onap SDNC name
+      description: Oclip SDNC name
       scope: short
       type: string
     - name: vendor
-      description: Onap SDNC vendor
+      description: Oclip SDNC vendor
       scope: short
       type: string
     - name: type
-      description: Onap SDNC type
+      description: Oclip SDNC type
       scope: short
       type: string
     - name: version
-      description: Onap SDNC version
+      description: Oclip SDNC version
       scope: short
       type: string
     - name: url
-      description: Onap SDNC base url
+      description: Oclip SDNC base url
       scope: short
       type: url
     - name: description
-      description: Onap SDNC description
+      description: Oclip SDNC description
       scope: short
       type: string
     - name: username
-      description: Onap SDNC username
+      description: Oclip SDNC username
       scope: short
       type: string
     - name: password
-      description: Onap SDNC password
+      description: Oclip SDNC password
       scope: short
       type: string
       is_secured: true
     - name: product-name
-      description: Onap SDNC product name
+      description: Oclip SDNC product name
       scope: short
       type: string
     - name: protocol
-      description: Onap SDNC protocol
+      description: Oclip SDNC protocol
       scope: short
       type: string
     - name: create-time
-      description: Onap SDNC create-time
+      description: Oclip SDNC create-time
       scope: long
       type: string
 http:
index eb4e1d4..357ee5e 100644 (file)
@@ -47,7 +47,7 @@ import jline.TerminalFactory;
 import jline.console.ConsoleReader;
 
 /**
- * Onap Command Line Interface (CLI).
+ * Oclip Command Line Interface (CLI).
  *
  */
 public class OnapCli {
@@ -309,7 +309,7 @@ public class OnapCli {
             console.addCompleter(strCompleter);
             console.setPrompt(OnapCliConstants.PARAM_INTERACTIVE_PROMPT + ":" + OnapCommandRegistrar.getRegistrar().getEnabledProductVersion() + ">");
         } catch (OnapCommandException e) { // NOSONAR
-            this.print("Failed to load onap commands," + e.getMessage());
+            this.print("Failed to load oclip commands," + e.getMessage());
         }
 
         return console;
index 3ab4cce..99cfa7d 100644 (file)
@@ -38,7 +38,7 @@ import java.util.List;
 import java.util.Map;
 
 /**
- * Onap CLI utilities.
+ * Oclip CLI utilities.
  *
  */
 public class OnapCliUtils {
@@ -91,7 +91,7 @@ public class OnapCliUtils {
         }
 
         int positionalIdx = 0;
-        // Skip the first args onap cmd name, so start from 1
+        // Skip the first args oclip cmd name, so start from 1
         for (int i = 1; i < args.size(); i++) {
             // check if short option exist
             // (mrkanag) Optimize the below code to handle short and long options in one iteration
index ab4086b..a204860 100644 (file)
@@ -18,8 +18,8 @@ variables, before using it:
 2. OPEN_CLI_HOST_USERNAME - Service user name
 3. OPEN_CLI_HOST_PASSWORD - Service password
 
-To know the CLI version, type onap [-v|--version]
-To know the CLI usage, type onap [-h|--help]
-To know the usage of sub commands, type onap <command> [-h|--help]
+To know the CLI version, type oclip [-v|--version]
+To know the CLI usage, type oclip [-h|--help]
+To know the usage of sub commands, type oclip <command> [-h|--help]
 
 To know more, please refer the wiki https://wiki.onap.org
index 3c1dda8..23421b3 100644 (file)
@@ -9,18 +9,18 @@ info:
 
 parameters:
   - name: service-name
-    description: Onap service name
+    description: Oclip service name
     type: string
     short_option: x
     long_option: service-name
     is_optional: false
   - name: node-ip
-    description: Onap service running node IP
+    description: Oclip service running node IP
     type: array
     short_option: i
     long_option: node-ip
   - name: node-port
-    description: Onap service running node port
+    description: Oclip service running node port
     type: map
     short_option: o
     long_option: node-port
@@ -28,27 +28,27 @@ results:
   direction: portrait
   attributes:
     - name: name
-      description: Onap service name
+      description: Oclip service name
       scope: short
       type: string
     - name: version
-      description: Onap service version
+      description: Oclip service version
       scope: short
       type: string
     - name: url
-      description: Onap service base url
+      description: Oclip service base url
       scope: short
       type: url
     - name: status
-      description: Onap service status
+      description: Oclip service status
       scope: short
       type: digit
     - name: nodes
-      description: Onap service running nodes
+      description: Oclip service running nodes
       scope: long
       type: string
     - name: location
-      description: Onap service location
+      description: Oclip service location
       scope: long
       type: url
 http:
index f257bf6..d867d9f 100644 (file)
@@ -1,6 +1,6 @@
 open_cli_schema_version: 1.0
 name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
 info:
   product: open-cli
   service: test
@@ -10,14 +10,14 @@ info:
 parameters:
   - name: bool-param
     type: bool
-    description: Onap boolean param, by default its always false.
+    description: Oclip boolean param, by default its always false.
     short_option: b
     long_option: bool
     is_optional: true
     default_value: false
   - name: secure-param
     type: string
-    description: Onap secure param such as password
+    description: Oclip secure param such as password
     short_option: x
     long_option: secure
     is_secured: true
@@ -25,40 +25,40 @@ parameters:
     default_Value: pass123#
   - name: string-param
     type: string
-    description: Onap string param
+    description: Oclip string param
     long_option: string-param
     short_option: c
     is_optional: true
     default_Value: test
   - name: yaml-param
     type: json
-    description: Onap yaml file location param
+    description: Oclip yaml file location param
     long_option: yaml-param
     short_option: y
     is_optional: true
   - name: json-param
     type: json
-    description: Onap json file location param
+    description: Oclip json file location param
     long_option: json-param
     short_option: j
     is_optional: true
   - name: long-param
     type: digit
-    description: Onap long param
+    description: Oclip long param
     short_option: l
     long_option: long-opt
     is_optional: true
     default_value: 10
   - name: url-param
     type: url
-    description: Onap url param
+    description: Oclip url param
     short_option: r
     long_option: url
     is_optional: true
     default_value: http://localhost:8082/file.txt
   - name: env-param
     type: string
-    description: Onap env param.
+    description: Oclip env param.
     short_option: z
     long_option: env
     is_optional: true
@@ -66,12 +66,12 @@ parameters:
     default_value: http://localhost:8082/file.txt
   - name: positional-args
     type: string
-    description: Onap positional args, if no short option and no long option given for it
+    description: Oclip positional args, if no short option and no long option given for it
     is_optional: true
     default_value: http://localhost:8082/file.txt
   - name: text-param
     type: text
-    description: Onap text file location param
+    description: Oclip text file location param
     long_option: text-param
     short_option: e
     is_optional: true
@@ -79,10 +79,10 @@ results:
   direction: portrait
   attributes:
     - name: output-1
-      description: Onap output attribute marked in short
+      description: Oclip output attribute marked in short
       scope: short
       type: string
     - name: output-2
-      description: Onap output attribute marked in long
+      description: Oclip output attribute marked in long
       scope: short
       type: string
\ No newline at end of file