#include <config.h>
#include <atf-c.h>
#include <unistd.h>
#include <time.h>
#include <isc/serial.h>
#include <isc/stdtime.h>
#include <dns/update.h>
#include "dnstest.h"
Go to the source code of this file.
Functions | |
static void | set_mystdtime (int year, int month, int day) |
void | isc_stdtime_get (isc_stdtime_t *now) |
Set 't' to the number of seconds since 00:00:00 UTC, January 1, 1970. | |
ATF_TC (increment) | |
ATF_TC_HEAD (increment, tc) | |
ATF_TC_BODY (increment, tc) | |
ATF_TC (increment_past_zero) | |
ATF_TC_HEAD (increment_past_zero, tc) | |
ATF_TC_BODY (increment_past_zero, tc) | |
ATF_TC (past_to_unix) | |
ATF_TC_HEAD (past_to_unix, tc) | |
ATF_TC_BODY (past_to_unix, tc) | |
ATF_TC (now_to_unix) | |
ATF_TC_HEAD (now_to_unix, tc) | |
ATF_TC_BODY (now_to_unix, tc) | |
ATF_TC (future_to_unix) | |
ATF_TC_HEAD (future_to_unix, tc) | |
ATF_TC_BODY (future_to_unix, tc) | |
ATF_TC (undefined_plus1_to_unix) | |
ATF_TC_HEAD (undefined_plus1_to_unix, tc) | |
ATF_TC_BODY (undefined_plus1_to_unix, tc) | |
ATF_TC (undefined_minus1_to_unix) | |
ATF_TC_HEAD (undefined_minus1_to_unix, tc) | |
ATF_TC_BODY (undefined_minus1_to_unix, tc) | |
ATF_TC (undefined_to_unix) | |
ATF_TC_HEAD (undefined_to_unix, tc) | |
ATF_TC_BODY (undefined_to_unix, tc) | |
ATF_TC (unixtime_zero) | |
ATF_TC_HEAD (unixtime_zero, tc) | |
ATF_TC_BODY (unixtime_zero, tc) | |
ATF_TC (past_to_date) | |
ATF_TC_HEAD (past_to_date, tc) | |
ATF_TC_BODY (past_to_date, tc) | |
ATF_TC (now_to_date) | |
ATF_TC_HEAD (now_to_date, tc) | |
ATF_TC_BODY (now_to_date, tc) | |
ATF_TC (future_to_date) | |
ATF_TC_HEAD (future_to_date, tc) | |
ATF_TC_BODY (future_to_date, tc) | |
ATF_TP_ADD_TCS (tp) | |
Variables | |
static isc_uint32_t | mystdtime |
Definition in file update_test.c.
static void set_mystdtime | ( | int | year, | |
int | month, | |||
int | day | |||
) | [static] |
void isc_stdtime_get | ( | isc_stdtime_t * | t | ) |
Set 't' to the number of seconds since 00:00:00 UTC, January 1, 1970.
Requires:
Definition at line 47 of file update_test.c.
References mystdtime.
Referenced by acache_cleaner_init(), acache_incremental_cleaning_action(), add_initial_keys(), addrdataset(), allrdatasets(), beginload(), cache_find(), cache_findrdataset(), cache_findzonecut(), check_hints(), cleanup_ring(), control_recvmessage(), create_keydata(), dispatch(), dns_acache_createentry(), dns_adb_adjustsrtt(), dns_adb_changeflags(), dns_adb_createfind2(), dns_adb_dump(), dns_adb_freeaddrinfo(), dns_dnssec_findmatchingkeys(), dns_dnssec_findzonekeys2(), dns_dnssec_signmessage(), dns_dnssec_verify3(), dns_dnssec_verifymessage(), dns_keyring_restore(), dns_master_dumpnodetostream(), dns_ntatable_save(), dns_ntatable_totext(), dns_root_checkhints(), dns_rrl_init(), dns_time64_from32(), dns_tkey_builddhquery(), dns_tkey_buildgssquery(), dns_tsig_sign(), dns_tsig_verify(), dns_tsigkey_find(), dns_tsigkeyring_dumpanddetach(), dns_update_signaturesinc(), dns_update_soaserial(), dns_validator_create(), dns_view_loadnta(), dumpctx_create(), end_cleaning(), expirenode(), fctx_cancelquery(), fctx_getaddresses(), fetch_callback(), fetch_done(), generate_session_key(), keyfetch_done(), load_secroots(), load_text(), main(), mark_secure(), minimal_update(), mkey_dumpzone(), ns_client_addopt(), ns_server_nta(), ns_server_zonestatus(), ns_stats_dump(), process_gsstkey(), publish_key(), query_recurse(), query_resume(), refresh_time(), resquery_response(), rndc_connected(), rndc_recvnonce(), set_keyversion(), totext_keydata(), tsig_verify_tcp(), wouldvalidate(), zone_nsec3chain(), zone_postload(), zone_refreshkeys(), zone_resigninc(), and zone_sign().
ATF_TC | ( | increment | ) |
ATF_TC_HEAD | ( | increment | , | |
tc | ||||
) |
Definition at line 56 of file update_test.c.
ATF_TC_BODY | ( | increment | , | |
tc | ||||
) |
Definition at line 59 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_increment, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, and UNUSED.
ATF_TC | ( | increment_past_zero | ) |
ATF_TC_HEAD | ( | increment_past_zero | , | |
tc | ||||
) |
Definition at line 77 of file update_test.c.
ATF_TC_BODY | ( | increment_past_zero | , | |
tc | ||||
) |
Definition at line 80 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_increment, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, and UNUSED.
ATF_TC | ( | past_to_unix | ) |
ATF_TC_HEAD | ( | past_to_unix | , | |
tc | ||||
) |
Definition at line 97 of file update_test.c.
ATF_TC_BODY | ( | past_to_unix | , | |
tc | ||||
) |
Definition at line 100 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_unixtime, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, mystdtime, set_mystdtime(), and UNUSED.
ATF_TC | ( | now_to_unix | ) |
ATF_TC_HEAD | ( | now_to_unix | , | |
tc | ||||
) |
Definition at line 120 of file update_test.c.
ATF_TC_BODY | ( | now_to_unix | , | |
tc | ||||
) |
Definition at line 123 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_unixtime, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, mystdtime, set_mystdtime(), and UNUSED.
ATF_TC | ( | future_to_unix | ) |
ATF_TC_HEAD | ( | future_to_unix | , | |
tc | ||||
) |
Definition at line 143 of file update_test.c.
ATF_TC_BODY | ( | future_to_unix | , | |
tc | ||||
) |
Definition at line 146 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_unixtime, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, mystdtime, set_mystdtime(), and UNUSED.
ATF_TC | ( | undefined_plus1_to_unix | ) |
ATF_TC_HEAD | ( | undefined_plus1_to_unix | , | |
tc | ||||
) |
Definition at line 166 of file update_test.c.
ATF_TC_BODY | ( | undefined_plus1_to_unix | , | |
tc | ||||
) |
Definition at line 169 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_unixtime, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, mystdtime, set_mystdtime(), and UNUSED.
ATF_TC | ( | undefined_minus1_to_unix | ) |
ATF_TC_HEAD | ( | undefined_minus1_to_unix | , | |
tc | ||||
) |
Definition at line 190 of file update_test.c.
ATF_TC_BODY | ( | undefined_minus1_to_unix | , | |
tc | ||||
) |
Definition at line 193 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_unixtime, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, mystdtime, set_mystdtime(), and UNUSED.
ATF_TC | ( | undefined_to_unix | ) |
ATF_TC_HEAD | ( | undefined_to_unix | , | |
tc | ||||
) |
Definition at line 214 of file update_test.c.
ATF_TC_BODY | ( | undefined_to_unix | , | |
tc | ||||
) |
Definition at line 217 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_unixtime, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, mystdtime, set_mystdtime(), and UNUSED.
ATF_TC | ( | unixtime_zero | ) |
ATF_TC_HEAD | ( | unixtime_zero | , | |
tc | ||||
) |
Definition at line 237 of file update_test.c.
ATF_TC_BODY | ( | unixtime_zero | , | |
tc | ||||
) |
Definition at line 240 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_unixtime, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, mystdtime, and UNUSED.
ATF_TC | ( | past_to_date | ) |
ATF_TC_HEAD | ( | past_to_date | , | |
tc | ||||
) |
Definition at line 260 of file update_test.c.
ATF_TC_BODY | ( | past_to_date | , | |
tc | ||||
) |
Definition at line 263 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_date, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, set_mystdtime(), and UNUSED.
ATF_TC | ( | now_to_date | ) |
ATF_TC_HEAD | ( | now_to_date | , | |
tc | ||||
) |
Definition at line 283 of file update_test.c.
ATF_TC_BODY | ( | now_to_date | , | |
tc | ||||
) |
Definition at line 286 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_date, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, set_mystdtime(), and UNUSED.
ATF_TC | ( | future_to_date | ) |
ATF_TC_HEAD | ( | future_to_date | , | |
tc | ||||
) |
Definition at line 306 of file update_test.c.
ATF_TC_BODY | ( | future_to_date | , | |
tc | ||||
) |
Definition at line 309 of file update_test.c.
References dns_test_begin(), dns_test_end(), dns_update_soaserial(), dns_updatemethod_date, ISC_FALSE, ISC_R_SUCCESS, isc_serial_lt(), ISC_TRUE, set_mystdtime(), and UNUSED.
ATF_TP_ADD_TCS | ( | tp | ) |
Definition at line 332 of file update_test.c.
isc_uint32_t mystdtime [static] |
Definition at line 35 of file update_test.c.
Referenced by ATF_TC_BODY(), isc_stdtime_get(), and set_mystdtime().