Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHoenscheid committed Aug 24, 2023
1 parent 5422dbf commit 0e4d526
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions spec/classes/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class { 'postgresql::globals':

it 'sets postgres password' do
expect(subject).to contain_exec('set_postgres_postgrespw_main').with('command' => '/usr/bin/psql -c "ALTER ROLE \"postgres\" PASSWORD ${NEWPASSWD_ESCAPED}"',
'user' => 'postgres',
'environment' => ['PGPASSWORD=new-p@s$word-to-set', 'PGPORT=5432', 'NEWPASSWD_ESCAPED=$$new-p@s$word-to-set$$'],
'unless' => "/usr/bin/psql -h localhost -p 5432 -c 'select 1' > /dev/null")
'user' => 'postgres',
'environment' => ['PGPASSWORD=new-p@s$word-to-set', 'PGPORT=5432', 'NEWPASSWD_ESCAPED=$$new-p@s$word-to-set$$'],
'unless' => "/usr/bin/psql -h localhost -p 5432 -c 'select 1' > /dev/null")
end
end

Expand All @@ -90,9 +90,9 @@ class { 'postgresql::globals':

it 'sets postgres password' do
expect(subject).to contain_exec('set_postgres_postgrespw_main').with('command' => ['/usr/bin/psql -c "ALTER ROLE \"postgres\" PASSWORD ${NEWPASSWD_ESCAPED}"'],
'user' => 'postgres',
'environment' => ['PGPASSWORD=new-p@s$word-to-set', 'PGPORT=5432', 'NEWPASSWD_ESCAPED=$$new-p@s$word-to-set$$'],
'unless' => "/usr/bin/psql -h localhost -p 5432 -c 'select 1' > /dev/null")
'user' => 'postgres',
'environment' => ['PGPASSWORD=new-p@s$word-to-set', 'PGPORT=5432', 'NEWPASSWD_ESCAPED=$$new-p@s$word-to-set$$'],
'unless' => "/usr/bin/psql -h localhost -p 5432 -c 'select 1' > /dev/null")
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/puppet/type/postgresql_conn_validator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env ruby # rubocop:disable Lint/ScriptPermission
#! /usr/bin/env ruby

Check failure on line 1 in spec/unit/puppet/type/postgresql_conn_validator.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

Lint/ScriptPermission: Script file postgresql_conn_validator.rb doesn't have execute permission.

Check failure on line 1 in spec/unit/puppet/type/postgresql_conn_validator.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

Lint/ScriptPermission: Script file postgresql_conn_validator.rb doesn't have execute permission.
# frozen_string_literal: true

require 'spec_helper'
Expand Down

0 comments on commit 0e4d526

Please sign in to comment.