Sha256: ad89ec0ff35003bdf15c6f576cbf91450173ee3f718c6301c67ee071087b7511

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

require File.expand_path('../support/helpers.rb', __FILE__)

describe 'mysql::server' do

  include Helpers::Mysql

  it 'has a secure operating system password' do
    assert_secure_password(:debian)
  end
  it 'has a secure root password' do
    assert_secure_password(:root)
  end
  it 'has a secure replication password' do
    assert_secure_password(:repl)
  end
  it 'installs the mysql packages' do
    node['mysql']['server']['packages'].each do |package_name|
      package(package_name).must_be_installed
    end
  end
  it 'has a config directory' do
    directory(node['mysql']['confd_dir']).must_exist.with(:owner, 'mysql').and(:group, 'mysql')
  end
  it 'runs as a daemon' do
    service(node['mysql']['service_name']).must_be_running
  end
  it 'creates a my.cnf' do
    file("#{node['mysql']['conf_dir']}/my.cnf").must_exist
  end
  describe 'debian' do
    it 'creates a config file for service control' do
      skip unless ['debian'].include?(node['platform_family'])
      file("#{node['mysql']['conf_dir']}/debian.cnf").must_exist
    end
  end
end

Version data entries

9 entries across 8 versions & 3 rubygems

Version Path
fast_food-0.1.2 chef/cookbooks/mysql/files/default/tests/minitest/server_test.rb
fast_food-0.1.1 chef/cookbooks/mysql/files/default/tests/minitest/server_test.rb
fast_food-0.1.0 chef/cookbooks/mysql/files/default/tests/minitest/server_test.rb
vagrant-openstack-0.0.4 tmp/librarian/cache/source/chef/site/877777683730772c36b1e6a3fc3aa2c3/mysql/version-uri/7b8c50111f33aa7b4c55950c2773dbec/package/files/default/tests/minitest/server_test.rb
vagrant-openstack-0.0.4 cookbooks/mysql/files/default/tests/minitest/server_test.rb
server_maint-0.0.8 lib/cookbooks/mysql/files/default/tests/minitest/server_test.rb
server_maint-0.0.7 lib/cookbooks/mysql/files/default/tests/minitest/server_test.rb
server_maint-0.0.6 lib/cookbooks/mysql/files/default/tests/minitest/server_test.rb
server_maint-0.0.5 lib/cookbooks/mysql/files/default/tests/minitest/server_test.rb