ImmutableSet.of("{\"foo\":\"bar\"}"));
assertEquals(statementList.size(), 3);
assertEquals(statementList.get(0), exec("{md} " + ChefSolo.DEFAULT_SOLO_PATH + "/data_bags"));
assertEquals(statementList.get(1), exec("{md} " + ChefSolo.DEFAULT_SOLO_PATH + "/data_bags/" + databag.getName()));
assertEquals(statementList.get(2).render(OsFamily.UNIX), expected.render(OsFamily.UNIX));
}
public void testCreateDatabagsIfNecessaryWithOneDatabagAndCustomPath() {
ImmutableList.Builder<Statement> statements = ImmutableList.builder();
DataBag databag = DataBag.builder().name("foo").item("item", "{\"foo\":\"bar\"}").build();