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

add NAPTR record support #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergey-lukin
Copy link

No description provided.

@agentzh
Copy link
Member

agentzh commented Aug 10, 2016

@sergey-lukin Thanks for the patch. But will you also add some docs and tests for this new feature? Many thanks!

@@ -209,6 +211,16 @@ local function _encode_name(s)
return char(#s) .. s
end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: we need 2 blank lines to separate function definitions.

@agentzh
Copy link
Member

agentzh commented Aug 11, 2016

@sergey-lukin Please rebase to the latest master branch which includes a fix for Travis CI. Also, it would be perfect if you can also add some test cases for this new feature to the existing test suite. Many thanks!

@sergey-lukin
Copy link
Author

Thank you for practical advises. I have fixed everything you asked except adding tests. I can do it later when I'll have some time for it. I would be grateful if you give me some help or hint about adding tests.

@agentzh
Copy link
Member

agentzh commented Aug 12, 2016

@sergey-lukin I think you can just check out existing test cases in the t/mock.t test file. If you are unfamiliar with the test toolchain based on Test::Nginx, I suggest you read through this book chapter first:

https://openresty.gitbooks.io/programming-openresty/content/testing/

Thank you for your contributions!

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