summaryrefslogtreecommitdiff
path: root/lib/common_test/test/ct_netconfc_SUITE_data
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'maint'Rickard Green2021-12-131-1/+1
|\ | | | | | | | | * maint: Update copyright year
| * Update copyright yearRickard Green2021-12-131-1/+1
| |
* | Fix typos in lib/common_testKian-Meng, Ang2021-12-052-3/+3
|/
* test suites: replace ?t: with test_server:Maxim Fedorov2021-09-081-1/+1
| | | | | | Removing ?t retained for backward compatibility allows to search for test_server callsites easier. Replace ?t:fail and test_server:fail with ct:fail.
* common_test: Remove unnecessary check as test do not use OpenSSHIngela Anderton Andin2021-08-302-71/+59
|
* Let a receiver of incoming NETCONF notifications be configuredAnders Svensson2021-06-281-15/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Module ct_netconfc supports incoming notifications by way of the RFC 5277 create-subscription RPC, a process that calls create_subscription/* receiving any subsequent notifications in its message queue. However, create-subscription is no longer the only way to subscribe to notifications: RFC 8639 added the establish-subscription RPC based on RFC 7950, YANG 1.1. The possibility of defining new RPCs in YANG invalidates the assumption that notifications are received only a consequence of any fixed set of RPCs. To be able to receive notifications regardless of how they originate, add a 'receiver' option() to allow a destination for incoming notifications (and possibly more in the future) to be specified when a session is created; at session/*, open/*, or only_open/*. A destination is anything that can be banged, as documented by erlang:send/2. Multiple destinations can be specified and take precedence over the pid() of a create_subscription/* caller. The behaviour is unchanged if no receiver is specified. Configuration of a receiver on connect/* should arguably either provide a default or contribute additional receivers, but this is inconsistent with option() capability, so a receiver on connect/* is simply ignored. Otherwise, the option handling is a little inconsistent, with some unused options being ignored and others being rejected. Possibly worth fixing, but not in this commit. There is no specific support for establish-subscription. Few of the RPC-specific functions in ct_netconfc provide anything but simple encode/decode, and there's little point in adding more functions when the list of RPCs is potentially endless. Arbitrary RPCs can be sent with send_rpc/*.
* common_test: Add modern ssh host keys to ct_netconfc_SUITEHans Nilsson2020-03-206-0/+42
|
* Update copyright yearRickard Green2020-03-131-1/+1
|
* Merge pull request #2197 from lbolla/spelling-mistakes-fixBjörn Gustavsson2019-04-101-1/+1
|\ | | | | Fix various spelling mistakes
| * Fix various spelling mistakesLorenzo Bolla2019-03-311-1/+1
| | | | | | | | Fix ERL-541 and various other unreported spelling mistakes.
* | Merge branch 'maint'Sverker Eriksson2019-02-111-0/+6
|\ \ | |/
| * [ct] Allow ct_netconfc:edit_config/3,4,5 to take a list of XML elementsSiri Hansen2019-01-311-0/+6
| | | | | | | | | | The yang RFC allows more than one top element of config data in an edit-config element.
* | Change "can not" into "cannot"Raimo Niskanen2018-07-271-2/+2
|/ | | | | I did not find any legitimate use of "can not", however skipped changing e.g RFCs archived in the source tree.
* Update copyright yearHenrik Nord2018-06-181-1/+1
|
* common_test: Remove EDoc comments in internal modulesHans Bolinder2018-06-071-4/+2
|
* common_test: Do not call erlang:get_stacktrace()Hans Bolinder2018-02-051-2/+1
|
* Update copyright yearHans Nilsson2017-06-143-3/+3
|
* [ct_netconfc] Start multiple sessions per SSH connectionSiri Hansen2017-05-083-9/+72
| | | | | | | | | | | | | The following new functions are added to ct_netconfc: * connect/1,2 - open an SSH connection to a netconf server * disconnect/1 - close the given SSH connectoin * session/1,2,3 - open an SSH channel on the give connection and send 'hello' to start a netconf session. This allows running multiple channels on on SSH connection, realizing one netconf session per channel. The existing ct_netconfc:open will always run one channel(session) per SSH connection.
* [ct test] Extent node startup timeouts in netconfc_remote_SUITESiri Hansen2016-07-081-1/+3
|
* [ct test] Monitor netconf server during transactionSiri Hansen2016-07-081-1/+5
| | | | | | | Netconf client tests fail every now and then with 'table_trans_timeout' with no obvious reason. A monitor of the maint netconf server process is now added - in case this process crashes during the transaction.
* [ct test] Check that crypto is loaded, or skip netconf testsSiri Hansen2016-06-092-10/+12
| | | | | Tests for ct_netconfc are failed instead of skipped if crypto can not be loaded. This is now corrected.
* [ct test] Reduce amount of data in netconfc1_SUITE:get_a_lotSiri Hansen2016-06-092-2/+2
| | | | | | | | This test case often fails with table_trans_timeout in the netconf server (ns.erl) on slow machines. The amount of data was originally reduced by commit 976214f8d738d4852348496df79f84264d899aba, but was faulty reverted by commit 171d7e2a161ef9270240aff0fa15a285df21c1ef. It is now reduced again...
* Don't generate ssh key files in netconf client testSiri Hansen2016-05-265-312/+161
| | | | | Generating the dsa files can be very slow on some machines. Use hardcoded files instead.
* Merge branch 'siri/cuddle-master'Siri Hansen2016-05-042-18/+30
|\ | | | | | | | | | | | | | | | | * siri/cuddle-master: Extend timer in test Update crashdump_viewer_SUITE with new release numbers Set longer timetrap when creating dsa files Check that ssh application exists before starting netconf tests Improve error control when starting ssh in netconf test
| * Extend timer in testSiri Hansen2016-04-131-1/+1
| | | | | | | | | | | | | | ct_netconfc_SUITE -> netconfc1_SUITE:close_while_waiting_for_chunked_data fails every now and then with {error,timeout} instead of {error,closed}. To overcome this, the timeout value in the failing call is now extended.
| * Set longer timetrap when creating dsa filesSiri Hansen2016-03-302-5/+7
| | | | | | | | ... in test for ct_netconfc.
| * Improve error control when starting ssh in netconf testSiri Hansen2016-03-302-12/+22
| |
* | update copyright-yearHenrik Nord2016-03-153-3/+3
|/
* Allow any ssh option when starting a netconf clientSiri Hansen2016-02-251-1/+2
| | | | | | | The netconf client in common_test was earlier very restrictive as to which ssh options the user could set. This is now changed, and any ssh option is now allowed. The netconf client will simply pass on any option, which it does not recognize, to ssh.
* [ct_netconfc] Fix XML parsing when multiple messages in packageSiri Hansen2016-02-182-14/+203
| | | | | | | | | If a ssh package contained more than one netconf end tag, then the second end tag was never detected in ct_netconfc:handle_data. Instead it was included in the XML data given to the xmerl parser, which then failed with reason "\"]]>\" is not allowed in content". This problem was introduced by OTP-13007.
* Merge branch 'siri/ct_netconfc/slow-down/OTP-13007' into maintSiri Hansen2015-12-092-7/+34
|\ | | | | | | | | | | | | | | | | | | * siri/ct_netconfc/slow-down/OTP-13007: Extended table_trans timer in order to handle big data on slow machines Don't log headings without content Speed up receive of many small packages Conflicts: lib/common_test/src/ct_conn_log_h.erl
| * Extended table_trans timer in order to handle big data on slow machinesSiri Hansen2015-12-042-2/+2
| | | | | | | | | | | | | | | | The test case netconfc1_SUITE:get_a_lot often fails with table_trans_timeout in the netconf server (ns.erl) on virtual machines. The correction is to overcome this problem. Amount of data used in the test case is also reduced a bit.
| * Speed up receive of many small packagesSiri Hansen2015-09-282-6/+33
| | | | | | | | | | When data from the netconf server was split into many ssh packages, the netconf client performed really bad. This is now improved.
* | Flush timeout message from message queue when canceling timerSiri Hansen2015-09-241-0/+23
|/ | | | | | | | | | | In ct_netconfc, if a timer expired 'at the same time' as the server sent the rpc-reply, the timeout message might already be in the client's message queue when the client removed the timer ref from its 'pending' list. This caused a crash in the client since the timer ref could no longer be found when handling the timeout message. This commit fixes the problem by always flushing the timeout message from the message queue when canceling a timer.
* Change license text to APLv2Bruce Yinhe2015-06-183-27/+30
|
* Merge branch 'maint'Zandra Hird2015-05-061-8/+11
|\ | | | | | | | | | | | | Conflicts: OTP_VERSION erts/vsn.mk lib/test_server/src/erl2html2.erl
| * Merge branch 'dgud/common_test/netconf-user-caps/OTP-12707' into maint-17Erlang/OTP2015-05-061-1/+1
| |\ | | | | | | | | | | | | * dgud/common_test/netconf-user-caps/OTP-12707: common_test: Add user capability option to hello
| | * common_test: Add user capability option to helloDan Gudmundsson2015-05-051-1/+1
| | |
| * | common_test: Recurse when there is more data in netconfDan Gudmundsson2015-05-041-7/+10
| |/ | | | | | | | | | | | | | | | | | | | | When several packets where receive in one packet ct_netconf failed to deliver them to the user. For example several subscritiption message could be in the buffer but only the first was sent to the user. Error handling could be improved, maybe the connection should be closed when unparseable packet arrives or timeout occurs.
* | Merge branch 'maint'Peter Andersson2015-03-182-12/+12
|\ \ | |/
| * Merge remote-tracking branch 'origin/peppe/common_test/enable_time_scaling' ↵Peter Andersson2015-03-182-12/+12
| |\ | | | | | | | | | | | | | | | | | | into maint * origin/peppe/common_test/enable_time_scaling: Enable timetrap scaling for all tests
| | * Enable timetrap scaling for all testsPeter Andersson2015-03-182-12/+12
| | |
* | | Merge branch 'maint'Peter Andersson2015-03-182-2/+14
|\ \ \ | |/ /
| * | Handle {ok,Data} in RPC reply (decode_rpc_reply)Peter Andersson2015-03-052-2/+14
| |/ | | | | | | OTP-12491
* | [ct_netconfc] Add optional parameters to edit-configSiri Hansen2014-09-232-3/+24
| | | | | | | | | | | | | | | | | | Earlier there was no way to add optional parameters like default-operation to an edit-config request sent with ct_netconfc:edit_config/3,4, you had to use ct_netconfc:send_rpc/2,3. For simplicity and completion, a new optional argument, OptParams, is now added to the edit_config function.
* | [ct] Add test with netconf server on remote nodeSiri Hansen2014-07-014-182/+332
|/ | | | | | The new test is related to support sequence seq12645. It tests that the netconf client process dies if the node hosting the netconf server terminates.
* Merge branch 'siri/ct_netconfc/close_session-timeout-hangs/OTP-11478' into maintSiri Hansen2013-11-291-0/+20
|\ | | | | | | | | * siri/ct_netconfc/close_session-timeout-hangs/OTP-11478: [common_test] Don't hang netconf client when close-session times out
| * [common_test] Don't hang netconf client when close-session times outSiri Hansen2013-11-211-0/+20
| | | | | | | | | | | | | | | | When the netconf server did not respond to the close-session request, the call to ct_netconfc:close_session/2 would hang forever waiting for the netconf client to terminate. This has been corrected. The client will now always terminate (and take down the connection) if the close-session request times out.
* | [common_test] Minor corrections in test of ct_netconfcSiri Hansen2013-11-222-7/+7
|/
* [ct_netconfc] Allow multiple elements inside filter in create_subscriptionSiri Hansen2013-06-251-0/+13
| | | | | | ct_netconfc:create_subscription only allows one XML element inside the 'filter' element. According to RFC5277 it should be allowed to add any number of elements inside the filter, so this is now corrected.