Sha256: a7e2a9de8ba6439adca17f60099f8e044a312b83c833bd60bd34ade48c124502
Contents?: true
Size: 612 Bytes
Versions: 5
Compression:
Stored size: 612 Bytes
Contents
require_relative './test_xml_generator' class TestXmlLogrotate < Test::Unit::TestCase def test_logrotate builder = JenkinsJob::Builder.new builder.freestyle 'foo' do logrotate do days_to_keep 14 num_to_keep(-1) artifact_days_to_keep 2 artifact_num_to_keep(-1) end end actual = builder.config_as_xml_node('foo') { 'daysToKeep' => '14', 'numToKeep' => '-1', 'artifactDaysToKeep' => '2', 'artifactNumToKeep' => '-1' }.each do |k, v| assert_equal v, actual.xpath("./project/logRotator/#{k}").text, k end end end
Version data entries
5 entries across 5 versions & 1 rubygems