summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/stubs/netstat
Commit message (Collapse)AuthorAgeFilesLines
* eventscripts: kill_tcp_connections() should send connections to stdinMartin Schwenke2013-07-291-0/+3
| | | | | | | | | | | | | | | This avoids issuing multiple "ctdb killtcp" commands to terminate tcp connections, one per connection. This will considerably reduce the time when there is a large number of tcp connections. This also makes it possible to avoid calling "ctdb killtcp" when there are no connections. Add a couple of unit tests for killtcp and update eventscript unit test infrastructure to support. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a20d94717d2e4ab866d8a002cdf39c0669b74c6a)
* Tests - eventscripts - nmap and netstat stubs can pretend they weren't foundMartin Schwenke2011-08-301-0/+7
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 47f2843b4db767bcc724d8f972e0c2a850d5826f)
* Tests - Change variable used to fake listening TCP ports.Martin Schwenke2011-08-301-2/+2
| | | | | | | | Change from $FAKE_NETSTAT_TCP_LISTEN to $FAKE_TCP_LISTEN. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f19ba38e382034fba769145d0bfc81b2c2941563)
* Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/.Martin Schwenke2011-08-081-0/+99
This sets up a more useful convention and avoids future .gitignore problems. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 58c696dc600f1073e693930da061776b6fb199f2)