File: docker_spec.rb

package info (click to toggle)
itamae 1.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 536 kB
  • sloc: ruby: 4,137; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'spec_helper'

describe file('/tmp/cron_stopped') do
  it { should be_file }
  its(:content) do
    expect(subject.content.lines.size).to eq 1
  end
end

# FIXME: cron service is not running in docker...
#
# root@3450c6da6ea5:/# ps -C cron
#   PID TTY          TIME CMD
# root@3450c6da6ea5:/# service cron start
# Rather than invoking init scripts through /etc/init.d, use the service(8)
# utility, e.g. service cron start
#
# Since the script you are attempting to invoke has been converted to an
# Upstart job, you may also use the start(8) utility, e.g. start cron
# root@3450c6da6ea5:/# ps -C cron
#   PID TTY          TIME CMD
# root@3450c6da6ea5:/#

# describe file('/tmp/cron_running') do
#   it { should be_file }
#   its(:content) do
#     expect(subject.content.lines.size).to eq 2
#   end
# end