diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2017-09-20 17:15:12 +0530 |
---|---|---|
committer | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2017-09-20 17:15:12 +0530 |
commit | c2e27669b6e127ab9b9082926c91d47cc9cf379a (patch) | |
tree | 14cd07bdc21c2c62dc5aadfb03d07fc66cc5c4e3 | |
parent | fda4c99bf835bdcb41fec81ab2f7cf87ed6fafde (diff) |
Fix yaml for microservice-create
Fix yaml to fix microservice-create command.
Change-Id: I3cd7c5d803d0289e1fbb5df7aff49b5f0ddbe593
Issue-ID: CLI-45
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
-rw-r--r-- | plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml b/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml index dd3aead1..c8b7e9be 100644 --- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml +++ b/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml @@ -5,6 +5,7 @@ version: onap-1.1 service: name: msb version: v1 + auth: none parameters: - name: service-name @@ -58,15 +59,11 @@ results: description: Onap service running nodes scope: long type: string - - name: location - description: Onap service location - scope: long - type: url http: request: uri: /services method: POST - body: '{"serviceName":"${service-name}","version":"${service-version}","url":"${service-url}","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}' + body: '{"serviceName":"${service-name}","version":"${service-version}","url":"${service-url}","protocol":"REST","visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}' headers: queries: createOrUpdate: ${create-or-update} @@ -79,7 +76,6 @@ http: url: $b{$.url} status: $b{$.status} nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} - location: $h{Location} sample_response: body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' |