mirror of https://github.com/getdnsapi/getdns.git
Fix unit tests (for changed world)
- Google started to respond NOTIMP on unknown RR types! - willem.getdnsapi.net has been removed
This commit is contained in:
parent
a847d478ec
commit
770c0a1282
|
@ -145,7 +145,7 @@
|
|||
START_TEST (getdns_address_sync_6)
|
||||
{
|
||||
/*
|
||||
* name = "willem.getdnsapi.net" need to replace this with domain from unbound zone
|
||||
* name = "d2a8n3.rootcanary.net" need to replace this with domain from unbound zone
|
||||
* expect: NOERROR/NODATA response:
|
||||
* status = GETDNS_RESPSTATUS_NO_DATA
|
||||
* rcode = 0
|
||||
|
@ -156,7 +156,7 @@
|
|||
|
||||
CONTEXT_CREATE(TRUE);
|
||||
|
||||
ASSERT_RC(getdns_address_sync(context, "willem.getdnsapi.net", NULL, &response),
|
||||
ASSERT_RC(getdns_address_sync(context, "d2a8n3.rootcanary.net", NULL, &response),
|
||||
GETDNS_RETURN_GOOD, "Return code from getdns_address_sync()");
|
||||
|
||||
EXTRACT_RESPONSE;
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
START_TEST (getdns_general_7)
|
||||
{
|
||||
/*
|
||||
* name = "google.com"
|
||||
* name = "nlnetlabs.nl"
|
||||
* request_type = 65279 (maximum unassigned RRTYPE)
|
||||
* expect: NOERROR/NODATA response:
|
||||
* status = GETDNS_RESPSTATUS_NO_NAME
|
||||
|
@ -195,7 +195,7 @@
|
|||
CONTEXT_CREATE(TRUE);
|
||||
EVENT_BASE_CREATE;
|
||||
|
||||
ASSERT_RC(getdns_general(context, "google.com", 65279, NULL,
|
||||
ASSERT_RC(getdns_general(context, "nlnetlabs.nl", 65279, NULL,
|
||||
&fn_ref, &transaction_id, callbackfn),
|
||||
GETDNS_RETURN_GOOD, "Return code from getdns_general()");
|
||||
|
||||
|
@ -322,7 +322,7 @@
|
|||
START_TEST (getdns_general_11)
|
||||
{
|
||||
/*
|
||||
* name = "willem.getdnsapi.net" and unbound zone
|
||||
* name = "d2a8n3.rootcanary.net" and unbound zone
|
||||
* request_type = GETDNS_RRTYPE_MX
|
||||
* expect: NOERROR/NODATA response:
|
||||
* status = GETDNS_RESPSTATUS_NO_NAME
|
||||
|
@ -338,7 +338,7 @@
|
|||
CONTEXT_CREATE(TRUE);
|
||||
EVENT_BASE_CREATE;
|
||||
|
||||
ASSERT_RC(getdns_general(context, "willem.getdnsapi.net", GETDNS_RRTYPE_MX, NULL,
|
||||
ASSERT_RC(getdns_general(context, "d2a8n3.rootcanary.net", GETDNS_RRTYPE_MX, NULL,
|
||||
&fn_ref, &transaction_id, callbackfn),
|
||||
GETDNS_RETURN_GOOD, "Return code from getdns_general()");
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
START_TEST (getdns_general_sync_7)
|
||||
{
|
||||
/*
|
||||
* name = "google.com"
|
||||
* name = "nlnetlabs.nl"
|
||||
* request_type = 65279 (maximum unassigned RRTYPE)
|
||||
* expect: NOERROR/NODATA response:
|
||||
* status = GETDNS_RESPSTATUS_NO_NAME
|
||||
|
@ -164,7 +164,7 @@
|
|||
|
||||
CONTEXT_CREATE(TRUE);
|
||||
|
||||
ASSERT_RC(getdns_general_sync(context, "google.com", 65279, NULL, &response),
|
||||
ASSERT_RC(getdns_general_sync(context, "nlnetlabs.nl", 65279, NULL, &response),
|
||||
GETDNS_RETURN_GOOD, "Return code from getdns_general_sync()");
|
||||
|
||||
EXTRACT_RESPONSE;
|
||||
|
@ -267,7 +267,7 @@
|
|||
START_TEST (getdns_general_sync_11)
|
||||
{
|
||||
/*
|
||||
* name = "willem.getdnsapi.net" an unbound zone (as in no MX)
|
||||
* name = "d2a8n3.rootcanary.net" an unbound zone (as in no MX)
|
||||
* request_type = GETDNS_RRTYPE_MX
|
||||
* expect: NOERROR/NODATA response:
|
||||
* status = GETDNS_RESPSTATUS_NO_NAME
|
||||
|
@ -279,7 +279,7 @@
|
|||
|
||||
CONTEXT_CREATE(TRUE);
|
||||
|
||||
ASSERT_RC(getdns_general_sync(context, "willem.getdnsapi.net", GETDNS_RRTYPE_MX, NULL, &response),
|
||||
ASSERT_RC(getdns_general_sync(context, "d2a8n3.rootcanary.net", GETDNS_RRTYPE_MX, NULL, &response),
|
||||
GETDNS_RETURN_GOOD, "Return code from getdns_general_sync()");
|
||||
|
||||
EXTRACT_RESPONSE;
|
||||
|
|
Loading…
Reference in New Issue