Sha256: 17e375bc204c077ef0e85618823b5e69ed164c1a0be259f90019ed6357615650
Contents?: true
Size: 579 Bytes
Versions: 5
Compression:
Stored size: 579 Bytes
Contents
require_relative './test_xml_generator' class TestXmlPassword < Test::Unit::TestCase def test_password builder = JenkinsJob::Builder.new builder.freestyle 'foo' do password 'ADMIN_PASS', 'PhxHFCjgSiXR2umXhALLq+RzqJBxODDJT4t9Tw5JXbI=' end actual = builder.config_as_xml_node('foo') { 'name' => 'ADMIN_PASS', 'value' => 'PhxHFCjgSiXR2umXhALLq+RzqJBxODDJT4t9Tw5JXbI=' }.each do |k, v| assert v, actual.xpath("./project/buildWrappers/EnvInjectPasswordWrapper/passwordEntries/EnvInjectPasswordEntry/#{k}").text end end end
Version data entries
5 entries across 5 versions & 1 rubygems