mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
tests need forwarding mode enabled.
git-svn-id: file:///svn/unbound/trunk@337 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
4a2c15be58
commit
fa44214c61
14 changed files with 20 additions and 6 deletions
|
|
@ -196,8 +196,8 @@ worker_process_query(struct worker* worker, struct work_query* w,
|
||||||
}
|
}
|
||||||
/* request done */
|
/* request done */
|
||||||
if(s == module_error) {
|
if(s == module_error) {
|
||||||
qstate_free(worker, qstate);
|
|
||||||
replyerror(LDNS_RCODE_SERVFAIL, w);
|
replyerror(LDNS_RCODE_SERVFAIL, w);
|
||||||
|
qstate_free(worker, qstate);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(s == module_finished) {
|
if(s == module_finished) {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
- iterator forwarder feature separated out.
|
- iterator forwarder feature separated out.
|
||||||
- iterator hints stub code, config file stub code, so that first
|
- iterator hints stub code, config file stub code, so that first
|
||||||
testing can proceed locally.
|
testing can proceed locally.
|
||||||
|
- replay tests now have config option to enable forwarding mode.
|
||||||
|
|
||||||
23 May 2007: Wouter
|
23 May 2007: Wouter
|
||||||
- outside network does precise timers for roundtrip estimates for rtt
|
- outside network does precise timers for roundtrip estimates for rtt
|
||||||
|
|
|
||||||
|
|
@ -117,10 +117,11 @@ struct delegpt* hints_lookup_root(struct iter_hints* hints, uint16_t qclass);
|
||||||
* for this qname/qclass, determine if this combination indicates that a
|
* for this qname/qclass, determine if this combination indicates that a
|
||||||
* stub hint exists and must be primed.
|
* stub hint exists and must be primed.
|
||||||
*
|
*
|
||||||
* @param qname The qname that generated the delegation point.
|
* @param hints: hint storage.
|
||||||
* @param qclass The qclass that generated the delegation point.
|
* @param qname: The qname that generated the delegation point.
|
||||||
* @param dp The cache generated delegation point.
|
* @param qclass: The qclass that generated the delegation point.
|
||||||
* @return A priming delegation point if there is a stub hint that must
|
* @param dp: The cache generated delegation point.
|
||||||
|
* @return: A priming delegation point if there is a stub hint that must
|
||||||
* be primed, otherwise null.
|
* be primed, otherwise null.
|
||||||
*/
|
*/
|
||||||
struct delegpt* hints_lookup_stub(struct iter_hints* hints,
|
struct delegpt* hints_lookup_stub(struct iter_hints* hints,
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ perform_forward(struct module_qstate* qstate, enum module_ev event, int id,
|
||||||
qstate->ext_state[id] = module_error;
|
qstate->ext_state[id] = module_error;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
log_err("bad event for iterator");
|
log_err("bad event for iterator[forwarding]");
|
||||||
qstate->ext_state[id] = module_error;
|
qstate->ext_state[id] = module_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -222,6 +222,8 @@ iter_operate(struct module_qstate* qstate, enum module_ev event, int id,
|
||||||
perform_forward(qstate, event, id, outbound);
|
perform_forward(qstate, event, id, outbound);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
log_err("bad event for iterator");
|
||||||
|
qstate->ext_state[id] = module_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** iterator cleanup query state */
|
/** iterator cleanup query state */
|
||||||
|
|
|
||||||
1
testdata/fwd.rpl
vendored
1
testdata/fwd.rpl
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
; This is a comment.
|
; This is a comment.
|
||||||
; config options go here.
|
; config options go here.
|
||||||
|
server: forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
|
|
||||||
SCENARIO_BEGIN Sample of a valid query
|
SCENARIO_BEGIN Sample of a valid query
|
||||||
|
|
|
||||||
1
testdata/fwd_cached.rpl
vendored
1
testdata/fwd_cached.rpl
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
; This is a comment.
|
; This is a comment.
|
||||||
; config options go here.
|
; config options go here.
|
||||||
|
server: forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
|
|
||||||
SCENARIO_BEGIN Query receives answer from the cache
|
SCENARIO_BEGIN Query receives answer from the cache
|
||||||
|
|
|
||||||
1
testdata/fwd_error.rpl
vendored
1
testdata/fwd_error.rpl
vendored
|
|
@ -1,4 +1,5 @@
|
||||||
; config options go here.
|
; config options go here.
|
||||||
|
server: forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
SCENARIO_BEGIN Forwarder and an error happens on server query.
|
SCENARIO_BEGIN Forwarder and an error happens on server query.
|
||||||
STEP 1 QUERY
|
STEP 1 QUERY
|
||||||
|
|
|
||||||
1
testdata/fwd_lrudrop.rpl
vendored
1
testdata/fwd_lrudrop.rpl
vendored
|
|
@ -4,6 +4,7 @@
|
||||||
server:
|
server:
|
||||||
msg-cache-size: 1 # one whole byte!
|
msg-cache-size: 1 # one whole byte!
|
||||||
msg-cache-slabs: 1
|
msg-cache-slabs: 1
|
||||||
|
forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
|
|
||||||
SCENARIO_BEGIN Old answer is dropped from the cache
|
SCENARIO_BEGIN Old answer is dropped from the cache
|
||||||
|
|
|
||||||
1
testdata/fwd_notcached.rpl
vendored
1
testdata/fwd_notcached.rpl
vendored
|
|
@ -5,6 +5,7 @@
|
||||||
; here config file options:
|
; here config file options:
|
||||||
server:
|
server:
|
||||||
msg-cache-size: 1024
|
msg-cache-size: 1024
|
||||||
|
forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
|
|
||||||
SCENARIO_BEGIN Query receives answer not from the cache
|
SCENARIO_BEGIN Query receives answer not from the cache
|
||||||
|
|
|
||||||
1
testdata/fwd_timeout.rpl
vendored
1
testdata/fwd_timeout.rpl
vendored
|
|
@ -1,4 +1,5 @@
|
||||||
; config options go here.
|
; config options go here.
|
||||||
|
server: forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
SCENARIO_BEGIN Forwarder and a timeout happens on server query.
|
SCENARIO_BEGIN Forwarder and a timeout happens on server query.
|
||||||
STEP 1 QUERY
|
STEP 1 QUERY
|
||||||
|
|
|
||||||
1
testdata/fwd_two.rpl
vendored
1
testdata/fwd_two.rpl
vendored
|
|
@ -1,6 +1,7 @@
|
||||||
; config options go here.
|
; config options go here.
|
||||||
server:
|
server:
|
||||||
num-queries-per-thread: 1
|
num-queries-per-thread: 1
|
||||||
|
forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
SCENARIO_BEGIN Sample of a valid query
|
SCENARIO_BEGIN Sample of a valid query
|
||||||
|
|
||||||
|
|
|
||||||
1
testdata/rrset_rettl.rpl
vendored
1
testdata/rrset_rettl.rpl
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
; This is a comment.
|
; This is a comment.
|
||||||
; config options go here.
|
; config options go here.
|
||||||
|
server: forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
|
|
||||||
SCENARIO_BEGIN RRset TTL is updated from message.
|
SCENARIO_BEGIN RRset TTL is updated from message.
|
||||||
|
|
|
||||||
1
testdata/rrset_untrusted.rpl
vendored
1
testdata/rrset_untrusted.rpl
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
; This is a comment.
|
; This is a comment.
|
||||||
; config options go here.
|
; config options go here.
|
||||||
|
server: forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
|
|
||||||
SCENARIO_BEGIN Untrusted rrset not used for update
|
SCENARIO_BEGIN Untrusted rrset not used for update
|
||||||
|
|
|
||||||
1
testdata/rrset_updated.rpl
vendored
1
testdata/rrset_updated.rpl
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
; This is a comment.
|
; This is a comment.
|
||||||
; config options go here.
|
; config options go here.
|
||||||
|
server: forward-to: "127.0.0.1"
|
||||||
CONFIG_END
|
CONFIG_END
|
||||||
|
|
||||||
SCENARIO_BEGIN RRset is updated from other message that passes by.
|
SCENARIO_BEGIN RRset is updated from other message that passes by.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue