Skip to content

Commit

Permalink
testing: fix some cops
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjl committed May 12, 2018
1 parent b2675c0 commit 5fa77d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -16,6 +16,9 @@ Metrics/LineLength:
Metrics/MethodLength:
Enabled: false

Metrics/ParameterLists:
Enabled: false

Style/AndOr:
Enabled: false

Expand Down
4 changes: 0 additions & 4 deletions lib/puppet/provider/elastic_rest.rb
Expand Up @@ -26,7 +26,6 @@ def metadata
#
# @return Net::HTTPResponse
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/ParameterLists
# rubocop:disable Metrics/PerceivedComplexity
def self.rest(http, \
req, \
Expand Down Expand Up @@ -61,7 +60,6 @@ def self.rest(http, \
end
end
# rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/ParameterLists
# rubocop:enable Metrics/PerceivedComplexity

# Helper to format a remote URL request for Elasticsearch which takes into
Expand All @@ -86,7 +84,6 @@ def self.format_uri(resource_path, property_flush = {})
# @return Array
# an array of Hashes representing the found API objects, whether they be
# templates, pipelines, et cetera.
# rubocop:disable Metrics/ParameterLists
def self.api_objects(protocol = 'http', \
validate_tls = true, \
host = 'localhost', \
Expand Down Expand Up @@ -116,7 +113,6 @@ def self.api_objects(protocol = 'http', \

results
end
# rubocop:enable Metrics/ParameterLists

# Process the JSON response body
def self.process_body(body)
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/acceptance/tests/datadir_shared_examples.rb
Expand Up @@ -35,7 +35,7 @@
json = JSON.parse(response.body)['nodes'].values.first
expect(
json['settings']['path']['data']
).to (datapaths.one? and v[:elasticsearch_major_version] <= 2) ? eq(datapaths.first) : contain_exactly(*datapaths)
).to((datapaths.one? and v[:elasticsearch_major_version] <= 2) ? eq(datapaths.first) : contain_exactly(*datapaths))
end
end
end
Expand Down

0 comments on commit 5fa77d7

Please sign in to comment.