You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2007/05/01 14:45:15 UTC

[jira] Created: (JSPF-44) Create a real authoritative only UDP/TCP dnsserver with the ability to provide custom responses and simulate delay/timeout.

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


[jira] Resolved: (JSPF-44) Create a real authoritative only UDP/TCP dnsserver with the ability to provide custom responses and simulate delay/timeout.

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JSPF-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefano Bagnara resolved JSPF-44.
---------------------------------

    Resolution: Fixed

r533800: 

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).	

r533803: 

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