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

feature/493_remove_user_agent_check #497

Merged
merged 5 commits into from
Aug 6, 2015

Conversation

frbattid
Copy link
Member

@frbattid frbattid commented Aug 6, 2015

Results :
Tests run: 51, Failures: 0, Errors: 0, Skipped: 0
  • (unofficial) e2e tests passed:
$ cat resources/ngsi-examples/notification-json-simple.sh | grep User-Agent
curl $URL -v -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'User-Agent: whatever/0.10.0' --header "Fiware-Service: $SERVICE" --header "Fiware-ServicePath: $SERVICE_PATH" -d @- <<EOF
[BEFORE THE FIX]
...
15/08/06 10:59:26 INFO handlers.OrionRestHandler: Starting transaction (1438851510-508-0000000000)
15/08/06 10:59:26 WARN handlers.OrionRestHandler: Bad HTTP notification (whatever/0.10.0 user agent not supported)
15/08/06 10:59:26 WARN http.HTTPSource: Received bad request from client. 
org.apache.flume.source.http.HTTPBadRequestException: whatever/0.10.0 user agent not supported
...
[AFTER THE FIX]
...
15/08/06 11:00:29 INFO handlers.OrionRestHandler: Starting transaction (1438851625-811-0000000000)
15/08/06 11:00:29 INFO handlers.OrionRestHandler: Received data ({  "subscriptionId" : "51c0ac9ed714fb3b37d7d5a8",  "originator" : "localhost",  "contextResponses" : [    {      "contextElement" : {        "attributes" : [          {            "name" : "temperature",            "type" : "centigrade",            "value" : "26.5"          }        ],        "type" : "Room",        "isPattern" : "false",        "id" : "Room1"      },      "statusCode" : {        "code" : "200",        "reasonPhrase" : "OK"      }    }  ]})
15/08/06 11:00:29 INFO handlers.OrionRestHandler: Event put in the channel (id=1809172135, ttl=10)
15/08/06 11:00:29 INFO sinks.OrionSink: Event got from the channel (id=1809172135, headers={fiware-servicepath=def_serv_path, destination=room1_room, content-type=application/json, fiware-service=def_serv, ttl=10, transactionId=1438851625-811-0000000000, timestamp=1438851629611}, bodyLength=460)
15/08/06 11:00:29 INFO sinks.OrionHDFSSink: [hdfs-sink] Persisting data at OrionHDFSSink. HDFS file (def_serv/def_serv_path/room1_room/room1_room.txt), Data ({"recvTime":"2015-08-06T09:00:29.611Z", "temperature":"26.5", "temperature_md":[]})
...

@fgalan
Copy link
Member

fgalan commented Aug 6, 2015

LGTM

fgalan pushed a commit that referenced this pull request Aug 6, 2015
…nt_control

feature/493_remove_user_agent_check
@fgalan fgalan merged commit 242e1d8 into develop Aug 6, 2015
@fgalan fgalan deleted the feature/493_remove_user_agent_control branch August 6, 2015 12:15
fgalan pushed a commit that referenced this pull request Dec 1, 2015
…nt_control

feature/493_remove_user_agent_check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants