Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
#128: Fix permissions for ServerSpec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Rombauts committed Jun 19, 2018
1 parent 9f82113 commit df10f8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packer/scripts/serverspec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ gem install bundler --no-ri --no-rdoc

cd /tmp/tests

sudo chown vagrant:vagrant /var/www
sudo chown vagrant:www-data /var/www
sudo chmod a=rx,ug+w /var/www

bundle install
BACKEND=exec bundle exec rake spec
3 changes: 2 additions & 1 deletion packer/scripts/vagrant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -e

date > /etc/vagrant_box_build_time

mkdir /home/vagrant/.ssh
mkdir -p /home/vagrant/.ssh

wget --no-check-certificate \
'https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' \
-O /home/vagrant/.ssh/authorized_keys
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/default/joomlatools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
describe '### joomlatools-console' do

describe command('joomla -V') do
its(:stdout) { should match /Joomla Console tools version \d\.\d+\.\d+/ }
its(:stdout) { should match /Joomla Console tools \d\.\d+\.\d+/ }
end

describe command('joomla site:create serverspectest') do
Expand Down

0 comments on commit df10f8a

Please sign in to comment.