File: use_spec.rb

package info (click to toggle)
puppet-module-puppetlabs-mysql 3.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 740 kB
  • ctags: 65
  • sloc: ruby: 3,783; sh: 26; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'spec_helper'

describe command('puppet apply --detailed-exitcodes --execute "include mysql::client"') do
  its(:exit_status) { should eq 2 }
end

describe package('mysql-client') do
  it { should be_installed }
end

describe command('puppet apply --detailed-exitcodes --execute "include mysql::server"') do
  its(:exit_status) { should eq 2 }
end

describe package('mysql-server') do
  it { should be_installed }
end

describe service('mysql') do
  it { should be_enabled }
  it { should be_running }
end