- 03 Oct, 2011 38 commits
-
-
Naoki Kambe authored
test_utils.py - 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()
-
Naoki Kambe authored
- 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)
-
Naoki Kambe authored
headers
-
Naoki Kambe authored
- 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.
-
Naoki Kambe authored
- 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. - remove the tearDown method which has no test case in the TestCallback class
-
Naoki Kambe authored
-
Naoki Kambe authored
-
Naoki Kambe authored
- 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
-
Naoki Kambe authored
-
Naoki Kambe authored
remove unused messages from the message file add test logging names into unittest scripts
-
Naoki Kambe authored
statistics category in the spec file of a module which has no statistics data.
-
Naoki Kambe authored
- 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
-
Naoki Kambe authored
-
Naoki Kambe authored
non-existent item name is sent
-
Naoki Kambe authored
is not specified in the argument
-
Naoki Kambe authored
-
Naoki Kambe authored
specfile are changed.
-
Naoki Kambe authored
fails
-
Naoki Kambe authored
of statistics data and add mock ModuleSpec class
-
Naoki Kambe authored
registerStatisticsValidator - validator_type -- a type of statistics validation function - registerStatisticsValidator -- the function to register the validation function
-
Naoki Kambe authored
- 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
-
Naoki Kambe authored
registration of the function to validate the statistics data.
-
Naoki Kambe authored
when validation of statistics data to send to statistics module is failed.
-
Naoki Kambe authored
-
Naoki Kambe authored
- 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
-
Naoki Kambe authored
-
Naoki Kambe authored
httpd module and new mockups and utilities in test_utils.py
-
Naoki Kambe authored
- 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
-
Naoki Kambe authored
- 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
-
Naoki Kambe authored
- 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
-
Naoki Kambe authored
auth module and boss module and also update related unittests of their modules
-
Naoki Kambe authored
module update example format in bindctl when show command of stats module is invoked
-
Naoki Kambe authored
-
Naoki Kambe authored
description about new features because stats module can be requested to show statistics data schema.
-
Naoki Kambe authored
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.
-
Naoki Kambe authored
-
Naoki Kambe authored
-
JINMEI Tatuya authored
-
- 30 Sep, 2011 2 commits
-
-
JINMEI Tatuya authored
-
JINMEI Tatuya authored
-