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@gmail.com>
Mon, 31 Mar 2014 02:32:29 +0000 (13:32 +1100)
commit2ed1f247186e27ace5d082ae5df324a0072b244b
tree2d0a975a652c453c8ca2149679a78e538a2d3490
parente5af4b517b7ad3f9e75f8c4b14c551d11116eaf6
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>
(Imported from commit 7fdd6b7861a4767cd3e2dfa76a7d7e7790efd840)
tests/eventscripts/11.natgw.001.sh [new file with mode: 0755]
tests/eventscripts/11.natgw.011.sh [new file with mode: 0755]
tests/eventscripts/11.natgw.012.sh [new file with mode: 0755]
tests/eventscripts/11.natgw.013.sh [new file with mode: 0755]
tests/eventscripts/11.natgw.014.sh [new file with mode: 0755]
tests/eventscripts/11.natgw.015.sh [new file with mode: 0755]
tests/eventscripts/scripts/local.sh
tests/eventscripts/stubs/ctdb
tests/eventscripts/stubs/ip