Commit graph

99 commits

Author SHA1 Message Date
Maciej Szlosarczyk
ae2bfd5969
Merge pull request #11 from internetee/send-frame-parameter-as-well
Send frame as request paramater as well
2019-07-17 10:57:38 +03:00
Maciej Szlosarczyk
dff1faf398
Remove duplicate example 2019-07-17 10:55:01 +03:00
Maciej Szlosarczyk
e99733aaf0
Send frame as request paramater as well
Here's what happens: When a client sends simple command without any
values in XML, registry can drop the `raw_frame` parameter
completely. If so, it relies on `frame` parameter being passed on to
create XML document.

https://github.com/internetee/registry/blame/ad823391b75509d5be20ee6ef217aa4f35a4c994/lib/epp_constraint.rb#L14

Fix involves sending the XML string twice, as `frame` and
`raw_frame`, the same as `mod_epp` did.
2019-07-17 10:53:31 +03:00
Maciej Szlosarczyk
f00a17b89f
Merge pull request #9 from internetee/fix-test
Extend the test suite
2019-07-15 21:45:37 +03:00
Maciej Szlosarczyk
f659a1f6c4
Add documentation about the release process 2019-07-15 21:40:57 +03:00
Maciej Szlosarczyk
0eb7caade0
Create releases based on semver 2019-07-15 21:35:21 +03:00
Maciej Szlosarczyk
75ba63c1db
Add release based on short commit and semver tags 2019-07-15 21:25:04 +03:00
Maciej Szlosarczyk
0bcd42d411
Add pidfile to gitignore 2019-07-15 21:24:47 +03:00
Maciej Szlosarczyk
4cb7b998ec
Rerun rebar3 fmt 2019-07-15 14:37:26 +03:00
Maciej Szlosarczyk
93b2437d1f
Add test for messages that overflow the initial buffer 2019-07-15 14:34:46 +03:00
Maciej Szlosarczyk
23193d612e
Update dockerfile to install rebar with asdf 2019-07-15 13:55:47 +03:00
Maciej Szlosarczyk
67c710a6e7
Fix test case that does nothing 2019-07-15 13:55:44 +03:00
Georg
fc890b0674
manage rebar with asdf
manage rebar with asdf
2019-07-13 17:03:00 +03:00
Maciej Szlosarczyk
3e000f4552
Merge pull request #8 from internetee/add-build-badge
Add build badge
2019-07-12 16:26:44 +03:00
Maciej Szlosarczyk
9f44cbdf85
Add build badge from Travis-CI 2019-07-12 16:24:07 +03:00
Maciej Szlosarczyk
a811f187c2
Merge pull request #7 from internetee/remove-eunit-tests
Create test suite
2019-07-12 16:20:19 +03:00
Maciej Szlosarczyk
f5ed203554
Add information about test certificates 2019-07-12 16:16:06 +03:00
Maciej Szlosarczyk
d447c7c6c4
Include information about changes in documentation
Describe Roda app that is used for testing.
Describe new feature for handling certificate file path
2019-07-12 16:07:30 +03:00
Maciej Szlosarczyk
55d1942898
Remove unused guard 2019-07-12 15:54:01 +03:00
Maciej Szlosarczyk
2838a4adff
Add tcp client test suite
It is a mirror image of the test suite for TLS client, retained for
test coverage reasons
2019-07-12 15:26:54 +03:00
Maciej Szlosarczyk
45f99a2f77
Add test case for error request 2019-07-12 15:14:48 +03:00
Maciej Szlosarczyk
7f7eea8149
Add test case for invalid command 2019-07-12 14:56:59 +03:00
Maciej Szlosarczyk
31fa20a9a6
Add test case for command 2019-07-12 14:47:47 +03:00
Maciej Szlosarczyk
d8e03ed484
Add test case for both login and logout 2019-07-12 14:28:36 +03:00
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