aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/resources
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-20 16:17:43 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-14 14:38:23 +0530
commite3fbe2ce554c851aee4cb3d047ec08510ed4d382 (patch)
tree10e8b8f1be9b8eaa261d296dabf0e56d75e65db5 /framework/src/main/resources
parent1ecc057676a6ef788d5193261abd98bd364f10c0 (diff)
Basic auth login and logout command
Issue-Id: CLI-66 Change-Id: Ief44cd0d12d7814c029129ff4d8a384dc36c369f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/resources')
-rw-r--r--framework/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand3
-rw-r--r--framework/src/main/resources/onap-cli-schema/basic-login.yaml17
-rw-r--r--framework/src/main/resources/onap-cli-schema/basic-logout.yaml13
-rw-r--r--framework/src/main/resources/onap-cli-schema/catalog.yaml42
4 files changed, 75 insertions, 0 deletions
diff --git a/framework/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand b/framework/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand
index 422da568..e29c2c28 100644
--- a/framework/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand
+++ b/framework/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand
@@ -1,2 +1,5 @@
org.onap.cli.fw.cmd.OnapSchemaValidateCommand
org.onap.cli.fw.cmd.OnapSchemaRefreshCommand
+org.onap.cli.fw.cmd.BasicAuthLoginCommand
+org.onap.cli.fw.cmd.BasicAuthLogoutCommand
+org.onap.cli.fw.cmd.CatalogCommand
diff --git a/framework/src/main/resources/onap-cli-schema/basic-login.yaml b/framework/src/main/resources/onap-cli-schema/basic-login.yaml
new file mode 100644
index 00000000..10bc8a80
--- /dev/null
+++ b/framework/src/main/resources/onap-cli-schema/basic-login.yaml
@@ -0,0 +1,17 @@
+open_cli_schema_version: 1.0
+name: basic-login
+description: basic login auth command
+version: cli-1.0
+type: auth
+
+service:
+ name: onap-cli
+ version: 1.0.0
+
+results:
+ direction: portrait
+ attributes:
+ - name: Authorization
+ description: Authorization
+ scope: short
+ type: string
diff --git a/framework/src/main/resources/onap-cli-schema/basic-logout.yaml b/framework/src/main/resources/onap-cli-schema/basic-logout.yaml
new file mode 100644
index 00000000..ccb05160
--- /dev/null
+++ b/framework/src/main/resources/onap-cli-schema/basic-logout.yaml
@@ -0,0 +1,13 @@
+open_cli_schema_version: 1.0
+
+name: basic-logout
+
+description: basic logout auth command
+
+version: cli-1.0
+
+type: auth
+
+service:
+ name: onap-cli
+ version: 1.0.0
diff --git a/framework/src/main/resources/onap-cli-schema/catalog.yaml b/framework/src/main/resources/onap-cli-schema/catalog.yaml
new file mode 100644
index 00000000..6cfdb0a0
--- /dev/null
+++ b/framework/src/main/resources/onap-cli-schema/catalog.yaml
@@ -0,0 +1,42 @@
+open_cli_schema_version: 1.0
+
+name: catalog
+
+description: cli catalog command to find the base path for service.
+
+version: cli-1.0
+
+type: catalog
+
+service:
+ auth: none
+ name: onap-cli
+ version: 1.0.0
+ mode: direct
+
+parameters:
+ - name: catalog-service-name
+ type: string
+ description: service name registered in catalog service
+ short_option: l
+ long_option: catalog-service-name
+ is_optional: false
+ - name: catalog-service-version
+ type: string
+ description: service version registered in catalog service
+ short_option: i
+ long_option: catalog-service-version
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: catalog-service-host-url
+ description: Service connection url
+ scope: short
+ type: string
+ default_value: ${host-url}
+ - name: catalog-service-base-path
+ description: service base path, to append with host-url for connecting the service.
+ scope: short
+ type: string
+ default_value: / \ No newline at end of file