BIND 10 trac1114, created. 004afad6ea3fba7c8dd7730428b50fd770daec66 [master] update the ChangeLog entry for trac928, trac929 and trac930
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Aug 15 07:26:19 UTC 2011
The branch, trac1114 has been created
at 004afad6ea3fba7c8dd7730428b50fd770daec66 (commit)
- Log -----------------------------------------------------------------
commit 004afad6ea3fba7c8dd7730428b50fd770daec66
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Mon Aug 15 14:59:08 2011 +0900
[master] update the ChangeLog entry for trac928, trac929 and trac930
commit f20be125d667bceea0d940fc5fabf87b2eef86cd
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Aug 9 15:57:22 2011 +0900
[trac930] revise the entry of ChangeLog for trac928, trac929 and trac930
commit fcc707041d663b98c1992cdd1402cc183155d3c0
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Aug 5 16:24:03 2011 +0900
[trac930]
- revise header comments in each test script
- replace some hard-coded time strings with the constants defined in the
setUp function
- merged several checks about B10_FROM_SOURCE into the TestOSEnv class
commit da5d5926cb26ca8dbdae119c03687cd3415f6638
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Aug 5 14:48:27 2011 +0900
[trac930]
- change address for test to 127.0.0.1 due to platform 127.0.0.2 can't be
assigned
- remove unnecessary thread.Event.wait()
- add thread.Event.clear() after thread.Event.wait()
commit 0314c7bb66b85775dea73c95463eed88e9e286c3
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Aug 3 11:41:05 2011 +0900
[trac930] refactor unittests
- remove time.sleep from various unittests and add in the "run" method in
ThreadingServerManager
- adjust the sleep time (TIMEOUT_SEC)
- join some small unittests
(test_start_with_err, test_command_status, test_command_shutdown)
commit b8cecbbd905c10d28bcb905def7160d9e406dac4
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Aug 2 22:00:11 2011 +0900
[trac930] add comments about abstracts of the test scripts in their headers
commit 7a31e95e63013a298b449573cc5336bcd64a0419
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Aug 2 21:44:07 2011 +0900
[trac930] modify stats.py
- add more documentations into update_modules, get_statistics_data and
update_statistics_data methods
- modify two methods: "update_modules" and "get_statistics_data" methods raise
StatsError instead of just returning None, when communication between stats
module and config manager is failed or when it can't find specified
statistics data.
- also modify the unittest depending on the changes of these behaviors.
commit e18a678b62d03729f065c40650d7183e2f260b22
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Aug 2 20:17:28 2011 +0900
[trac930] modify b10-stats_test.py
- set the constant variables in the setUp method in the TestUtilties class,
and compare values returned from the functions with these constants in
testing methods.
[trac930] remove the tearDown method which has no test case in the TestCallback
class
commit 1d1a87939a010bd16ed23cd817261e9a655bf98f
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Aug 2 19:57:58 2011 +0900
[trac930] remove tailing whitespaces.
commit c6948a6df9aeedd3753bc4c5e3a553088cd98f63
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Mon Aug 1 18:38:35 2011 +0900
[trac930] raise StatsError including errors in the stats spec file
commit db0371fc9e5c7a85ab524ab7bc0b8169b9ba0486
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Mon Aug 1 18:21:23 2011 +0900
[trac930] rename the function name
- rename the name of 'parse_spec' to 'get_spec_defaults' in the result of
consideration of what it is doing
- modify the description of the function as docstring
- fix unitttests for the stats module depending on the function name
commit e906efc3747f052128eef50bed0107a0d53546c8
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 29 22:11:38 2011 +0900
[trac930] remove a unnecessary x bit from stats_httpd.py.in
commit d86a9dceaddf5a2cee44170e6e677f492df5e0ea
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Thu Jul 28 22:07:15 2011 +0900
[trac930] modify logging
add loggings and new messages for logging
remove unused messages from the message file
add test logging names into unittest scripts
commit 4c2732cbf0bb7384ed61ab3604855f143a0c6c5d
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Jul 27 20:45:18 2011 +0900
[trac930] modify the update_modues function
There is no part of statistics category in the spec file of a module which has
no statistics data.
commit aaffb9c83c0fe59d9c7d590c5bea559ed8876269
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Jul 27 16:49:21 2011 +0900
[trac930]
- correct error messages in bindctl
it prints together with arguments.
- modify the command_show function
it reports statistics data of the module even if name is not specified.
- add/modify unittests depending on the changes of error messages
commit e8a22472e58bfc7df4a661d665152fe4d70454a6
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Jul 27 16:42:54 2011 +0900
[trac930] remove unnecessary a white space
commit 2c22d334a05ec1e77299a6c55252f1d1c33082af
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Jul 27 10:18:07 2011 +0900
[trac930] add a test pattern which the set command with a non-existent item
name is sent
commit 8a24b9066537caf373d0cfc11dca855eb6c3e4d9
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Jul 27 10:14:57 2011 +0900
[trac930] modify parse_spec function
returns empty dict if list-type is not specified in the argument
commit 7275c59de54593d3baca81345226dda2d3a19c30
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 22 21:40:07 2011 +0900
[trac930] fix conflicts with trac1021
commit bcf37a11b08922d69d02fa2ea1b280b2fa2c21e0
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 22 18:50:41 2011 +0900
[trac930] add changes because query counter names described in the specfile are changed.
commit a142fa6302e1e0ea2ad1c9faf59d6a70a53a6489
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 22 18:45:19 2011 +0900
[trac930] add the logging when the validation of statistics data fails
commit ae8748f77a0261623216b1a11f9d979f555fe892
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 22 18:43:26 2011 +0900
[trac930] Add unittests to test sumitStatistics with the validation of statistics data and add mock ModuleSpec class
commit d0d5a67123b8009e89e84515eee4f93b37ec8497
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 22 18:41:34 2011 +0900
[trac930] Add prototypes of validator_typea and registerStatisticsValidator
- validator_type -- a type of statistics validation function
- registerStatisticsValidator -- the function to register the validation function
commit a9a976d2a5871f1501018d697d3afd299ceec5da
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 22 18:37:22 2011 +0900
[trac930]
- Add implementation to validate statistics data
-- When validation is success, it sends data to statistics module. But when it fails, it doesn't send and logs the message.
- Add the function to register the validation function into the class
commit df9a8f921f0d20bd70c519218335357297bffa7d
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 22 18:32:22 2011 +0900
[trac930] add the helper functions which are used around the registration of the function to validate the statistics data.
commit e95625332a20fb50afe43da2db0cab507efe8ebe
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 22 18:28:40 2011 +0900
[trac930] add new messages into the message file of Auth and Boss
when validation of statistics data to send to statistics module is failed.
commit 28cad73dff9dae43a38ad7dafbee406c690fb77c
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Jul 20 10:00:29 2011 +0900
[trac930] add statistics validation for bob
commit 4de3a5bdf367d87247cb9138f8929ab4798f014e
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Jul 13 20:25:54 2011 +0900
[trac930]
- increase seconds in sleep time which is before HTTP client connects to the server
- delete 'test_log_message' because of the deletion of original function
commit aa108cc824539a1d32a4aa2f46f9e58171074a9e
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 21:22:34 2011 +0900
[trac930] remove unneeded empty TODO comments
commit 691328d91b4c4d15ace467ca47a3c987a9fb52b9
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 21:09:41 2011 +0900
[trac930] add new entry for #928-#930
commit c06463cf96ea7401325a208af8ba457e661d1cec
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 20:08:22 2011 +0900
[trac930] refurbish the unittests for new stats module, new stats httpd module
and new mockups and utilities in test_utils.py
commit c074f6e0b72c3facf6b325b17dea1ca13a2788cc
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 19:56:24 2011 +0900
[trac930] modify Stats
- remove unneeded subject and listener classes
- add StatsError for handling errors in Stats
- add some new methods (update_modules, update_statistics_data and
get_statistics_data)
- modify implementations of existent commands(show and set) according changes
stats.spec
- remove reset and remove command because stats module couldn't manage other
modules' statistics data schema
- add implementation of strict validation of each statistics data
(If the validation is failed, it puts out the error.)
- stats module shows its PID when status command invoked
- add new command showschema invokable via bindctl
- set command requires arguments of owner module name and statistics item name
- show and showschema commands accepts arguments of owner module name and
statistics item name
- exits at exit code 1 if got runtime errors
- has boot time in _BASETIME
commit daa1d6dd07292142d3dec5928583b0ab1da89adf
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 19:40:15 2011 +0900
[trac930]
- remove "stats-schema.spec" setting and getting statistics data schema via
this spec file
- add "version" item in DEFAULT_CONFIG
- get the address family by socket.getaddrinfo function with specified
server_address in advance, and create HttpServer object once, in stead of
creating double HttpServer objects for IPv6 and IPv4 in the prior code
(It is aimed for avoiding to fail to close the once opened sockets.)
- open HTTP port in start method
- avoid calling config_handler recursively in the except statement
- create XML, XSD, XSL documents after getting statistics data and schema from
remote stats module via CC session
- definitely close once opened template file object
commit e7b4337aeaa760947e8e7906e64077ad7aaadc66
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 16:33:59 2011 +0900
[trac930] update spec file of stats module
- update description of status command, shutdown command and show command
- change argument of show command (Owner module name of statistics data can be
specified)
- change argument of set command (Owner module name of statistics data is
always required)
- add showschema command which shows statistics data schema of each module
specified)
- disabled reset command and remove command
commit 0b235902f38d611606d44661506f32baf266fdda
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 16:21:49 2011 +0900
[trac930] update argument name and argument format of set command in auth module and boss module
and also update related unittests of their modules
commit c19a295eb4125b4d2a391de65972271002412258
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 16:18:38 2011 +0900
[trac930] remove description about removing statistics data by stats module
update example format in bindctl when show command of stats module is invoked
commit 9261da8717a433cf20218af08d3642fbeffb7d4b
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 16:13:17 2011 +0900
[trac930] add a column "Owner" in the table tag
commit d4078d52343247b07c47370b497927a3a47a4f9a
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 16:12:09 2011 +0900
[trac930] remove descriptions about "stats-schema.spec" and add description about new
features because stats module can be requested to show statistics data schema.
commit 1aa728ddf691657611680385c920e3a7bd5fee12
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 16:00:30 2011 +0900
[trac930] add utilities and mock-up modules for unittests of
statistics modules and change some environ variables (PYTHONPATH,
CONFIG_TESTDATA_PATH) in Makefile
test_utilies.py internally calls msgq, cfgmgr and some mock modules
with threads for as real situation as possible.
commit 1768e822df82943f075ebed023b72d225b3b0216
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:57:41 2011 +0900
[trac930] remove unneeded mockups, fake modules and dummy data
commit 326885a3f98c49a848a67dc48db693b8bcc7b508
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:55:55 2011 +0900
[trac930] remove unneeded specfile "stats-schema.spec"
commit 3e0a0e157bc2a1ca7ad9efb566755ec61eedd180
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Aug 9 15:53:56 2011 +0900
[trac929]
consideration for buffer overflow
- use std::vector<char> instead of char[]
- use strncmp() instead of strcmp()
- shorten length of char array for the buffer
(not directly related to buffer overflow)
add more unittests for some wrong type formats into both c++ and python codes
(unittests for the previous change git e9620e0d9dd3d967bcfb99562f13848c70538a44)
- date-time-type format not ending with "Z"
- date-type format ending with "T"
- time-type format ending with "Z"
commit 93a7f7d1495795b731242e270b6dc76b1ad6b0dc
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Aug 5 14:22:28 2011 +0900
[trac929] add more strict check for date and time format (add reverse check)
commit 87e410c0061df72fe69fb47c7456ae54c609b219
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 29 20:07:23 2011 +0900
[trac929] implement some methods checking config_data into the mock of
module_spec, but actually just copy such methods from the original module_spec
into the mock.
commit 1ddc6158f7544c95742757654863379fff847771
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 29 19:59:08 2011 +0900
[trac929] fix the invalid spec file for module_spec.py
remove format_type undefined in module_spec.py from stats-schema.spec
commit 0f787178301c7cbf59fc7c516ebe920a33e22429
Author: Jelte Jansen <jelte at isc.org>
Date: Wed Jul 27 18:32:06 2011 +0200
[trac929] replace != None with is not None
commit 9b6993b6f6507fab1bc8956f727cca60c8c9243a
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Jul 26 18:04:43 2011 +0900
[trac929] changed into the exact way of checking whether the value is "None" or
not in the "if" branch as pointed out in the reviewing.
commit 7bda7762ab9243404bbd0964908b3365cd052969
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Jul 19 21:02:12 2011 +0900
[trac929]
add unit tests of the methods using some dummy spec files with the dummy data of statistics specification
- getStatisticsSpec()
- validateStatistics()
- validateStatistics()
- check_format()
add include of boost_foreach
update the year of copyright
commit 7cf7ec751e4f776dbb60cd290cea4fb217173cdb
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Jul 19 20:57:32 2011 +0900
[trac929]
add some methods for statistics specification
- getStatisticsSpec()
- validateStatistics()
- validateStatistics()
update the year of copyright
commit d5ded106a85afaf695e59941bd382bca4811fe46
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Tue Jul 19 20:55:39 2011 +0900
[trac929]
addition and modification as a variant of the statistics part of module_spec.py
- add check_format which checks whether the given element is a valid statistics specification
- modify check_data_specification to add check of statistics specification
- add getStatisticsSpec() which returns statistics specification
- add two of validateStatistics which check whether specified data is valid for statistics specification
- modify validateItem to add check of item_format in specification
update the year of copyright
commit c4ef641d07c7ddfd6b86d6b5ae944ab9a30d6990
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:47:09 2011 +0900
[trac929] add unittest of "get_statistics_spec"
commit e443a325b31edefe9cd4da71e10497db6544468c
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:46:57 2011 +0900
[trac929] add unittests for the functions:
- validate_format
- check_format
- validate_format
commit cddcafd790288f5e666198effa142132b6fc43fa
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:46:46 2011 +0900
[trac929] add "validate_statistics" which validates statistics specification in the spec file
It checks data types and data format of statistics specification
commit ab5085e81007711f9d18ed77f3d78f51cf37545c
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:46:27 2011 +0900
[trac929] add "get_statistics_spec" into cfgmgr.py
it pushes contents in statistics category of each spec file.
commit 5e621bce015d2847104303fba574989fdf0399e0
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:45:28 2011 +0900
[trac929] add COMMAND_GET_STATISTICS_SPEC for "get_statistics_spec"
commit 7d5c3d56743fb696405f509663b3e1558fa72e25
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:45:15 2011 +0900
[trac929] add a statistics category into "spec2.spec"
and modify message string to be compared with in EXPECT_EQ
commit 990247bfd2248be5ae4293928101eec87e1997e9
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Fri Jul 8 15:44:40 2011 +0900
[trac929] add some spec files for unittest of statistics category
commit e9e36557849ba6b650e503841596bd31034c1936
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Wed Jul 20 09:00:53 2011 +0900
[trac928] add statistics category and statistics items into some spec files (bob.spec, auth.spec, stats.spec)
-----------------------------------------------------------------------
More information about the bind10-changes
mailing list