Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription rendering in v2 does not include attrsFormat field #2133

Closed
crbrox opened this issue May 10, 2016 · 2 comments
Closed

Subscription rendering in v2 does not include attrsFormat field #2133

crbrox opened this issue May 10, 2016 · 2 comments

Comments

@crbrox
Copy link
Member

crbrox commented May 10, 2016

It seems attrsFormat field is missing in the JSON representation when getting a subscription

$ payload='
{
  "subject": {
    "entities": [
      {
        "id": "E1"
      }
    ],
    "condition": {
      "attrs": [ "A1" ]
    }
  },
  "notification": {
    "http": {
      "url": "http://localhost:12234/notify"
    },
    "attrs": [ "A1", "A5", "sub4_with_keyValues" ]
  },
  "attrsFormat": "keyValues",
  "expires": "2050-04-05T14:00:00.00Z"
}'

$ curl -i  localhost:1026/v2/subscriptions -H "content-type: application/json" --data "$payload"
HTTP/1.1 201 Created
Connection: Keep-Alive
Content-Length: 0
Location: /v2/subscriptions/5731a934dcd9671a98001e11
Fiware-Correlator: 3c93c030-1691-11e6-8412-0800274b39cb
Date: Tue, 10 May 2016 09:26:12 GMT

$ curl localhost:1026/v2/subscriptions/5731a934dcd9671a98001e11
{"id":"5731a934dcd9671a98001e11","expires":"2050-04-05T14:00:00.00Z","status":"active",
"subject":{"entities":[{"id":"E1","idPattern":"","type":""}],"condition":{"attrs":["A1"]}},
"notification":{"attrs":["A1","A5","sub4_with_keyValues"],
"http":{"url":"http://localhost:12234/notify"}}}

@crbrox crbrox added this to the 1.2.0 milestone May 10, 2016
@fgalan fgalan added the P8 label May 10, 2016
@fgalan
Copy link
Member

fgalan commented May 10, 2016

Probably we don't need new .test for this, but adjusting the ones we already have. This probably makes this easier to fix (new .test use to consume time).

@fgalan
Copy link
Member

fgalan commented May 23, 2016

Fixed in PR #2177

@fgalan fgalan closed this as completed May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants