passing first export

This commit is contained in:
Raphael Randschau
2012-02-24 19:52:18 +01:00
parent 1127551369
commit 0b3da59947
4 changed files with 20 additions and 19 deletions
+2 -8
View File
@@ -35,7 +35,7 @@ describe Foreman::Export::Supervisord, :fakefs do
context "with alternate templates" do
let(:template_root) { "/tmp/alternate" }
let(:upstart) { Foreman::Export::Upstart.new("/tmp/init", engine, :template => template_root) }
let(:supervisord) { Foreman::Export::Upstart.new("/tmp/init", engine, :template => template_root) }
before do
FileUtils.mkdir_p template_root
@@ -43,10 +43,7 @@ describe Foreman::Export::Supervisord, :fakefs do
end
it "can export with alternate template files" do
upstart.export
File.read("/tmp/init/app.conf").should == "alternate_template\n"
pendign
pending
end
end
@@ -65,9 +62,6 @@ describe Foreman::Export::Supervisord, :fakefs do
end
it "can export with alternate template files" do
upstart.export
File.read("/tmp/init/app.conf").should == "default_alternate_template\n"
pending
end
end
+12 -1
View File
@@ -1,3 +1,4 @@
[program:app-alpha]
command=./alpha
autostart=true
@@ -7,4 +8,14 @@ stdout_logfile=/var/log/app/alpha-1.log
stderr_logfile=/var/log/app/alpha-1err.log
user=app
directory=/tmp/app
environment=PORT=5000
environment=
[program:app-bravo]
command=./bravo
autostart=true
autorestart=true
stopsignal=QUIT
stdout_logfile=/var/log/app/bravo-1.log
stderr_logfile=/var/log/app/bravo-1err.log
user=app
directory=/tmp/app
environment=