/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 # broken invocation
west #
 # fail as nothing to do
west #
 ipsec addconn --config /dne.conf
ipsec addconn: nothing to do, see --help
west #
 # fail as file not found
west #
 ipsec addconn --config /dne.conf connection
ERROR: ipsec addconn: could not open '/dne.conf': No such file or directory (errno 2)
ipsec addconn: loading config file '/dne.conf' failed
west #
 # fail as nothing to do
west #
 ipsec addconn --debug
ipsec addconn: nothing to do, see --help
west #
 # fail as nothing to do, --debug= ignored
west #
 ipsec addconn --debug=asdfasdf
whack: unrecognized --debug='asdfasdf' option ignored
ipsec addconn: nothing to do, see --help
west #
 # fail as nothing to do, --config not eaten
west #
 ipsec addconn --debug --config /dne.conf
ipsec addconn: nothing to do, see --help
west #
 # broken config setup
west #
 # will fail
west #
 ipsec pluto --config bad-config-setup-key.conf
FATAL ERROR: ipsec pluto: bad-config-setup-key.conf:7: unrecognized 'config setup' keyword 'unknown'
west #
 # should fail but doesn't, hence shutdown
west #
 ipsec pluto --config bad-config-setup-value.conf
ipsec pluto: plutodebug='aksdfjasd;fklj' invalid, keyword ignored
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 cp /tmp/pluto.log OUTPUT/bad-config-setup-value.log
west #
 # will be ignored
west #
 ipsec pluto --config obsolete-config-setup-key.conf
ipsec pluto: obsolete-config-setup-key.conf:7: warning: obsolete keyword ignored: virtual_private=1.2.3.4
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 cp /tmp/pluto.log OUTPUT/obsolete-config-setup-key.log
west #
 # broken conn section; should be grumpy but ignored
west #
 # will fail
west #
 ipsec pluto --config bad-conn-key.conf
FATAL ERROR: ipsec pluto: bad-conn-key.conf:9: unrecognized 'conn' keyword 'unknown'
west #
 # should fail?
west #
 ipsec pluto --config bad-conn-value.conf
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 cp /tmp/pluto.log OUTPUT/bad-conn-value.log
west #
 # will be ignored
west #
 ipsec pluto --config obsolete-conn-key.conf
ipsec pluto: obsolete-conn-key.conf:9: warning: obsolete keyword ignored: dpdaction=drop
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 cp /tmp/pluto.log OUTPUT/obsolete-conn-key.log
west #
 # now try to add the corresponding conn
west #
 ipsec start
Redirecting to: [initsystem]
west #
 # and why; --output==format
west #
 journalctl --output cat -xeu ipsec.service | grep -e FATAL -e warning
west #
 ipsec addconn --config bad-conn-key.conf    bad-conn-key
FATAL ERROR: ipsec addconn: bad-conn-key.conf:9: unrecognized 'conn' keyword 'unknown'
west #
 ipsec addconn --config bad-conn-value.conf  bad-conn-value
"bad-conn-value": warning: debug=asdlfasdfj invalid, ignored
"bad-conn-value": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=%any match an interface)
west #
