ctdb-tests: Add some tests for 11.natgw eventscript
authorMartin Schwenke <martin@meltin.net>
Fri, 14 Mar 2014 05:29:01 +0000 (16:29 +1100)
committerAmitay Isaacs <amitay@samba.org>
Wed, 26 Mar 2014 03:21:41 +0000 (04:21 +0100)
commit7fdd6b7861a4767cd3e2dfa76a7d7e7790efd840
tree10a8bafc0f96e89d3df24e796cd7ec2f62ade3c7
parentfeeb9843bf46d00beb10f3e959ba0f73f5e33e8c
ctdb-tests: Add some tests for 11.natgw eventscript

This includes adding support for:

* Configuring fake NATGW state in the eventscript unit tests

* "natgwlist" and "setnatgwstate" in ctdb command stub

* ip command stub to default to "main table" when no table specified,
  allow routes to be added without "dev" option (just add a default
  dev), support "metric" option

Signed-off-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/eventscripts/11.natgw.001.sh [new file with mode: 0755]
ctdb/tests/eventscripts/11.natgw.011.sh [new file with mode: 0755]
ctdb/tests/eventscripts/11.natgw.012.sh [new file with mode: 0755]
ctdb/tests/eventscripts/11.natgw.013.sh [new file with mode: 0755]
ctdb/tests/eventscripts/11.natgw.014.sh [new file with mode: 0755]
ctdb/tests/eventscripts/11.natgw.015.sh [new file with mode: 0755]
ctdb/tests/eventscripts/scripts/local.sh
ctdb/tests/eventscripts/stubs/ctdb
ctdb/tests/eventscripts/stubs/ip