aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/test
AgeCommit message (Collapse)Author
2019-04-15Merge branch 'bmk/snmp/agent/20190411/test_suite_improvements'Micael Karlberg
2019-04-15Merge branch 'bmk/snmp/manager/20190410/test_suite_tweaking'Micael Karlberg
2019-04-12[snmp|manager|test] Try to estimate appropriate timeouts for start/stopMicael Karlberg
For the notify_started02 test case we (now) try estimate how long we should wait for completion (based on the time of the first iteration). On slow machines, it takes longer to start and stop the manager, so adjust the total timeout accordingly.
2019-04-11[snmp|agent|test] Test case info and cleanupMicael Karlberg
1) A test case failed due to the times retreived by get(snmpEngineTime) reported to large time diffs (this is basically a sanity check). Added some more info about time(s) to see if there are some "gaps" somewhere. The problem occurred on a slow Virtial Machine. 2) A previous (failing) test case failed to cleanup after itself (see above), which caused later test cases to fail. Specifically, the app top supervisor was not terminated, which caused the start agent function to fail (basically already_started).
2019-04-11[snmp|agent|test] Timestamps and test managerMicael Karlberg
Added common (formated) timestamp function(s). Made use of these in the verbosity module (for debug printouts) and in the test suite(s). I also *think* I found the cause for some if the test case failures (timeouts). For v3 (agent) test cases the test manager makes use of parts of the agent code: snmp_framework_mib and snmp_user_based_sm_mib. And since they store their data in snmpa_local_db, that also needs to be running. And this was the problem (I think). On some (slow) machines, the snmpa_local_db process from the *previous* test case might still be running when the we tried to start it. That meant that no new snmpa_local_db was started. Instead the old one, still running but terminating, was retain. For a while. Until it actually finally stopped. So the next operation towards snmpa_local_db, insert, simply hanged until the process terminated. This in combination with the fact that the packet server process, which was started using proc_lib, previously called init_ack before this init was actually done, could actually start and then at a much later time hang because some operation timed out (the packet server was hanging). Yuckety yuck-yuck.
2019-04-11[snmp|agent|test] More test tweakingMicael Karlberg
Improved test printouts (more with timestamps), also fixed the printouts of the (fake) local-db start result printout. Also updated the copyright end-dates.
2019-04-11[snmp|agent|test] The agent test local-db may already be startedMicael Karlberg
Handle when the agent test manager starts the fake local-db and that process is already running (for some reason).
2019-04-11[snmp|agent|test] Agent test manager start fixMicael Karlberg
The agent test manager had a bug during start that could potentially cause deadlock, but atleast could cause test cases to fail because of timeouts. The test manager (actually the "packet server") used proc_lib to start the process but it called the init_ack function before the init was actually complete. This was only a problem for v3 cases (where it did a bunch of further inits, including starting the local-db process). Also did debug/verbosity tweaking. Added a bunch of debug (verbosity) printouts for the agent test manager "packet server" during v3 init. Also made sure we could distinguish the "normal" local-db from the one used by the test manager (this is done by using a new short-name).
2019-04-11[snmp|agent|test] Improve the EXPECT printoutsMicael Karlberg
The EXPECT printouts has been improved. Partly by including a timestamp.
2019-04-11[snmp|agent|test] Tweaked the (agent) test managerMicael Karlberg
The test manager used in the agent tests has been tweaked in order to increase the readability (both of the code and the output).
2019-04-11[snmp|agent|test] Some minor tweaking of (agent) test suiteMicael Karlberg
Improved the test manager printouts to make it easier to diagnose problems...
2019-04-11Merge branch 'maint'Micael Karlberg
2019-04-11Merge branch 'bmk/snmp/20190328/get_mechanism/OTP-15691' into maintMicael Karlberg
2019-04-10[snmp|manager|test] Finding address of localhostMicael Karlberg
Some simple tweaking to find the "proper" address to localhost (to make test suite work in the office environment).
2019-04-10[snmp|manager|test] Improve init_per_testcaseMicael Karlberg
Try to handle "failures" during init_per_testcase such that if they are either throw or exit, then they are transformed into a skip.
2019-03-28[snmp|manager|test] Add bind_to for agentsMicael Karlberg
On some linux platforms "they" add a 127.0.1.1 in the hosts file, wich can cause problems for some (manager) test cases. So, just to be on the safe side, make sure we bind to the configured address. Note that this has nothing to do with the current issue.
2019-03-28[snmp|agent] Add the net-if data (Extra) argument to get-callbacksMicael Karlberg
Added the Extra (net-if data) argument to all the get- mechanism callback functions. OTP-15691
2019-03-28[snmp|agent] Add the default get-mechanism module snmpa_getMicael Karlberg
Added the snmpa_get module as the default get-mechanism for the agent. This has been done by simply moving the do_get, do_get_next and do_get_bulk functions from the snmpa_agent module. Some functions where also moved into the lib module (with the idea of beeing more generally useful). OTP-15691
2019-03-28[snmp|compiler|test] OTP-Mibs cleanupMicael Karlberg
Removed the last vestiges of the otp_mibs app from the compiler test suite (was still trying to use MIBs from otp_mibs).
2018-09-27[snmp] Cleanup before removing the otp_mibs appMicael Karlberg
OTP-14984
2018-09-21Merge branch 'maint'Henrik Nord
2018-09-21Update copyright yearHenrik Nord
2018-07-27Change "can not" into "cannot"Raimo Niskanen
I did not find any legitimate use of "can not", however skipped changing e.g RFCs archived in the source tree.
2018-06-11Add test caseRaimo Niskanen
2018-06-11Add test caseRaimo Niskanen
2017-11-09snmp: Correct netsnmp arglist and check for usable netsnmpIngela Anderton Andin
2017-10-27snmp: Add crypto precondition testIngela Anderton Andin
2017-07-28Process augments in pass after definitionsRaimo Niskanen
2017-06-14Update copyright yearHans Nilsson
2017-02-14Fixed typos in lib/snmpAndrew Dryga
2017-01-13Test enum refinement MIBRaimo Niskanen
2016-09-12Merge branch 'ingela/snmp/ipv6-tests' into maintIngela Anderton Andin
* ingela/snmp/ipv6-tests: snmp: Use ipv6 common test configuration check
2016-09-12snmp: Use ipv6 common test configuration checkIngela Anderton Andin
The test for ipv6 could return false positives which resulted in failing test cases due lack of full ipv6 support.It could be nice with a working run-time check but this will do for now.
2016-09-10snmp: Use built-in support for testing application filesIngela Anderton Andin
2016-06-28add snmp_agent_conf_test to modules.mkDaniel Goertzen
2016-06-22snmp tests demonstrating ERL-164, no string escaping for SNMP config filesDaniel Goertzen
2016-03-15update copyright-yearHenrik Nord
2016-02-17Makefiles: Remove test_server from include path and code pathBjörn Gustavsson
Since no test suites includede test_server.hrl, there is no need to have test_server in the include path or code path.
2016-02-17Eliminate use of test_server.hrl and test_server_line.hrlBjörn Gustavsson
As a first step to removing the test_server application as as its own separate application, change the inclusion of test_server.hrl to an inclusion of ct.hrl and remove the inclusion of test_server_line.hrl.
2015-06-18Change license text to APLv2Bruce Yinhe
2015-04-24snmp: Change to random use crypto. Remove use of erlang:nowErland Schönbeck
2014-09-30Try to increase test case timeoutsRaimo Niskanen
2014-08-25Raise timeout and see if testcases stabilizeRaimo Niskanen
2014-08-22Clean up config error handling and negative resultsRaimo Niskanen
2014-08-19Implement IPv4+IPv6 in MT managerRaimo Niskanen
2014-08-19Avoid test case known to failRaimo Niskanen
2014-08-19Improve testcase test for IPv6 capable hostRaimo Niskanen
2014-08-18Write manager IPv4+IPv6 testRaimo Niskanen
2014-07-30Rearrange test suite group structureRaimo Niskanen
2014-07-30Fix testcase for really dual ipRaimo Niskanen