diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-08-30 17:21:57 +0530 |
---|---|---|
committer | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2017-08-30 12:37:27 +0000 |
commit | f548d5e40b755bc9f6537dae66c161d2f0262b17 (patch) | |
tree | ecc6a3d321ffe2e130403b59ba4267064b501a0a /plugins/aai/src/test | |
parent | b5090c9d0808ffc44281ca250ef528d79030dce8 (diff) |
Update the customer commands for 1.1
CLI-13
Change-Id: I1e95e2e29bec719cf25931e1468f92136072577e
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/test')
12 files changed, 145 insertions, 9 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-list-sample-1.1.yaml index 95ea4112..de1555d7 100644 --- a/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-list-sample-1.1.yaml +++ b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-list-sample-1.1.yaml @@ -1,16 +1,16 @@ onap_cli_sample_version: 1.0 name: cloud-list -version: onap-1.0 +version: onap-1.1 samples: sample1: name: List the configured clouds in onap - input: -h https://locahost:8443 -u AAI -p AAI --long + input: -h https://locahost:8443 -u AAI -p AAI output: | - =============================================================================================== - |cloud | region | tenant | tenant-id | customer| service| - =============================================================================================== - |OpenStack | RegionOne | ONAP | 3385e44e-b3bf-4fb8-a83e-4a4097cf8978 | mrkanag | vFW | - ----------------------------------------------------------------------------------------------- - |OpenStack | RegionTwo | ONAP-2 | 89386e6e-a16b-4091-add7-3119064f8058 | mrkanag | vLB | - ===============================================================================================
\ No newline at end of file + +--------------------------------+------------------------------------+ + |cloud |region | + +--------------------------------+------------------------------------+ + |example-cloud-owner-val-44086 |example-cloud-region-id-val-67393 | + +--------------------------------+------------------------------------+ + |att-aic |AAIAIC25 | + +--------------------------------+------------------------------------+
\ No newline at end of file diff --git a/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-create-sample-1.1.yaml new file mode 100644 index 00000000..d5332115 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-create-sample-1.1.yaml @@ -0,0 +1,8 @@ +onap_cli_sample_version: 1.0 + +name: customer-create +version: onap-1.1 +samples: + sample1: + name: Create a customer + input: -h https://locahost:8443 -u AAI -p AAI -x customer-1 -y subscriber-1 diff --git a/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-sample-1.1.yaml new file mode 100644 index 00000000..9f80da02 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-delete-sample-1.1.yaml @@ -0,0 +1,9 @@ +onap_cli_sample_version: 1.0 + +name: customer-delete +version: onap-1.1 +samples: + sample1: + name: Delete the customer + input: -h https://locahost:8443 -u AAI -p AAI -x customer-1 -y 1504085129922 + diff --git a/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-list-sample-1.1.yaml new file mode 100644 index 00000000..feb4d7ce --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-list-sample-1.1.yaml @@ -0,0 +1,18 @@ +onap_cli_sample_version: 1.0 + +name: customer-list +version: onap-1.1 +samples: + sample1: + name: List the configured customers in onap + input: -h https://locahost:8443 -u AAI -p AAI + output: | + +--------------------------------------+------------------+ + |name |resource-version | + +--------------------------------------+------------------+ + |example-global-customer-id-val-8741 |1504017436899 | + +--------------------------------------+------------------+ + |example-global-customer-id-val-87416 |1504017249493 | + +--------------------------------------+------------------+ + |customer-1 |1504085129922 | + +--------------------------------------+------------------+ diff --git a/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-show-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-show-sample-1.1.yaml new file mode 100644 index 00000000..8c2e8dbd --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/customer/customer-show-sample-1.1.yaml @@ -0,0 +1,23 @@ +onap_cli_sample_version: 1.0 + +name: customer-show +version: onap-1.1 +samples: + sample1: + name: Show complete details of a customer + input: -h https://locahost:8443 -u AAI -p AAI -x example-global-customer-id-val-8741 --long + output: | + +--------------------------------------+----------------------------------+------------------+------------------------------------+ + |name |subscriber-name |resource-version |subscriber-type | + +--------------------------------------+----------------------------------+------------------+------------------------------------+ + |example-global-customer-id-val-8741 |example-subscriber-name-val-2447 |1504017436899 |example-subscriber-type-val-24368 | + +--------------------------------------+----------------------------------+------------------+------------------------------------+ + sample2: + name: Show basic details of a customer + input: -h https://locahost:8443 -u AAI -p AAI -x example-global-customer-id-val-8741 + output: | + +--------------------------------------+----------------------------------+ + |name |subscriber-name | + +--------------------------------------+----------------------------------+ + |example-global-customer-id-val-8741 |example-subscriber-name-val-2447 | + +--------------------------------------+----------------------------------+ diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml new file mode 100644 index 00000000..a9d01569 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml @@ -0,0 +1,8 @@ +onap_cli_sample_version: 1.0 + +name: service-type-create +version: onap-1.1 +samples: + sample1: + name: Create a service type + input: -h https://locahost:8443 -u AAI -p AAI -x vTest -y 26ab7af6-96cc-4c4e-814a-e533af4ef9f6 diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-sample-1.1.yaml new file mode 100644 index 00000000..46626a29 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-delete-sample-1.1.yaml @@ -0,0 +1,9 @@ +onap_cli_sample_version: 1.0 + +name: service-type-delete +version: onap-1.1 +samples: + sample1: + name: Delete the service type + input: -h https://locahost:8443 -u AAI -p AAI -x 26ab7af6-96cc-4c4e-814a-e533af4ef9f6 -y 1504086172338 + diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-sample-1.1.yaml new file mode 100644 index 00000000..01ef2b93 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-list-sample-1.1.yaml @@ -0,0 +1,14 @@ +onap_cli_sample_version: 1.0 + +name: service-type-list +version: onap-1.1 +samples: + sample1: + name: List the configured service types in onap + input: -h https://locahost:8443 -u AAI -p AAI + output: | + +--------------------------------------+--------------+------------------+ + |service-type-id |service-type |resource-version | + +--------------------------------------+--------------+------------------+ + |26ab7af6-96cc-4c4e-814a-e533af4ef9f6 |vTest |1504086172338 | + +--------------------------------------+--------------+------------------+ diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml new file mode 100644 index 00000000..c2777458 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml @@ -0,0 +1,8 @@ +onap_cli_sample_version: 1.0 + +name: subscription-create +version: onap-1.1 +samples: + sample1: + name: Create a subscription + input: -h https://locahost:8443 -u AAI -p AAI -x customer-2 -y subscriber-2 -z att-aic -r AAIAIC25 -c 26ab7af6-96cc-4c4e-814a-e533af4ef9f6 -e vTest diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml new file mode 100644 index 00000000..5943ab15 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml @@ -0,0 +1,15 @@ +onap_cli_sample_version: 1.0 + +name: subscription-list +version: onap-1.1 +samples: + sample1: + name: List the configured subscription in onap for a given customer + input: -h https://locahost:8443 -u AAI -p AAI -x customer-2 + output: | + +--------------+ + |service-type | + +--------------+ + |vTest | + +--------------+ + diff --git a/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-create-sample-1.1.yaml new file mode 100644 index 00000000..958e9040 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-create-sample-1.1.yaml @@ -0,0 +1,8 @@ +onap_cli_sample_version: 1.0 + +name: tenant-create +version: onap-1.1 +samples: + sample1: + name: Create a tenant under given cloud region + input: -h https://locahost:8443 -u AAI -p AAI -x att-aic -y AAIAIC25 -z 8bcf4466-b092-473f-889b-7f40efb5a322 -r tenant-2 diff --git a/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-list-sample-1.1.yaml new file mode 100644 index 00000000..d609a08b --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-list-sample-1.1.yaml @@ -0,0 +1,16 @@ +onap_cli_sample_version: 1.0 + +name: tenant-list +version: onap-1.1 +samples: + sample1: + name: List the tenant under given cloud region in onap + input: -h https://locahost:8443 -u AAI -p AAI -x att-aic -y AAIAIC25 + output: | + +--------------------------------------+--------------+------------------+ + |tenant-id |tenant-name |resource-version | + +--------------------------------------+--------------+------------------+ + |26ab7af6-96cc-4c4e-814a-e533af4ef9f6 |test |1504091074807 | + +--------------------------------------+--------------+------------------+ + |8bcf4466-b092-473f-889b-7f40efb5a322 |tenant-2 |1504093061465 | + +--------------------------------------+--------------+------------------+ |