From 80a775126777cd773708ca7e54c720d3f2b15211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 7 Jun 2023 15:28:23 +0300 Subject: [PATCH] Test for correct network in RSKj config --- .../kosmos_rsk/test/integration/rskj/rskj_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb b/site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb index 990722a..605d734 100644 --- a/site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb +++ b/site-cookbooks/kosmos_rsk/test/integration/rskj/rskj_test.rb @@ -21,3 +21,10 @@ end describe port(4444) do it { should be_listening } end + +describe parse_config_file('/etc/rsk/node.conf', { + assignment_regex: /^\s*([^=]*?)\s*=\s*(.*?)\s*$/ +}) do + its(['blockchain.config.name']) { should eq '"testnet"' } + its(['database.dir']) { should eq '/var/lib/rsk/database/testnet' } +end