support testmode in chef

Change-Id: I9c43ff2aaf3ae96aa4ef826e0a0caddffffbaba2