diff options
Diffstat (limited to 'products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex')
10 files changed, 124 insertions, 227 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-moco.json index 33d6378d..5f27706e 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-moco.json +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-moco.json @@ -1,20 +1,20 @@ [ { "request" : { "method" : "put", - "uri" : "/aai/v14//aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-07/relationship-list/relationship", + "uri" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/relationship-list/relationship", "headers" : { "Authorization" : "Basic QUFJOkFBSQ==", "X-FromAppId" : "ONAP CLI", "Accept" : "application/json", - "X-TransactionId" : "req-743a8d74-cb83-458b-ace3-05b10a169c0f", + "X-TransactionId" : "req-49188d12-6a2d-4e85-90db-c004e4d542b5", "Content-Type" : "application/json" }, "json" : { "related-to" : "complex", - "related-link" : "/aai/v11/cloud-infrastructure/complexes/complex/clli3", + "related-link" : "/aai/v11/cloud-infrastructure/complexes/complex/ocomp-region", "relationship-data" : [ { "relationship-key" : "complex.physical-location-id", - "relationship-value" : "clli3" + "relationship-value" : "ocomp-region" } ] } }, diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-sample.yaml index d8f02401..7041668a 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-sample.yaml +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-dublin-sample.yaml @@ -1,22 +1,10 @@ -# Copyright © Intel Corporation 2019 -# -# 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_sample_version: 1.0 - name: complex-associate - version: onap-dublin - samples: - sample1: - name: complex-associate - input: -x clli3 -y ONAP-POD-01-Rail-07 -z CloudOwner - moco: complex-associate-schema-dublin-moco.json - output:
\ No newline at end of file +open_cli_sample_version: 1.0 +name: complex-associate +version: onap-dublin +samples: + sample1: + name: complex-associate + input: --format json --cloud-region RegionOVP --cloud-owner OCOMP --complex-name ocomp-region + moco: complex-associate-schema-dublin-moco.json + output: | + [{}] diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json index 350a02e0..3b4a94f5 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json @@ -1,31 +1,31 @@ [ { "request" : { "method" : "put", - "uri" : "/aai/v14//aai/v14/cloud-infrastructure/complexes/complex/clli3", + "uri" : "/aai/v14/cloud-infrastructure/complexes/complex/ocomp-region", "headers" : { "Authorization" : "Basic QUFJOkFBSQ==", "X-FromAppId" : "ONAP CLI", "Accept" : "application/json", - "X-TransactionId" : "req-f84bd111-614f-4f6e-9bea-f076a8b63810", + "X-TransactionId" : "req-230ff595-12b3-480a-86c4-f5e3b1f8d5b0", "Content-Type" : "application/json" }, "json" : { - "physical-location-id" : "clli3", - "data-center-code" : "code6", - "complex-name" : "clli3", - "identity-url" : "url", + "physical-location-id" : "ocomp-region", + "data-center-code" : "ocomp", + "complex-name" : "ocomp-region", + "identity-url" : "http://10.12.11.1:5000/v3", "physical-location-type" : "phy_type", - "street1" : "street1", - "street2" : "street2", - "city" : "HIlls", - "state" : "CA", - "postal-code" : "88888", - "country" : "usa", - "region" : "region_val", - "latitude" : "10.2", - "longitude" : "30.8", - "elevation" : "elev", - "lata" : "lata" + "street1" : "ocomp-street1", + "street2" : "ocomp-street2", + "city" : "ocomp-city", + "state" : "ocomp-state", + "postal-code" : "001481", + "country" : "abc", + "region" : "onap", + "latitude" : "1.0", + "longitude" : "1.0", + "elevation" : "ocomp-elelation", + "lata" : "ocomp-lata" } }, "response" : { diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml index 044d5f6f..c748579b 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml @@ -1,22 +1,10 @@ -# Copyright © Intel Corporation 2019 -# -# 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_sample_version: 1.0 - name: complex-create - version: onap-dublin - samples: - sample1: - name: complex-create - input: -j street2 -r phy_type -x clli3 -y code6 -lt 10.2 -l region_val -i street1 -lo 30.8 -S CA -la lata -g HIlls -w 88888 -z clli3 -k usa -o elev -q url - moco: complex-create-schema-dublin-moco.json - output:
\ No newline at end of file +open_cli_sample_version: 1.0 +name: complex-create +version: onap-dublin +samples: + sample1: + name: complex-create + input: --format json --city ocomp-city --data-center-code ocomp --street1 ocomp-street1 --street2 ocomp-street2 --physical-location-id ocomp-region --identity-url http://10.12.11.1:5000/v3 --lata ocomp-lata --elevation ocomp-elelation --state ocomp-state --physical-location-type phy_type --longitude 1.0 --country abc --latitude 1.0 --complex-name ocomp-region --postal-code 001481 --region onap + moco: complex-create-schema-dublin-moco.json + output: | + [{}] diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-moco.json index f8b238b3..ccf4446e 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-moco.json +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-moco.json @@ -1,12 +1,12 @@ [ { "request" : { "method" : "delete", - "uri" : "/aai/v14//aai/v14/cloud-infrastructure/complexes/complex/clli3", + "uri" : "/aai/v14/cloud-infrastructure/complexes/complex/ocomp-region", "headers" : { "Authorization" : "Basic QUFJOkFBSQ==", "X-FromAppId" : "ONAP CLI", "Accept" : "application/json", - "X-TransactionId" : "req-26090fb4-0d07-4272-bced-b14574420451", + "X-TransactionId" : "req-b1e0cf51-157c-40f5-a966-157ba2c88655", "Content-Type" : "application/json" }, "json" : null diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-sample.yaml index 7ba3c306..516d27c3 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-sample.yaml +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-delete-schema-dublin-sample.yaml @@ -1,22 +1,10 @@ -# Copyright © Intel Corporation 2019 -# -# 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_sample_version: 1.0 - name: complex-delete - version: onap-dublin - samples: - sample1: - name: complex-delete - input: -x clli3 -y 1550771530582 - moco: complex-delete-schema-dublin-moco.json - output:
\ No newline at end of file +open_cli_sample_version: 1.0 +name: complex-delete +version: onap-dublin +samples: + sample1: + name: complex-delete + input: --format json --complex-name ocomp-region --resource-version 1567068618154 + moco: complex-delete-schema-dublin-moco.json + output: | + [{}] diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-disassociate-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-disassociate-schema-dublin-moco.json new file mode 100644 index 00000000..5f102ff1 --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-disassociate-schema-dublin-moco.json @@ -0,0 +1,25 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/relationship-list/relationship", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-26265a69-7c6c-4315-bddb-0e9548880b15", + "Content-Type" : "application/json" + }, + "json" : { + "related-to" : "complex", + "related-link" : "/aai/v11/cloud-infrastructure/complexes/complex/ocomp-region", + "relationship-data" : [ { + "relationship-key" : "complex.physical-location-id", + "relationship-value" : "ocomp-region" + } ] + } + }, + "response" : { + "status" : 204, + "json" : null + } +} ]
\ No newline at end of file diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-disassociate-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-disassociate-schema-dublin-sample.yaml new file mode 100644 index 00000000..3bb86584 --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-disassociate-schema-dublin-sample.yaml @@ -0,0 +1,10 @@ +open_cli_sample_version: 1.0 +name: complex-disassociate +version: onap-dublin +samples: + sample1: + name: complex-disassociate + input: --format json --complex-name ocomp-region --cloud-owner OCOMP --cloud-region RegionOVP + moco: complex-disassociate-schema-dublin-moco.json + output: | + [{}] diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-moco.json index 40a8d7f3..134e1ae0 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-moco.json +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-moco.json @@ -1,12 +1,12 @@ [ { "request" : { "method" : "get", - "uri" : "/aai/v14//aai/v14/cloud-infrastructure/complexes/", + "uri" : "/aai/v14/cloud-infrastructure/complexes/", "headers" : { "Authorization" : "Basic QUFJOkFBSQ==", "X-FromAppId" : "ONAP CLI", "Accept" : "application/json", - "X-TransactionId" : "req-6752433d-3b43-41a3-9547-9a58a9f0f8f5", + "X-TransactionId" : "req-6d8eccd5-8542-47b5-8f88-a6542e88a3ac", "Content-Type" : "application/json" }, "json" : null @@ -15,72 +15,27 @@ "status" : 200, "json" : { "complex" : [ { - "physical-location-id" : "clli1", - "data-center-code" : "example-data-center-code-val-5556", - "complex-name" : "clli1", - "identity-url" : "example-identity-url-val-56898", - "resource-version" : "1547842499867", - "physical-location-type" : "example-physical-location-type-val-7608", - "street1" : "example-street1-val-34205", - "street2" : "example-street2-val-99210", - "city" : "example-city-val-27150", - "state" : "example-state-val-59487", - "postal-code" : "00000", - "country" : "USA", - "region" : "example-region-val-13893", - "latitude" : "32.89948", - "longitude" : "97.045443", + "physical-location-id" : "clli2", + "data-center-code" : "example-data-center-code-val-6667", + "complex-name" : "clli2", + "identity-url" : "example-identity-url-val-28399", + "resource-version" : "1564454689109", + "physical-location-type" : "example-physical-location-type-val-28399", + "street1" : "example-street1-val-28399", + "street2" : "example-street2-val-28399", + "city" : "example-city-val-28399", + "state" : "example-state-val-28399", + "postal-code" : "example-postal-code-val-28399", + "country" : "example-country-val-28399", + "region" : "RegionOne", + "latitude" : "1111", + "longitude" : "2222", "elevation" : "example-elevation-val-28399", "lata" : "example-lata-val-28399", "relationship-list" : { "relationship" : [ { "related-to" : "cloud-region", "relationship-label" : "org.onap.relationships.inventory.LocatedIn", - "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-05", - "relationship-data" : [ { - "relationship-key" : "cloud-region.cloud-owner", - "relationship-value" : "CloudOwner" - }, { - "relationship-key" : "cloud-region.cloud-region-id", - "relationship-value" : "ONAP-POD-01-Rail-05" - } ], - "related-to-property" : [ { - "property-key" : "cloud-region.owner-defined-type", - "property-value" : "t1" - } ] - }, { - "related-to" : "cloud-region", - "relationship-label" : "org.onap.relationships.inventory.LocatedIn", - "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-04", - "relationship-data" : [ { - "relationship-key" : "cloud-region.cloud-owner", - "relationship-value" : "CloudOwner" - }, { - "relationship-key" : "cloud-region.cloud-region-id", - "relationship-value" : "ONAP-POD-01-Rail-04" - } ], - "related-to-property" : [ { - "property-key" : "cloud-region.owner-defined-type", - "property-value" : "t1" - } ] - }, { - "related-to" : "cloud-region", - "relationship-label" : "org.onap.relationships.inventory.LocatedIn", - "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-06", - "relationship-data" : [ { - "relationship-key" : "cloud-region.cloud-owner", - "relationship-value" : "CloudOwner" - }, { - "relationship-key" : "cloud-region.cloud-region-id", - "relationship-value" : "ONAP-POD-01-Rail-06" - } ], - "related-to-property" : [ { - "property-key" : "cloud-region.owner-defined-type", - "property-value" : "t1" - } ] - }, { - "related-to" : "cloud-region", - "relationship-label" : "org.onap.relationships.inventory.LocatedIn", "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne", "relationship-data" : [ { "relationship-key" : "cloud-region.cloud-owner", @@ -91,64 +46,28 @@ } ], "related-to-property" : [ { "property-key" : "cloud-region.owner-defined-type", - "property-value" : "t1" - } ] - } ] - } - }, { - "physical-location-id" : "clli2", - "data-center-code" : "code6", - "complex-name" : "clli2", - "identity-url" : "url", - "resource-version" : "1551206645488", - "physical-location-type" : "phy_type", - "street1" : "street1", - "street2" : "street2", - "city" : "HIlls", - "state" : "OR", - "postal-code" : "88889", - "country" : "ENG", - "region" : "region_val", - "latitude" : "100.2", - "longitude" : "30.8", - "elevation" : "elev", - "lata" : "lata", - "relationship-list" : { - "relationship" : [ { - "related-to" : "cloud-region", - "relationship-label" : "org.onap.relationships.inventory.LocatedIn", - "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-07", - "relationship-data" : [ { - "relationship-key" : "cloud-region.cloud-owner", - "relationship-value" : "CloudOwner" - }, { - "relationship-key" : "cloud-region.cloud-region-id", - "relationship-value" : "ONAP-POD-01-Rail-07" - } ], - "related-to-property" : [ { - "property-key" : "cloud-region.owner-defined-type", - "property-value" : "t1" + "property-value" : "OwnerType" } ] } ] } }, { - "physical-location-id" : "clli3", - "data-center-code" : "code6", - "complex-name" : "clli3", - "identity-url" : "url", - "resource-version" : "1552414833543", + "physical-location-id" : "ocomp-region", + "data-center-code" : "ocomp", + "complex-name" : "ocomp-region", + "identity-url" : "http://10.12.11.1:5000/v3", + "resource-version" : "1567068618154", "physical-location-type" : "phy_type", - "street1" : "street1", - "street2" : "street2", - "city" : "HIlls", - "state" : "CA", - "postal-code" : "88888", - "country" : "NIG", - "region" : "region_val", - "latitude" : "10.2", - "longitude" : "30.8", - "elevation" : "elev", - "lata" : "lata" + "street1" : "ocomp-street1", + "street2" : "ocomp-street2", + "city" : "ocomp-city", + "state" : "ocomp-state", + "postal-code" : "001481", + "country" : "abc", + "region" : "onap", + "latitude" : "1.0", + "longitude" : "1.0", + "elevation" : "ocomp-elelation", + "lata" : "ocomp-lata" } ] } } diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-sample.yaml index c8320fd5..84a1febc 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-sample.yaml +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-list-schema-dublin-sample.yaml @@ -1,31 +1,10 @@ -# Copyright © Intel Corporation 2019 -# -# 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_sample_version: 1.0 name: complex-list version: onap-dublin samples: sample1: name: complex-list - input: + input: --format json moco: complex-list-schema-dublin-moco.json output: | - +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+ - |complex-name |data-center-code |resource-version |country |region |latitude |longitude |elevation | - +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+ - |clli1 |example-data-center-code-val-5556 |1547842499867 |USA |example-region-val-13893 |32.89948 |97.045443 |example-elevation-val-28399 | - +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+ - |clli2 |code6 |1551206645488 |ENG |region_val |100.2 |30.8 |elev | - +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+ - |clli3 |code6 |1552414833543 |NIG |region_val |10.2 |30.8 |elev | - +--------------+------------------------------------+------------------+----------+--------------------------+----------+------------+------------------------------+ + [{"elevation":"example-elevation-val-28399","complex-name":"clli2","country":"example-country-val-28399","resource-version":"1564454689109","latitude":"1111","data-center-code":"example-data-center-code-val-6667","region":"RegionOne","longitude":"2222"},{"elevation":"ocomp-elelation","complex-name":"ocomp-region","country":"abc","resource-version":"1567068618154","latitude":"1.0","data-center-code":"ocomp","region":"onap","longitude":"1.0"}] |