[chef] Serverspec and Data Bags


Chronological Thread 
  • From: Jimmy Huang < >
  • To:
  • Subject: [chef] Serverspec and Data Bags
  • Date: Thu, 12 Mar 2015 10:58:48 -0700

Hi,

I am very new to Chef and the TDD workflow.  I was able to write a simple unit test with ChefSpec to make sure users in my users data bag get created with some mocking using the create_data_bag inside the ChefSpec::ServerRunner.new block.  I would like to extend this check to my Serverspec integration testing, but I am struggling with how to stub/mock my users data bag in Serverspec.  Thank you for your help and guidance.

Jimmy



Archive powered by MHonArc 2.6.16.

§