spec/integration/recipes/default.rb in itamae-1.2.19 vs spec/integration/recipes/default.rb in itamae-1.2.21

- old
+ new

@@ -333,5 +333,15 @@ unless run_command("echo -n Hello").stdout == "Hello" raise "run_command in local_ruby_block failed" end end end + +### + +v1 = node.memory.total +v2 = node[:memory][:total] +v3 = node['memory']['total'] + +unless v1 == v2 && v2 == v3 && v1 =~ /\A\d+kB\z/ + raise "failed to fetch host inventory value (#{v1}, #{v2}, #{v3})" +end