chiark / gitweb /
mtest: Use --pubkeys-elide instead of --output-version
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Dec 2019 14:00:41 +0000 (14:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:56:53 +0000 (21:56 +0000)
We don't want our basic tests of make-secnet-sites to produce an
artificially old output version.

But also it's not really convenient for these tests to make a pubkeys
directory.  (That functionality is tested by test-example's sites.conf
generator and stest's uses of the resulting pubkeys directory.)

So use --pubkeys-elide, conveniently producing a test case for that
option, which we were previously lacking.

Because we don't pass --pubkeys-dir, the result is that the output
paths contain the default pubkeys directory.  That's OK.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
mtest/e-basic.conf
mtest/t-basic
mtest/t-prefix

index 5e228fe613b93ea015fd1759697806cc85ee9c38..4883dbc2918aad41abbc076a906ea7c27b876243 100644 (file)
@@ -15,7 +15,7 @@ vpn-data {
     in {
       inside {
         name "test-example/in/inside";
-        key rsa-public("65537","130064631890186713927887504218626486455931306300999583387009075747001546036643522074275473238061323169592347601185592753550279410171535737146240085267000508853176463710554801101055212967131924064664249613912656320653505750073021702169423354903540699008756137338575553686987244488914481168225136440872431691669");
+        peer-keys "/var/lib/secnet/pubkeys/peer.inside";
         address "[127.0.0.1]"; port 16910;
         mobile True;
         link netlink {
@@ -27,7 +27,7 @@ vpn-data {
     out {
       outside {
         name "test-example/out/outside";
-        key rsa-public("65537","129251483458784900555621175262818292872587807329014927540074484804119474262261383244074013537736576331652560727149001626325243856012659665194546933097292703586821422085819615124517093786704646988649444946154384037948502112302285511195679291084694375811092516151263088200304199780052361048758446082354317801941");
+        peer-keys "/var/lib/secnet/pubkeys/peer.outside";
         address "[::1]"; port 16900;
         link netlink {
           routes "172.18.232.0/29";
index 8f22500fb9c6c2476b44e2cdbf2cff300765d6ec..34a4ad02693bbda39ed5cba2a0ff8fcd7497a469 100755 (executable)
@@ -2,7 +2,7 @@
 
 source mtest/common.tcl
 
-run-mss --no-conf-key-prefix --output-version=1 test-example/sites $tmp/out.conf
+run-mss --no-conf-key-prefix --pubkeys-elide test-example/sites $tmp/out.conf
 
 set seddery { sed -n 's/^[ \t]*//; /^[^#]/p' }
 diff  mtest/e-basic.conf $tmp/out.conf $seddery
index ee9938db0da20a5783aeb4e5487f289b056cdc70..d53b3cb4ce9dfc25fdbef6339e79bf51e6a6f6fe 100755 (executable)
@@ -2,7 +2,7 @@
 
 source mtest/common.tcl
 
-run-mss -Ppprefix --no-conf-key-prefix --output-version=1 test-example/sites $tmp/out.conf
+run-mss -Ppprefix --no-conf-key-prefix --pubkeys-elide test-example/sites $tmp/out.conf
 
 diff  mtest/e-basic.conf $tmp/out.conf \
     "sed -e 's/vpn/pprefixvpn/g; s/^all-sites/pprefix&/' | $seddery" \