0 votes
85 views
in General by (0 points)
closed by
You are creating a unit test using ChefSpec. Complete the code snippet to test the apache2 service. it 'installs the apache2 package' do expect(chef_run) to install package['apache2') end

it starts and enables the apache2 service' do expect(chef_run) to start_service('apache2') <missing code>
closed

1 Answer

0 votes
by (0 points)
 
Best answer
expect(chef run) to enable service(apache2')

Related questions

0 votes
1 answer 167 views
0 votes
1 answer 144 views

2.8k questions

2.8k answers

0 comments

76 users

Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...