From e3fbe2ce554c851aee4cb3d047ec08510ed4d382 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 20 Sep 2017 16:17:43 +0530 Subject: Basic auth login and logout command Issue-Id: CLI-66 Change-Id: Ief44cd0d12d7814c029129ff4d8a384dc36c369f Signed-off-by: Kanagaraj Manickam k00365106 --- .../META-INF/services/org.onap.cli.fw.OnapCommand | 3 ++ .../resources/onap-cli-schema/basic-login.yaml | 17 +++++++++ .../resources/onap-cli-schema/basic-logout.yaml | 13 +++++++ .../main/resources/onap-cli-schema/catalog.yaml | 42 ++++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 framework/src/main/resources/onap-cli-schema/basic-login.yaml create mode 100644 framework/src/main/resources/onap-cli-schema/basic-logout.yaml create mode 100644 framework/src/main/resources/onap-cli-schema/catalog.yaml (limited to 'framework/src/main/resources') 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 -- cgit 1.2.3-korg