Commit 7566dbda authored by Jamie Tanna's avatar Jamie Tanna

Create a very basic recipe

Generate a hardcoded user
parent a35132e3
......@@ -16,3 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
user 'create user jamie' do
username 'jamie'
end
......@@ -31,5 +31,10 @@ describe 'user-cookbook::default' do
it 'converges successfully' do
expect { chef_run }.to_not raise_error
end
it 'creates the jamie user' do
expect(chef_run).to create_user('create user jamie')
.with(username: 'jamie')
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment