james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bagnara (JIRA)" <server-...@james.apache.org>
Subject [jira] Resolved: (JSPF-44) Create a real authoritative only UDP/TCP dnsserver with the ability to provide custom responses and simulate delay/timeout.
Date Tue, 01 May 2007 13:09:15 GMT

     [ https://issues.apache.org/jira/browse/JSPF-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Stefano Bagnara resolved JSPF-44.

    Resolution: Fixed


Dummy implementation of an authoritative only DNSServer whose behaviour is configurable via
Yaml zone definition (it also simulates timeouts and per lookup delays). 
WARNING: some of the code is inspired (and something copy/pasted) by jnamed.java file from
dnsjava-2.0.3 demo sources. There's a pending issue about the correct way to "publish" this
(I currently added a warning in the source headers and a sentence in the NOTICE.txt file).


Refactored the AbstractYamlTest so that most behaviour is configurable:
1) Ability to switch from mocked dnsservice to local "fake dnsservice".
2) Ability to swtich from SynchronousExecutor to the StagedAsynchronous resolver and to use
the single threaded dnsjava lookup, the multithreaded dnsjava lookup or the SEDA 2-threads
dnsjnio lookup.
3) Ability to run "test groups" (a group is a sequence of tests sharing the same "fake" dns
zone) as a single test (to be able to run all of them and check results at the end, asynchronously
if the executor was asynchronous) 

Reconfigured the default testsuite as follow: 
1) run all tests as before via mocked dns server and synchronous executor 
2) run the full mailzone tests asynchronously via fake dnsserver and staged_dnsjnio_resolver

3) run the full rfc4408 tests asynchronously (each block separately because they define different
dns zones) via fake dnsserver and staged_dnsjava_multithread_resolver. It takes 50 seconds
on my laptop to complete...	

> Create a real authoritative only UDP/TCP dnsserver with the ability to provide custom
responses and simulate delay/timeout.
> ---------------------------------------------------------------------------------------------------------------------------
>                 Key: JSPF-44
>                 URL: https://issues.apache.org/jira/browse/JSPF-44
>             Project: jSPF
>          Issue Type: Task
>          Components: Core
>    Affects Versions: 0.9b4
>            Reporter: Stefano Bagnara
>         Assigned To: Stefano Bagnara
>             Fix For: 0.9.5
> We need such a server to be able to test the resolving implementation of jSPF.
> Unfortunately the mocked test suite is only able to check that jSPF internals works fine
when the dnsservice service returns an expected result but we can't test the dnsservice implementation
or network problems corner-cases.
> This will be also more important to test multiple asynchronous lookups.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message