Skip to content

Commit

Permalink
ddollarGH-268 Extended spec testing bluepill export to include additi…
Browse files Browse the repository at this point in the history
…onal port
  • Loading branch information
padcom committed Sep 26, 2012
1 parent df62edf commit 5e807ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion spec/foreman/export/bluepill_spec.rb
Expand Up @@ -4,7 +4,7 @@
require "tmpdir"

describe Foreman::Export::Bluepill, :fakefs do
let(:procfile) { FileUtils.mkdir_p("/tmp/app"); write_procfile("/tmp/app/Procfile") }
let(:procfile) { FileUtils.mkdir_p("/tmp/app"); write_procfile("/tmp/app/Procfile", "PORT2=$PORT2") }
let(:formation) { nil }
let(:engine) { Foreman::Engine.new(:formation => formation).load_procfile(procfile) }
let(:options) { Hash.new }
Expand Down
8 changes: 4 additions & 4 deletions spec/resources/export/bluepill/app-concurrency.pill
Expand Up @@ -7,11 +7,11 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil


app.process("alpha-1") do |process|
process.start_command = "./alpha"
process.start_command = "./alpha PORT2=$PORT2"

process.working_dir = "/tmp/app"
process.daemonize = true
process.environment = {"PORT"=>"5000"}
process.environment = {"PORT"=>"5000", "PORT2"=>"5100"}
process.stop_signals = [:quit, 30.seconds, :term, 5.seconds, :kill]
process.stop_grace_time = 45.seconds

Expand All @@ -26,11 +26,11 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil


app.process("alpha-2") do |process|
process.start_command = "./alpha"
process.start_command = "./alpha PORT2=$PORT2"

process.working_dir = "/tmp/app"
process.daemonize = true
process.environment = {"PORT"=>"5001"}
process.environment = {"PORT"=>"5001", "PORT2"=>"5101"}
process.stop_signals = [:quit, 30.seconds, :term, 5.seconds, :kill]
process.stop_grace_time = 45.seconds

Expand Down
6 changes: 3 additions & 3 deletions spec/resources/export/bluepill/app.pill
Expand Up @@ -7,11 +7,11 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil


app.process("alpha-1") do |process|
process.start_command = "./alpha"
process.start_command = "./alpha PORT2=$PORT2"

process.working_dir = "/tmp/app"
process.daemonize = true
process.environment = {"PORT"=>"5000"}
process.environment = {"PORT"=>"5000", "PORT2"=>"5100"}
process.stop_signals = [:quit, 30.seconds, :term, 5.seconds, :kill]
process.stop_grace_time = 45.seconds

Expand All @@ -29,7 +29,7 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil

process.working_dir = "/tmp/app"
process.daemonize = true
process.environment = {"PORT"=>"5100"}
process.environment = {"PORT"=>"5200"}
process.stop_signals = [:quit, 30.seconds, :term, 5.seconds, :kill]
process.stop_grace_time = 45.seconds

Expand Down

0 comments on commit 5e807ef

Please sign in to comment.