aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/aai/src/test/resources/onap-cli-sample
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-01 16:28:35 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-01 16:29:22 +0530
commitb49b2acb182f93656548b0b09f72ed5918f5d88f (patch)
tree95f1a7a97200d1f6a0482f2d0d8ca02b7028fceb /plugins/aai/src/test/resources/onap-cli-sample
parent9618946f4a8a3a71703669db772356b301317d10 (diff)
Subscription management commands
CLI-13 Change-Id: I850b48d0e1974a087d1dd29550f4f726cb85f4d2 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/test/resources/onap-cli-sample')
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-sample-1.1.yaml8
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-delete-sample-1.1.yaml8
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-list-sample-1.1.yaml16
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml2
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-sample-1.1.yaml8
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml13
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-create-sample-1.1.yaml2
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-delete-sample-1.1.yaml8
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-list-sample-1.1.yaml7
9 files changed, 53 insertions, 19 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-sample-1.1.yaml
new file mode 100644
index 00000000..6a5c55c0
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-create-sample-1.1.yaml
@@ -0,0 +1,8 @@
+onap_cli_sample_version: 1.0
+
+name: cloud-create
+version: onap-1.1
+samples:
+ sample1:
+ name: Create a cloud region in onap
+ input: -h https://locahost:8443 -u AAI -p AAI -x abc-xyz -y ABCXYZ25
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-delete-sample-1.1.yaml
new file mode 100644
index 00000000..c84b8eca
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/cloud-region/cloud-delete-sample-1.1.yaml
@@ -0,0 +1,8 @@
+onap_cli_sample_version: 1.0
+
+name: cloud-delete
+version: onap-1.1
+samples:
+ sample1:
+ name: Delete the cloud region in onap
+ input: -h https://locahost:8443 -u AAI -p AAI -x abc-xyz -y ABCXYZ25 -z 1504257554519 \ No newline at end of file
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 de1555d7..ada90903 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
@@ -7,10 +7,12 @@ samples:
name: List the configured clouds in onap
input: -h https://locahost:8443 -u AAI -p AAI
output: |
- +--------------------------------+------------------------------------+
- |cloud |region |
- +--------------------------------+------------------------------------+
- |example-cloud-owner-val-44086 |example-cloud-region-id-val-67393 |
- +--------------------------------+------------------------------------+
- |att-aic |AAIAIC25 |
- +--------------------------------+------------------------------------+ \ No newline at end of file
+ +--------------------------------+------------------------------------+------------------+
+ |cloud |region |resource-version |
+ +--------------------------------+------------------------------------+------------------+
+ |example-cloud-owner-val-44086 |example-cloud-region-id-val-67393 |1503503677953 |
+ +--------------------------------+------------------------------------+------------------+
+ |att-aic |AAIAIC25 |1503380675 |
+ +--------------------------------+------------------------------------+------------------+
+ |abc-xyz |ABCXYZ25 |1504257554519 |
+ +--------------------------------+------------------------------------+------------------+
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
index c2777458..b33cf597 100644
--- 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
@@ -5,4 +5,4 @@ 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
+ input: -h https://locahost:8443 -u AAI -p AAI -x customer-4 -y subscriber-4 -z abc-xyz -r ABCXYZ25 -c 8bcf4466-b092-473f-889b-7f40efb5a323 -e vTest
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-sample-1.1.yaml
new file mode 100644
index 00000000..3a040d7e
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-delete-sample-1.1.yaml
@@ -0,0 +1,8 @@
+onap_cli_sample_version: 1.0
+
+name: subscription-delete
+version: onap-1.1
+samples:
+ sample1:
+ name: Delete the subscription
+ input: -h https://locahost:8443 -u AAI -p AAI -x customer-4 -y vTest -g 1504258356743
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
index 5943ab15..c4c6f206 100644
--- 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
@@ -5,11 +5,12 @@ 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
+ input: -h https://locahost:8443 -u AAI -p AAI -x customer-4
output: |
- +--------------+
- |service-type |
- +--------------+
- |vTest |
- +--------------+
+ +--------------+------------------+
+ |service-type |resource-version |
+ +--------------+------------------+
+ |vTest |1504258356743 |
+ +--------------+------------------+
+
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
index 958e9040..8a2da490 100644
--- 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
@@ -5,4 +5,4 @@ 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
+ input: -h https://locahost:8443 -u AAI -p AAI -x abc-xyz -y ABCXYZ25 -z 8bcf4466-b092-473f-889b-7f40efb5a323 -r tenant-3
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-delete-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-delete-sample-1.1.yaml
new file mode 100644
index 00000000..44026ec3
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/tenant/tenant-delete-sample-1.1.yaml
@@ -0,0 +1,8 @@
+onap_cli_sample_version: 1.0
+
+name: tenant-delete
+version: onap-1.1
+samples:
+ sample1:
+ name: Delete the tenant under given cloud region
+ input: -h https://locahost:8443 -u AAI -p AAI -x abc-xyz -y ABCXYZ25 -z 8bcf4466-b092-473f-889b-7f40efb5a323 -r 1504258015611
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
index d609a08b..4348f6eb 100644
--- 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
@@ -5,12 +5,11 @@ 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
+ input: -h https://locahost:8443 -u AAI -p AAI -x abc-xyz -y ABCXYZ25
output: |
+--------------------------------------+--------------+------------------+
|tenant-id |tenant-name |resource-version |
+--------------------------------------+--------------+------------------+
- |26ab7af6-96cc-4c4e-814a-e533af4ef9f6 |test |1504091074807 |
- +--------------------------------------+--------------+------------------+
- |8bcf4466-b092-473f-889b-7f40efb5a322 |tenant-2 |1504093061465 |
+ |8bcf4466-b092-473f-889b-7f40efb5a323 |tenant-3 |1504258015611 |
+--------------------------------------+--------------+------------------+
+