Leonid Bugaev
7d482d47de
Update README.md
2013-10-18 14:15:08 +02:00
Leonid Bugaev
f7cf05c257
Merge pull request #41 from alphagov/readme_file_based_timings
...
Document time delay in file-based replay
2013-10-18 03:16:58 -07:00
Leonid Bugaev
4af1230d83
Merge pull request #40 from alphagov/rename_reply_to_replay
...
Rename instances of "reply" to "replay"
2013-10-18 03:16:39 -07:00
Dan Carley
18597d9e7a
Rename instances of "reply" to "replay"
...
This looks to have been a typo. Limited to file-based playback only. The
word "replay" makes more sense here, and is consistent with TCP playback.
2013-10-18 11:01:37 +01:00
Dan Carley
fe02bfa8c5
Document time delay in file-based replay
...
This is an awesome feature that I've been looking for, for sometime. But I
had to dig through the code to verify that it did such. It should be called
out in the README instead!
2013-10-18 10:57:28 +01:00
Sławosz
48d4406893
Merge pull request #39 from alphagov/garbled_file_parsing
...
Fix garbled request input from file
2013-10-18 01:48:25 -07:00
Dan Carley
f07c7f5eaf
Merge branch 'master' into garbled_file_parsing
2013-10-18 09:35:08 +01:00
Leonid Bugaev
db4b2c26b0
Fixed #36 . Replaying requests to mutiple hosts
2013-10-17 20:55:18 +02:00
Dan Carley
8ecda0fdb5
Fix garbled request input from file
...
Buffer a copy of `scanner.Bytes()` when appending to a slice of requests.
Otherwise the data may be overwritten in subsequent loops. This results in
garbled requests, without truncated output and sometimes random characters.
This may not be apparent when a small number of requests are used.
Ref: http://golang.org/pkg/bufio/#Scanner.Bytes
```
Bytes returns the most recent token generated by a call to Scan. The
underlying array may point to data that will be overwritten by a subsequent
call to Scan. It does no allocation.
```
This fixes the tests errors like:
```
2013/10/17 15:26:28 Starting file reply2013/10/17 15:26:28 Can not parse request =b&c=d
1382023587787798594
POST /test HTTP/1.1
Host: localhost:50030
User-Agent: Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.1 Safari/534.34
Content-Length: 7
Accept: */*
Accept-Language: en-GB,*
Cookie: test=value
Referer: http://localhost/test
X-Forwarded-For: 1.1.1.1, 2.2.2.2, 3.3.3.3
X-Fo malformed HTTP request "=b&c=d"
2013/10/17 15:26:28 Can't parse request...:malformed HTTP request "=b&c=d"
```
2013-10-17 16:51:38 +01:00
Dan Carley
06befe3b4b
Integration test for garbled requests from file
...
Increase the number of iterations and size requests written to file in order
to trigger a bug when parsing requests back in.
This test will currently fail with: `Can't parse request...`
2013-10-17 16:40:58 +01:00
Leonid Bugaev
8c41c01d4b
Update README.md
2013-10-13 19:53:40 +02:00
Leonid Bugaev
4e41151963
Update README.md
2013-10-13 19:51:07 +02:00
Leonid Bugaev
18ec957e62
Merge pull request #37 from gottwald/es-docs
...
Added elasticsearch documentation
2013-10-13 10:48:07 -07:00
Ingo Gottwald
857a9b4835
Updated README.md linked to ELASTICSEARCH.md
2013-10-13 17:34:34 +02:00
Ingo Gottwald
12ae1455f8
Added elasticsearch documentation
2013-10-13 17:21:30 +02:00
Leonid Bugaev
da2478ca3c
Fix Reply From File test
2013-10-12 14:16:14 +02:00
Leonid Bugaev
c32deec006
Tests: Added second host for replaying
2013-10-12 09:52:27 +02:00
Leonid Bugaev
f5a8274fcd
One more fix
2013-10-12 09:44:57 +02:00
Leonid Bugaev
d1708ff1f3
Fixed test
2013-10-12 09:42:25 +02:00
Leonid Bugaev
fd642bded1
Improve debugging
2013-10-10 11:33:31 +02:00
Leonid Bugaev
40203d2519
Turn on verbose mode for tests
2013-10-10 11:27:48 +02:00
Leonid Bugaev
fd27e13e85
Turn on verbose mode for go test
2013-10-10 11:26:34 +02:00
Leonid Bugaev
d46e587c08
Added tests for POST requests
2013-10-10 11:09:50 +02:00
Leonid Bugaev
fa2dedceb3
Merge pull request #35 from buger/add_procfile
...
Added Procfile to simplify debuging
2013-10-10 00:04:46 -07:00
Leonid Bugaev
983e2a0e79
Merge pull request #33 from buger/elasticsearch_refactoring
...
ElasticSearch refactoring and updated docs
2013-10-09 23:56:28 -07:00
Leonid Bugaev
42173e4687
Some minor changes
2013-10-10 08:47:19 +02:00
Leonid Bugaev
8757373a7a
Fix typo
2013-10-10 08:44:38 +02:00
Leonid Bugaev
b6e7b18803
Added Procfile to simplify debuging
2013-10-10 08:33:45 +02:00
Leonid Bugaev
e21f9b024d
Fix replay. It should not exit if single request is not parsed.
...
Fix #34
2013-10-09 20:32:24 +02:00
Leonid Bugaev
20901ec6ae
Some refactoring and updated docs
2013-10-09 12:58:17 +02:00
Leonid Bugaev
327ee32395
Fix same settings parse bug on replay side
...
Added basic settings tests
2013-10-09 09:19:57 +02:00
Leonid Bugaev
e32b985df2
Fixed settings parse bug
...
Fix #32
2013-10-09 08:56:03 +02:00
Leonid Bugaev
737ea9fc68
Merge branch 'elasticsearch' of https://github.com/gottwald/gor into gottwald-elasticsearch
...
Conflicts:
replay/replay.go
replay/request_factory.go
2013-10-08 22:20:06 +02:00
Leonid Bugaev
509b27c476
Merge pull request #25 from slawosz/save-request-to-reply-later
...
Save request to file for later replay
2013-10-08 13:12:42 -07:00
Ingo Gottwald
94199fcb25
Fixed elasicsearch plugin
...
Don't try to export failed requests
2013-10-08 20:32:35 +02:00
Sławosz
bba9637eed
remove comment
2013-10-08 19:54:37 +02:00
Sławosz
685c998e8e
remove MessageLogger
2013-10-08 19:47:30 +02:00
Sławosz
8adeda9a98
finish replay, when all requests got replayed
2013-10-08 19:41:24 +02:00
Sławosz
9077656bdf
Information about replaying in README
2013-10-08 12:59:41 +02:00
Sławosz
830ae237c9
better messages on listener start
2013-10-08 12:54:54 +02:00
Ingo Gottwald
88dd2602df
More data for elasticsearch
...
- Removed extension based mime analysis
- Added more data fields for elasticsearch
- ESResponse is now a ESRequestResponse struct
(holds combined data from requests and responses)
2013-10-06 14:36:16 +02:00
Ingo Gottwald
27582841fe
Added elasticsearch response analyze plugin
2013-10-05 23:35:49 +02:00
Ingo Gottwald
b53218e729
Added timing information to HTTP responses
2013-10-05 23:09:49 +02:00
Ingo Gottwald
54e9de5088
Implemented support for Response Analyze Plugins
2013-10-05 23:07:54 +02:00
Sławosz Sławiński
5782d486f9
Parse request with timestamp properly
2013-10-04 04:56:48 +00:00
Sławosz Sławiński
8b66a99665
Save request timestamp
...
WIP
2013-10-03 21:44:26 +00:00
Sławosz
30547f2a41
Embed log.Logger in MessageLogger
2013-10-02 20:07:19 +02:00
Sławosz
140267b6a6
Merge branch 'master' into save-request-to-reply-later
...
Conflicts:
listener/raw_tcp_listener.go
replay/replay.go
replay/settings.go
2013-10-02 19:47:28 +02:00
Sławosz
e4807b7abb
Merge branch 'master' of https://github.com/buger/gor
2013-10-02 19:36:05 +02:00
Sławosz
20ea55e6e7
remove debug statement
2013-10-02 19:34:54 +02:00