On Fri, Oct 4, 2013 at 8:29 AM, Noorul Islam K M <[email protected]> wrote: > Alex Tang <[email protected]> writes: > >> Hi >> >> 1) It seems that the Chef server URL supplied to JCloud-Chef must be a >> domain name, not IP address. Is it possible to supply an IP address? >> > > Otherwise SSL handshake will not work out of the box. > >> 2) This method, >> >> mChefContext.getApi().deleteDatabagItem(DATABAG_NAME, databagItemName); >> > > I think I could re-create this using a test recipe (Groovy) > > api.deleteDatabag("test") > Gson gson = new Gson() > api.createDatabag("test") > Properties config = new Properties() > config.setProperty("foo", "bar"); > def databagItem = api.createDatabagItem("test", new > DatabagItem("config", gson.toJson(config))) > def databagItemId = databagItem.getId() > assertEquals(databagItem.getId(), "config"); > databagItem = api.getDatabagItem("test", databagItemId) > assertEquals(databagItem.getId(), "config"); > databagItem = api.deleteDatabagItem("test", databagItemId) > assertEquals(databagItem.getId(), "config"); > databagItem = api.getDatabagItem("test", databagItemId) > assertNull(databagItem) > > And it is evident that, chef server output for delete is not the same as > documented here http://docs.opscode.com/api_chef_server.html#id11 > > See below the actual response. > > noman in ~/projects/cu097-chef-repo > G |master X| --> knife raw --method DELETE /data/test/config > {"name":"data_bag_item_test_config","json_class":"Chef::DataBagItem","chef_type":"data_bag_item","data_bag":"test","raw_data":{"id":"config", > "foo":"bar"}} > > Created a JIRA artifact > https://issues.apache.org/jira/browse/JCLOUDS-335 to track this. > >
Also e-mailed chef-dev mailing list. http://lists.opscode.com/sympa/arc/chef-dev/2013-10/msg00043.html Thanks and Regards Noorul
