Sha256: 9989231be8f4a2c4db1286dd4194e6d843bb8898101302c155819f5cf37095b2
Contents?: true
Size: 636 Bytes
Versions: 100
Compression:
Stored size: 636 Bytes
Contents
require 'test_plugin_helper' class ShellProcessJobTest < ActiveSupport::TestCase class TestProcessJob < ForemanInventoryUpload::Async::ShellProcess def command 'echo testing env: $testenv' end def env super.merge( 'testenv' => 'test_val' ) end end include FolderIsolation test 'Runs a process with environment vars' do label = Foreman.uuid TestProcessJob.perform_now(label) progress_output = ForemanInventoryUpload::Async::ProgressOutput.get(label) assert_match(/test_val/, progress_output.full_output) assert_match(/exit 0/, progress_output.status) end end
Version data entries
100 entries across 100 versions & 2 rubygems