Clean up for rubocop #75
Annotations
2 errors and 1 warning
Run bundle exec rake spec:
spec/functions/simp_apache/auth_spec.rb#L39
simp_apache::auth with valid input generates apache settings for enabled file auth method
Failure/Error: is_expected.to run.with_params(file_auth_hash).and_return(expected_output.strip)
SyntaxError:
--> /home/runner/work/pupmod-simp-simp_apache/pupmod-simp-simp_apache/spec/fixtures/modules/simp_apache/lib/puppet/functions/simp_apache/auth.rb
Unmatched `{', missing `}' ?Unmatched `(', missing `)' ?
5 Puppet::Functions.create_function(:'simp_apache::auth') do
89 def auth_ldap(opts, content)
117 if opts['binddn']
> 118 content << "AuthLDAPBindDN \"#{opts['binddn']}\""
> 119 content << "AuthLDAPBindPassword '#{opts['bindpw'].gsub(''', "\\\\'")}'" if opts['bindpw']
120 end
126 end
135 end
/home/runner/work/pupmod-simp-simp_apache/pupmod-simp-simp_apache/spec/fixtures/modules/simp_apache/lib/puppet/functions/simp_apache/auth.rb:119: syntax error, unexpected `if' modifier, expecting ')' (SyntaxError�[m)�[m
...ndpw'].gsub(''', "\\\\'")}'" if opts['bindpw']�[m
... ^~�[m
/home/runner/work/pupmod-simp-simp_apache/pupmod-simp-simp_apache/spec/fixtures/modules/simp_apache/lib/puppet/functions/simp_apache/auth.rb:120: syntax error, unexpected `end', expecting '}'�[m
end�[m
^~~�[m
/home/runner/work/pupmod-simp-simp_apache/pupmod-simp-simp_apache/spec/fixtures/modules/simp_apache/lib/puppet/functions/simp_apache/auth.rb:126: syntax error, unexpected `end', expecting '}'�[m
end�[m
^~~�[m
/home/runner/work/pupmod-simp-simp_apache/pupmod-simp-simp_apache/spec/fixtures/modules/simp_apache/lib/puppet/functions/simp_apache/auth.rb:135: syntax error, unexpected `end', expecting '}'�[m
|
Run bundle exec rake spec
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading