summaryrefslogtreecommitdiffstats
path: root/plugins/msb/src/test/resources/onap-cli-sample/microservice-create-schema-moco.json
blob: d2b703d0582f93abbd10b87bb95132cd89757728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[ {
  "request" : {
    "method" : "post",
    "uri" : "/api/microservices/v1/services",
    "headers" : {
      "Accept" : "application/json",
      "Content-Type" : "application/json"
    },
    "json" : {
      "serviceName" : "test",
      "version" : "v1",
      "path" : "/test",
      "url" : "/test",
      "protocol" : "REST",
      "enable_ssl" : "",
      "visualRange" : "1",
      "lb_policy" : "ip_hash",
      "nodes" : [ {
        "ip" : "10.0.0.1",
        "port" : "8080",
        "ttl" : 0
      } ]
    }
  },
  "response" : {
    "status" : 201,
    "json" : {
      "serviceName" : "test",
      "version" : "v1",
      "url" : "/test",
      "protocol" : "REST",
      "visualRange" : "1",
      "lb_policy" : "ip_hash",
      "publish_port" : "",
      "namespace" : "",
      "network_plane_type" : "",
      "host" : "",
      "path" : "/test",
      "enable_ssl" : false,
      "nodes" : [ {
        "ip" : "10.0.0.1",
        "port" : "8080",
        "checkType" : "",
        "checkUrl" : "",
        "ha_role" : "",
        "nodeId" : "_test_10.0.0.1_8080",
        "status" : "passing"
      } ],
      "metadata" : [ ],
      "labels" : [ ],
      "status" : "1",
      "is_manual" : false
    }
  }
} ]