From c74ae07f810f3b6526218beca97b2d9ffe6ab5ce Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 7 Aug 2019 11:07:40 +0530 Subject: Add elalto basic auth login Issue-ID: CLI-169 Change-Id: Ia818d735c39f903a09a61b51e380a85042ff8476 Signed-off-by: Kanagaraj Manickam k00365106 --- .../cmd/auth/OnapBasicAuthLoginCommandElalto.java | 24 ++++++++++++ .../services/org.onap.cli.fw.cmd.OnapCommand | 16 ++++++++ .../open-cli-schema/basic-login-onap-elalto.yaml | 43 ++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandElalto.java create mode 100644 products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand create mode 100644 products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandElalto.java b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandElalto.java new file mode 100644 index 00000000..d4b23d46 --- /dev/null +++ b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandElalto.java @@ -0,0 +1,24 @@ +/* + * Copyright 2019 Huawei Technologies Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.cli.cmd.auth; + +import org.onap.cli.fw.http.cmd.BasicAuthLoginCommand; +import org.onap.cli.fw.schema.OnapCommandSchema; + +@OnapCommandSchema(schema = "basic-login-onap-elalto.yaml") +public class OnapBasicAuthLoginCommandElalto extends BasicAuthLoginCommand { +} diff --git a/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand new file mode 100644 index 00000000..8f717287 --- /dev/null +++ b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand @@ -0,0 +1,16 @@ +# Copyright 2019 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +org.onap.cli.cmd.auth.OnapBasicAuthLoginCommandElalto + diff --git a/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-elalto.yaml b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-elalto.yaml new file mode 100644 index 00000000..ccd67f55 --- /dev/null +++ b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-elalto.yaml @@ -0,0 +1,43 @@ +# Copyright 2019 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 + +name: basic-login + +description: ONAP basic login auth command + +info: + product: onap-elalto + service: basic-auth + type: auth + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: portrait + attributes: + - name: Authorization + description: Authorization + scope: short + type: string + - name: X-TransactionId + description: X-TransactionId + scope: short + type: string + default_value: req-$s{uuid} + - name: X-FromAppId + description: X-FromAppId + scope: short + type: string + default_value: ONAP CLI -- cgit 1.2.3-korg From 3a50c013ed1cf0037e3b1115443a8a4a49b449d4 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 6 Aug 2019 17:03:29 +0530 Subject: Add place holder for onap-el-alto Issue-ID: CLI-169 Change-Id: Idcd8872f979844c69259bf126e09133cfc9a7018 Signed-off-by: Kanagaraj Manickam k00365106 --- main/src/main/java/org/onap/cli/main/OnapCli.java | 1 - products/onap-elalto/auth/pom.xml | 41 ++++++++ products/onap-elalto/catalog/pom.xml | 41 ++++++++ products/onap-elalto/features/aai/pom.xml | 41 ++++++++ products/onap-elalto/features/msb/pom.xml | 41 ++++++++ products/onap-elalto/features/multicloud/pom.xml | 41 ++++++++ products/onap-elalto/features/policy/pom.xml | 41 ++++++++ products/onap-elalto/features/pom.xml | 122 ++++++++++++++++++++++ products/onap-elalto/features/sdc/pom.xml | 41 ++++++++ products/onap-elalto/features/sdnc/pom.xml | 41 ++++++++ products/onap-elalto/features/so/pom.xml | 41 ++++++++ products/onap-elalto/features/vfc/pom.xml | 41 ++++++++ products/onap-elalto/features/vnfsdk/pom.xml | 41 ++++++++ products/onap-elalto/pom.xml | 70 +++++++++++++ products/pom.xml | 9 ++ 15 files changed, 652 insertions(+), 1 deletion(-) create mode 100644 products/onap-elalto/auth/pom.xml create mode 100644 products/onap-elalto/catalog/pom.xml create mode 100644 products/onap-elalto/features/aai/pom.xml create mode 100644 products/onap-elalto/features/msb/pom.xml create mode 100644 products/onap-elalto/features/multicloud/pom.xml create mode 100644 products/onap-elalto/features/policy/pom.xml create mode 100644 products/onap-elalto/features/pom.xml create mode 100644 products/onap-elalto/features/sdc/pom.xml create mode 100644 products/onap-elalto/features/sdnc/pom.xml create mode 100644 products/onap-elalto/features/so/pom.xml create mode 100644 products/onap-elalto/features/vfc/pom.xml create mode 100644 products/onap-elalto/features/vnfsdk/pom.xml create mode 100644 products/onap-elalto/pom.xml (limited to 'products/onap-elalto') diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java index 75bf5d18..0c7082f8 100644 --- a/main/src/main/java/org/onap/cli/main/OnapCli.java +++ b/main/src/main/java/org/onap/cli/main/OnapCli.java @@ -43,7 +43,6 @@ import org.onap.cli.fw.registrar.OnapCommandRegistrar; import org.onap.cli.fw.store.OnapCommandExecutionStore; import org.onap.cli.fw.store.OnapCommandExecutionStore.ExecutionStoreContext; import org.onap.cli.fw.utils.OnapCommandDiscoveryUtils; -import org.onap.cli.fw.utils.OnapCommandUtils; import org.onap.cli.main.conf.OnapCliConstants; import org.onap.cli.main.interactive.StringCompleter; import org.onap.cli.main.utils.OnapCliArgsParser; diff --git a/products/onap-elalto/auth/pom.xml b/products/onap-elalto/auth/pom.xml new file mode 100644 index 00000000..5841e33a --- /dev/null +++ b/products/onap-elalto/auth/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-auth + cli/products/onap-elalto/auth + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/catalog/pom.xml b/products/onap-elalto/catalog/pom.xml new file mode 100644 index 00000000..4a0e99b9 --- /dev/null +++ b/products/onap-elalto/catalog/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-catalog + cli/products/onap-elalto/catalog + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/aai/pom.xml b/products/onap-elalto/features/aai/pom.xml new file mode 100644 index 00000000..e363b2ff --- /dev/null +++ b/products/onap-elalto/features/aai/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-aai + cli/products/onap-elalto/features/aai + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/msb/pom.xml b/products/onap-elalto/features/msb/pom.xml new file mode 100644 index 00000000..c288b7d8 --- /dev/null +++ b/products/onap-elalto/features/msb/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-msb + cli/products/onap-elalto/features/msb + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/multicloud/pom.xml b/products/onap-elalto/features/multicloud/pom.xml new file mode 100644 index 00000000..6766bd68 --- /dev/null +++ b/products/onap-elalto/features/multicloud/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-multicloud + cli/products/onap-elalto/features/multicloud + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/policy/pom.xml b/products/onap-elalto/features/policy/pom.xml new file mode 100644 index 00000000..36c69d74 --- /dev/null +++ b/products/onap-elalto/features/policy/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-policy + cli/products/onap-elalto/features/policy + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/pom.xml b/products/onap-elalto/features/pom.xml new file mode 100644 index 00000000..5d64a0c2 --- /dev/null +++ b/products/onap-elalto/features/pom.xml @@ -0,0 +1,122 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features + cli/products/onap-elalto/features + pom + + + aai + msb + sdc + policy + multicloud + vfc + sdnc + so + vnfsdk + + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.1.0 + + + copy-resource-script + install + + copy-resources + + + + ../../../../products/target/script + + + ${project.basedir}/src/main/resources/script + + *.* + + + + + + + copy-resource-conf + install + + copy-resources + + + + ../../../../products/target/conf + + + ${project.basedir}/src/main/resources/conf + + *.* + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-artifact + package + + copy + + + + + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.packaging} + + + + ../../../../products/target/lib + + + + + + + + diff --git a/products/onap-elalto/features/sdc/pom.xml b/products/onap-elalto/features/sdc/pom.xml new file mode 100644 index 00000000..f8a51ac2 --- /dev/null +++ b/products/onap-elalto/features/sdc/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-sdc + cli/products/onap-elalto/features/sdc + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/sdnc/pom.xml b/products/onap-elalto/features/sdnc/pom.xml new file mode 100644 index 00000000..e0821699 --- /dev/null +++ b/products/onap-elalto/features/sdnc/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-sdnc + cli/products/onap-elalto/features/sdnc + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/so/pom.xml b/products/onap-elalto/features/so/pom.xml new file mode 100644 index 00000000..70338a0e --- /dev/null +++ b/products/onap-elalto/features/so/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-so + cli/products/onap-elalto/features/so + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/vfc/pom.xml b/products/onap-elalto/features/vfc/pom.xml new file mode 100644 index 00000000..cfc52606 --- /dev/null +++ b/products/onap-elalto/features/vfc/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-vfc + cli/products/onap-elalto/features/vfc + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/features/vnfsdk/pom.xml b/products/onap-elalto/features/vnfsdk/pom.xml new file mode 100644 index 00000000..635d502c --- /dev/null +++ b/products/onap-elalto/features/vnfsdk/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-elalto-features + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto-features-vnfsdk + cli/products/onap-elalto/features/vnfsdk + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/onap-elalto/pom.xml b/products/onap-elalto/pom.xml new file mode 100644 index 00000000..883f5558 --- /dev/null +++ b/products/onap-elalto/pom.xml @@ -0,0 +1,70 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products + 4.0.0-SNAPSHOT + + + cli-products-onap-elalto + cli/products/onap-elalto + pom + + + auth + catalog + features + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-artifact + package + + copy + + + + + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.packaging} + + + + ../../../products/target/lib + + + + + + + + diff --git a/products/pom.xml b/products/pom.xml index b7e8f651..733a4be9 100644 --- a/products/pom.xml +++ b/products/pom.xml @@ -71,6 +71,15 @@ onap-casablanca + + onap-elalto + + false + + + onap-elalto + + eol -- cgit 1.2.3-korg From 5d74ae0f9f0fdc987f7c4ebadda8f45ef5c13bca Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 7 Aug 2019 11:08:44 +0530 Subject: Add basic logout elalto Issue-ID: CLI-169 Change-Id: Ia2260c45e00db43943a89a070b3c868f8bffb368 Signed-off-by: Kanagaraj Manickam k00365106 --- .../cmd/auth/OnapBasicAuthLogoutCommandElalto.java | 24 +++++++++++++++ .../services/org.onap.cli.fw.cmd.OnapCommand | 2 +- .../open-cli-schema/basic-logout-onap-elalto.yaml | 34 ++++++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandElalto.java create mode 100644 products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-logout-onap-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandElalto.java b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandElalto.java new file mode 100644 index 00000000..38e93f1f --- /dev/null +++ b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandElalto.java @@ -0,0 +1,24 @@ +/* + * Copyright 2019 Huawei Technologies Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.cli.cmd.auth; + +import org.onap.cli.fw.http.cmd.BasicAuthLogoutCommand; +import org.onap.cli.fw.schema.OnapCommandSchema; + +@OnapCommandSchema(schema = "basic-logout-onap-elalto.yaml") +public class OnapBasicAuthLogoutCommandElalto extends BasicAuthLogoutCommand { +} diff --git a/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand index 8f717287..5621fa53 100644 --- a/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand +++ b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand @@ -13,4 +13,4 @@ # limitations under the License. org.onap.cli.cmd.auth.OnapBasicAuthLoginCommandElalto - +org.onap.cli.cmd.auth.OnapBasicAuthLogoutCommandElalto diff --git a/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-logout-onap-elalto.yaml b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-logout-onap-elalto.yaml new file mode 100644 index 00000000..76789b0d --- /dev/null +++ b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-logout-onap-elalto.yaml @@ -0,0 +1,34 @@ +# Copyright 2019 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 + +name: basic-logout + +description: ONAP basic logout auth command + +info: + product: onap-elalto + service: basic-auth + type: auth + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: host-username + is_include: false + - name: host-password + is_include: false + - name: no-auth + is_include: false \ No newline at end of file -- cgit 1.2.3-korg From 980fd837d3482eeda8703a7a052dbd08ff5a1935 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 7 Aug 2019 11:09:51 +0530 Subject: Add sdc login elato Issue-ID: CLI-169 Change-Id: I812465a208621316698eea99106d89718511fa94 Signed-off-by: Kanagaraj Manickam k00365106 --- .../auth/OnapSdcBasicAuthLoginCommandElalto.java | 24 +++++++++++ .../services/org.onap.cli.fw.cmd.OnapCommand | 1 + .../basic-login-onap-sdc-elalto.yaml | 50 ++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandElalto.java create mode 100644 products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandElalto.java b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandElalto.java new file mode 100644 index 00000000..f0babea1 --- /dev/null +++ b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandElalto.java @@ -0,0 +1,24 @@ +/* + * Copyright 2019 Huawei Technologies Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.cli.cmd.auth; + +import org.onap.cli.fw.http.cmd.BasicAuthLoginCommand; +import org.onap.cli.fw.schema.OnapCommandSchema; + +@OnapCommandSchema(schema = "basic-login-onap-sdc-elalto.yaml") +public class OnapSdcBasicAuthLoginCommandElalto extends BasicAuthLoginCommand { +} diff --git a/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand index 5621fa53..26f5aae6 100644 --- a/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand +++ b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand @@ -14,3 +14,4 @@ org.onap.cli.cmd.auth.OnapBasicAuthLoginCommandElalto org.onap.cli.cmd.auth.OnapBasicAuthLogoutCommandElalto +org.onap.cli.cmd.auth.OnapSdcBasicAuthLoginCommandElalto diff --git a/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-elalto.yaml b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-elalto.yaml new file mode 100644 index 00000000..55006d54 --- /dev/null +++ b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-elalto.yaml @@ -0,0 +1,50 @@ +# Copyright 2019 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 + +name: sdc-basic-login + +description: ONAP basic login auth command + + +info: + product: onap-elalto + service: sdc-basic-auth + type: auth + author: ONAP CLI Team onap-discuss@lists.onap.org + + +results: + direction: portrait + attributes: + - name: Authorization + description: Authorization + scope: short + type: string + - name: X-TransactionId + description: X-TransactionId + scope: short + type: string + default_value: req-$s{uuid} + - name: X-FromAppId + description: X-FromAppId + scope: short + type: string + default_value: ONAP CLI + - name: USER_ID + description: USER_ID for sdc + scope: short + type: string + default_value: ${host-username} \ No newline at end of file -- cgit 1.2.3-korg From 6a0d36293116fc640e00da79c6517183cfb22689 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 7 Aug 2019 11:10:37 +0530 Subject: Add policy login elalto Issue-ID: CLI-169 Change-Id: I99b6c01e398af3f7e390763c3f83a5d94e5b589e Signed-off-by: Kanagaraj Manickam k00365106 --- .../OnapPolicyBasicAuthLoginCommandElalto.java | 24 ++++++++++++ .../services/org.onap.cli.fw.cmd.OnapCommand | 1 + .../basic-login-onap-policy-elalto.yaml | 45 ++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapPolicyBasicAuthLoginCommandElalto.java create mode 100644 products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-policy-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapPolicyBasicAuthLoginCommandElalto.java b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapPolicyBasicAuthLoginCommandElalto.java new file mode 100644 index 00000000..17d7d04a --- /dev/null +++ b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapPolicyBasicAuthLoginCommandElalto.java @@ -0,0 +1,24 @@ +/* + * Copyright 2019 Huawei Technologies Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.cli.cmd.auth; + +import org.onap.cli.fw.http.cmd.BasicAuthLoginCommand; +import org.onap.cli.fw.schema.OnapCommandSchema; + +@OnapCommandSchema(schema = "basic-login-onap-policy-elalto.yaml") +public class OnapPolicyBasicAuthLoginCommandElalto extends BasicAuthLoginCommand { +} diff --git a/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand index 26f5aae6..0447158b 100644 --- a/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand +++ b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand @@ -15,3 +15,4 @@ org.onap.cli.cmd.auth.OnapBasicAuthLoginCommandElalto org.onap.cli.cmd.auth.OnapBasicAuthLogoutCommandElalto org.onap.cli.cmd.auth.OnapSdcBasicAuthLoginCommandElalto +org.onap.cli.cmd.auth.OnapPolicyBasicAuthLoginCommandElalto diff --git a/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-policy-elalto.yaml b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-policy-elalto.yaml new file mode 100644 index 00000000..0916c202 --- /dev/null +++ b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-policy-elalto.yaml @@ -0,0 +1,45 @@ +# Copyright 2019 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 + +name: policy-basic-login + +description: ONAP basic login auth command + + +info: + product: onap-elalto + service: policy-basic-auth + type: auth + author: ONAP CLI Team onap-discuss@lists.onap.org + + +results: + direction: portrait + attributes: + - name: Authorization + description: Authorization + scope: short + type: string + - name: Environment + description: Environment + scope: short + type: string + default_value: TEST + - name: ClientAuth + description: Client Auth + scope: short + type: string + default_value: cHl0aG9uOnRlc3Q= -- cgit 1.2.3-korg