summaryrefslogtreecommitdiffstats
path: root/main/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/test')
-rw-r--r--main/src/test/java/org/onap/cli/main/OnapCliMainTest.java149
1 files changed, 0 insertions, 149 deletions
diff --git a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
index ca955cc9..965059e0 100644
--- a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
+++ b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
@@ -114,155 +114,6 @@ public class OnapCliMainTest {
}
@Test
- public void testHelpServiceListCommandShort() {
- this.handle(new String[] { "microservice-list", "-h" });
- }
-
- @Test
- public void testHelpUserCreateCommand() {
- this.handle(new String[] { "user-create", "--help" });
- }
-
- @Test
- @Ignore
- public void testUserCreateCommand() {
- this.handle(new String[] { "user-create", "-u", "admin", "-p", "Changeme_123", "-m", "http://192.168.99.100:80",
- "--username", "test", "--password", "sss", "--description", "test user", "-d" });
- }
-
- @Test
- @Ignore
- public void testHelpVimShowCommand() {
- this.handle(new String[] { "vim-show", "--help" });
- }
-
- @Test
- @Ignore
- public void testVimListCommand() {
- this.handle(new String[] { "vim-list", "-u", "admin", "-p", "Changeme_123", "-m", "http://192.168.99.100:80",
- "--long", "--format", "table" });
- }
-
- @Test
- public void tesVersionServiceListCommand() {
- this.handle(new String[] { "microservice-list", "--version" });
- }
-
- @Test
- public void tesVersionServiceListCommandShort() {
- this.handle(new String[] { "microservice-list", "-v" });
- }
-
- @Test
- @Ignore
- public void testServiceListCommand() {
- this.handle(new String[] { "microservice-list", "-u", "root1", "-p", "root123", "-m", "http://192.168.4.47:80",
- "--long", "--no-title", "true", "-d" });
- }
-
- @Test
- @Ignore
- public void testServiceCreateCommand() {
- this.handle(new String[] { "microservice-create", "-u", "admin", "-p", "Changeme_123", "-m",
- "http://192.168.99.100:80", "--service-name", "test-service", "--service-version", "v1",
- "--service-url", "/openapi/sampletest/v1", "127.0.0.1", "8080", "--debug", "--long" });
- }
-
- @Test
- @Ignore
- public void testServiceShowCommand() {
- this.handle(new String[] { "microservice-show", "-u", "admin", "-p", "Changeme_123", "-m",
- "http://192.168.99.100:80", "--service-name", "test-service", "--service-version", "v1", "--debug",
- "--long" });
- }
-
- @Test
- @Ignore
- public void testServiceDeleteCommand() {
- this.handle(new String[] { "microservice-delete", "-u", "admin", "-p", "Changeme_123", "-m",
- "http://192.168.99.100:80", "--service-name", "test-service", "--service-version", "v1", "--debug",
- "--long" });
- }
-
- @Test
- @Ignore
- public void testSdncCreate() {
-
- this.handle(new String[] { "sdnc-create", "-u", "root1", "-p", "root123", "-m", "http://192.168.4.47:80",
- "--name", "testcontroller", "--vendor", "testvendor", "--sdnc-version", "v1", "--description",
- "testingSDNC", "--type", "string", "--url", "onapapi/extsys/v1", "--username", "test", "--password",
- "test", "--product-name", "testproduct", "--protocol", "http", "-d" });
- }
-
- @Test
- @Ignore
- public void testSdnclist() {
-
- this.handle(new String[] { "sdnc-list", "-p", "root123", "--msb-url", "http://192.168.99.100", "-u", "root1",
- "-d" });
- }
-
- @Test
- @Ignore
- public void testNFVResourcelist() {
- this.handle(new String[] { "resource-datacenter-show", "--id", "test", "-u", "root", "-p", "root123",
- "--msb-url", "http://192.168.99.100", "-a", "-d" });
- }
-
- @Test
- @Ignore
- public void testNFVResourceShow() {
-
- this.handle(new String[] { "resource-datacenter-show", "--id", "test", "-u", "root", "-p", "root123",
- "--msb-url", "http://192.168.99.100", "-a", "-d" });
- }
-
- @Test
- @Ignore
- public void testSdncdelete() {
-
- this.handle(new String[] { "sdnc-delete", "-p", "root123", "--msb-url", "http://192.168.4.47", "-u", "root1",
- "--id", "053104c1-0f8b-481d-9456-f7b02e87c0e7" });
- }
-
- @Test
- @Ignore
- public void testServiceCreateHelpCommand() {
- this.handle(new String[] { "microservice-create", "--help" });
- }
-
- @Test
- @Ignore
- public void testGsoServiceCreateCommand() {
- this.handle(new String[] { "service-create", "-m", "http://192.168.4.47:80", "-u", "root1", "-p", "root123",
- "-x", "test", "-z", "test", "-n", "test", "-r", "123", "-j",
- "D:/workspace/onap/integration/test/csit/plans/gso/sanity-check/jsoninput/lcm_CreateServiceReq.json",
- "-d" });
- }
-
- @Test
- @Ignore
- public void testCsrUpload() {
- this.handle(new String[] { "catalog-csar-create", "-u", "root", "-p", "root123", "--msb-url",
- "http://192.168.4.47", "-d", "-a", "-z", "D:\\enterprise2DC.csar" });
- }
-
- @Test
- @Ignore
- public void testCsrDelete() {
- this.handle(new String[] { "catalog-csar-delete", "-u", "root", "-p", "root123", "--msb-url",
- "http://192.168.4.47", "-d", "-a", "-i", "7aa791f9-4e5f-433a-afeb-3555bcbabb47" });
- }
-
- @Test
- @Ignore
- public void testPortCreate() {
- this.handle(new String[] { "resource-link-create", "-u", "root", "-p", "root123", "--msb-url",
- "http://192.168.4.213", "-d", "-n", "PradeepLink1", "-b", "19.5.6.13", "-c", "193.4.57.13", "-g",
- "193.5.6.13", "-q", "189.78.6.13", "-y", "fiberLink" });
- }
-
- @Test
public void validateCommands() throws IOException, OnapCommandException {
Map<String, String> cmdSchemaMap = OnapCommandRegistrar.getRegistrar().getAllCommandToSchemaMap();
for (String cmdName : cmdSchemaMap.keySet()) {