Sha256: 6a97d1f0de41b8c87981ca8b2d8e07158fde0df85e5d3ab439a2e9d20f083171
Contents?: true
Size: 743 Bytes
Versions: 52
Compression:
Stored size: 743 Bytes
Contents
require 'test_plugin_helper' require 'foreman_tasks/test_helpers' 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 ForemanTasks::TestHelpers::WithInThreadExecutor include FolderIsolation test 'Runs a process with environment vars' do label = Foreman.uuid ForemanTasks.sync_task(TestProcessJob, 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
52 entries across 52 versions & 1 rubygems