Commit graph

75 commits

Author SHA1 Message Date
Maciej Szlosarczyk
c70d7c6bf2
Add basic test case for greeting 2019-07-12 12:49:08 +03:00
Maciej Szlosarczyk
2c04020d16
Add example test for path_for_file 2019-07-12 12:19:34 +03:00
Maciej Szlosarczyk
de965045ac
Prepare for better integration tests 2019-07-12 12:07:22 +03:00
Maciej Szlosarczyk
3fb6ec85d8
Change function name from *_case to *_test_case 2019-07-11 12:23:06 +03:00
Maciej Szlosarczyk
02de9f1e41
Remove eunit from travis script 2019-07-11 12:15:11 +03:00
Maciej Szlosarczyk
4814f0c1f7
Remove Eunit tests, use only common test library 2019-07-11 12:11:37 +03:00
Maciej Szlosarczyk
7f49098d96
Merge pull request #6 from internetee/implement-new-logic-in-tcp-client-as-well
Implement large file logic in TCP socket
2019-07-11 10:08:16 +03:00
Maciej Szlosarczyk
f17613b5f7
Reformat code 2019-07-11 10:06:16 +03:00
Maciej Szlosarczyk
e867e15ce7
Copy the TLS implementation of large buffers into TCP 2019-07-11 10:03:25 +03:00
Maciej Szlosarczyk
4830a7e5e2
Gracefully handle clients that close their connection after logout
Registrar portal behaves closes the connection on its own after
sending logout command, we should not throw errors with those cases.
2019-07-11 09:54:32 +03:00
Maciej Szlosarczyk
4bc8821472
Merge pull request #5 from internetee/allow-for-messages-larger-than-1-mb
Allow for messages larger than 1 mb
2019-07-11 09:35:47 +03:00
Maciej Szlosarczyk
771cc06232
Reformat Erlang code, write more documentation 2019-07-11 09:17:17 +03:00
Maciej Szlosarczyk
558e1f0ef7
Recursively read large buffers, i.e. ones with long PDFs 2019-07-10 14:30:34 +03:00
Maciej Szlosarczyk
de15ea121a
Reformat test code 2019-07-04 16:10:17 +03:00
Maciej Szlosarczyk
70f4abf20e
Merge pull request #4 from internetee/unify-request-record
Unify request record
2019-07-04 15:48:00 +03:00
Maciej Szlosarczyk
59d0e56727
Introduce a macro for error and hello strings 2019-07-04 15:22:34 +03:00
Maciej Szlosarczyk
5916c730b7
Simplify epp_http_client library
Define only one type of record, and generate different types of
payload based on what comes in from the client
Remove separate functions for error requests
2019-07-04 15:15:03 +03:00
Maciej Szlosarczyk
57eb1fd94d
Move test certificate files to their appropriate location 2019-07-04 13:18:38 +03:00
Maciej Szlosarczyk
595dc01ec0
Add coverage support to Rebar3 2019-07-04 12:53:04 +03:00
Maciej Szlosarczyk
2e01b6870b
Add rebar3_fmt format tool 2019-07-04 11:23:50 +03:00
Maciej Szlosarczyk
01b9aa9912
Add epptelnet perl script for easier testing from the same source 2019-07-04 10:32:15 +03:00
Maciej Szlosarczyk
5c7942f08e
Remove unused function, make forward slash a macro 2019-07-04 09:15:15 +03:00
Maciej Szlosarczyk
cde2a7ed55
Handle case when registry is not reacheable 2019-06-07 15:38:11 +03:00
Maciej Szlosarczyk
86af6b8f57
Expect user to close connection abruptly
When waiting for input from socket, expect not only a valid outcome,
but also the client getting bored and closing the connection without
any message being sent.Log an info message when that happens,but do
not make it an error.

Also, only use hyphens for headers sent to registry server.
2019-06-07 15:06:53 +03:00
Maciej Szlosarczyk
bb3a352092
Update header from underscores to hyphens 2019-06-07 08:59:42 +03:00
Maciej Szlosarczyk
a4b7a4a041
Send headers in both formats 2019-06-06 17:16:46 +03:00
Maciej Szlosarczyk
a636eba23f
Make logging to syslog default 2019-06-06 17:16:23 +03:00
Maciej Szlosarczyk
1593ecf2f2
Use the correct syslog dependency 2019-06-03 16:33:42 +03:00
Maciej Szlosarczyk
d6b90abbc9
Remove done tasks from readme 2019-06-03 12:13:49 +03:00
Maciej Szlosarczyk
95d3500295
Rework dockerfile to work against ancient debian 2019-06-03 12:05:07 +03:00
Maciej Szlosarczyk
d5c296af94
Add extended release script 2019-06-03 12:00:53 +03:00
Maciej Szlosarczyk
1bb81e0118
Add extended start script to release 2019-05-31 10:27:59 +03:00
Maciej Szlosarczyk
80fa8a6ff9
Fix typo in documentation 2019-05-31 09:58:08 +03:00
Maciej Szlosarczyk
6bdaae776f
Clarify OTP design 2019-05-30 21:00:01 +03:00
Maciej Szlosarczyk
cdb126dbfe
Fix formatting in docs 2019-05-30 20:58:21 +03:00
Maciej Szlosarczyk
3ac70dbb74
Describe configuration in documentation 2019-05-30 20:57:15 +03:00
Maciej Szlosarczyk
c63a243f63
Add table to documentation 2019-05-30 15:20:27 +03:00
Maciej Szlosarczyk
287dfbb2ec
Add documentation to config file 2019-05-30 14:40:37 +03:00
Maciej Szlosarczyk
18fb3462c4
Add example EPP frames
They correspond with EIS schema used in the registry project
2019-05-30 14:08:55 +03:00
Maciej Szlosarczyk
8a64f88586
Update TCP connection to use the same structure as TLS 2019-05-30 14:04:34 +03:00
Maciej Szlosarczyk
cecf6c0af0
Remove macros from TLS acceptor
Add required documentation to it.
2019-05-30 13:35:51 +03:00
Maciej Szlosarczyk
ec87e0ef26
Fix Travis error 2019-05-30 12:48:42 +03:00
Maciej Szlosarczyk
e507591e99
Add Travis-CI config and Dockerfile 2019-05-30 12:42:52 +03:00
Maciej Szlosarczyk
6b4814a60d
Make routes not care about trailing slashes 2019-05-30 12:22:42 +03:00
Maciej Szlosarczyk
4566e14b31
Document EPP TLS worker 2019-05-30 11:43:59 +03:00
Maciej Szlosarczyk
4b5c90912d
Add tests for HTTP client 2019-05-30 11:43:44 +03:00
Maciej Szlosarczyk
0ccb48ce91
Move http request into its own module 2019-05-30 11:06:46 +03:00
Maciej Szlosarczyk
54a6fdb729
Handle XML parsing errors 2019-05-30 10:35:54 +03:00
Maciej Szlosarczyk
73384531c8
Replace logger with lager for syslog logging
I am not 100% certain that lager_syslog is well maintained, but it
seems to be used by RabbitMQ at the time of writing this commit.

c5568a9ed4/erlang.mk (L2405-L2411)

Because of that, we probably should be fine with it.
2019-05-29 13:23:29 +03:00
Maciej Szlosarczyk
750cdbd270
Add X-Forwarded-For header 2019-05-29 10:57:43 +03:00