spec/spec_helper.rb in puppet-ghostbuster-1.1.0 vs spec/spec_helper.rb in puppet-ghostbuster-1.2.0
- old
+ new
@@ -19,9 +19,10 @@
def pql_to_jgrep(query)
endpoint_cols = query.split('{').first
endpoint = endpoint_cols.split(/[\s\[]/).first
query.sub!(/^#{Regexp.quote(endpoint_cols)}\{\s*/, '')
+ query.sub!(/(group\s+by\s+(type|title))/, '')
query.sub!(/\s*}\s*/, '')
query.sub!(/(and\s+)?nodes\s*\{\s*deactivated\s+is\s+null\s*\}/, '')
return endpoint, '' if query == ''