From 984fc52916ae723589f55d9a45fdae51fc8fcefa Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 2 Jun 2021 17:45:50 +0100 Subject: [PATCH] sshkeys: Test that static data is included Signed-off-by: Ian Jackson --- apitest/at-otter.rs | 4 ++++ 1 file changed, 4 insertions(+) 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() ); } } -- 2.30.2