From: Ian Jackson Date: Wed, 2 Jun 2021 16:45:50 +0000 (+0100) Subject: sshkeys: Test that static data is included X-Git-Tag: otter-0.7.0~100 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=984fc52916ae723589f55d9a45fdae51fc8fcefa;p=otter.git sshkeys: Test that static data is included Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index 292bfe34..8e6acc2f 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -232,6 +232,10 @@ impl Ctx { ds.subst("@authkeys@.static")?)?; self.otter(&set_keys)?; + + assert_eq!( BufReader::new(File::open(ds.subst("@authkeys@")?)?) + .lines().nth(2).unwrap().unwrap(), + STATIC_TEST.strip_suffix("\n").unwrap() ); } }