File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 $json_packages = $jira::params::json_packages,
2222 # lint:ignore:parameter_order
2323 $uri = $jira::tomcat_address ? {
24- undef => ' 127.0.0.1 ' ,
24+ undef => ' localhost ' ,
2525 default => $jira::tomcat_address ,
2626 },
2727 # lint:endignore
Original file line number Diff line number Diff line change 1010
1111 regexp_pe = %r{^#\! /opt/puppet/bin/ruby$}
1212 regexp_oss = %r{^#\! /opt/puppetlabs/puppet/bin/ruby$}
13- regexp_url = %r{ http://127.0.0.1 \ : 8080/rest/api/2/serverInfo}
13+ regexp_url = Regexp . new ( Regexp . escape ( ' http://localhost :8080/rest/api/2/serverInfo' ) )
1414 external_fact_file = '/etc/puppetlabs/facter/facts.d/jira_facts.rb'
1515
1616 it { is_expected . to contain_file ( external_fact_file ) }
4848
4949 it do
5050 is_expected . to contain_file ( external_fact_file ) . \
51- with_content ( %r{ url = 'http://127.0.0.1 :8080/jira} )
51+ with_content ( %r{ url = 'http://localhost :8080/jira} )
5252 end
5353 end
5454 end
You can’t perform that action at this time.
0 commit comments