Skip to content

Commit

Permalink
rake rubocop:auto_correct
Browse files Browse the repository at this point in the history
  • Loading branch information
oranenj committed Apr 20, 2021
1 parent 25ce0c0 commit 56cfa47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions spec/classes/jira_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
with_content(%r{jdbc:postgresql://localhost:5432/jira}).
with_content(%r{<schema-name>public</schema-name>}).
without_content(%r{<pool})

end
it { is_expected.not_to contain_file('/home/jira/cluster.properties') }
it { is_expected.not_to contain_file('/opt/jira/atlassian-jira-software-8.13.5-standalone/bin/check-java.sh') }
Expand Down Expand Up @@ -288,7 +287,7 @@
{
version: '8.13.5',
javahome: '/opt/java',
tomcat_connection_timeout: 25000
tomcat_connection_timeout: 25_000
}
end

Expand Down
12 changes: 6 additions & 6 deletions spec/classes/jira_mysql_connector_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
end
it 'deploys mysql connector 5.1.34 from tar.gz' do
is_expected.to contain_archive('/opt/MySQL-connector/mysql-connector-java-5.1.34.tar.gz').with('source' => 'https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.34.tar.gz',
'extract_path' => '/opt/MySQL-connector',
'creates' => '/opt/MySQL-connector/mysql-connector-java-5.1.34')
'extract_path' => '/opt/MySQL-connector',
'creates' => '/opt/MySQL-connector/mysql-connector-java-5.1.34')
end
end
context 'mysql connector defaults Connector Version >8' do
Expand All @@ -55,8 +55,8 @@
end
it 'deploys mysql connector 8.0.23 from tar.gz' do
is_expected.to contain_archive('/opt/MySQL-connector/mysql-connector-java-8.0.23.tar.gz').with('source' => 'https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.23.tar.gz',
'extract_path' => '/opt/MySQL-connector',
'creates' => '/opt/MySQL-connector/mysql-connector-java-8.0.23')
'extract_path' => '/opt/MySQL-connector',
'creates' => '/opt/MySQL-connector/mysql-connector-java-8.0.23')
end
end
context 'mysql connector overwrite params' do
Expand All @@ -82,8 +82,8 @@
end
it 'deploys mysql connector 5.1.15 from zip' do
is_expected.to contain_archive('/opt/foo/mysql-connector-java-5.1.15.zip').with('source' => 'http://example.co.za/foo/mysql-connector-java-5.1.15.zip',
'extract_path' => '/opt/foo',
'creates' => '/opt/foo/mysql-connector-java-5.1.15')
'extract_path' => '/opt/foo',
'creates' => '/opt/foo/mysql-connector-java-5.1.15')
end
end
context 'mysql_connector_mangage equals false' do
Expand Down

0 comments on commit 56cfa47

Please sign in to comment.