Hashar has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/340325 )

Change subject: elasticsearch: fix spec for GC settings
......................................................................

elasticsearch: fix spec for GC settings

Java GC settings used to be in /etc/default/elasticsearch they have been
moved to /etc/elasticsearch/jvm.options but the spec hasn't been
adjusted to reflect the new reality.

Change-Id: I8841e7c1943e9f3d22b87e592b1c3be94e6dbfd2
---
M modules/elasticsearch/spec/classes/elasticsearch_rspec.rb
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/25/340325/1

diff --git a/modules/elasticsearch/spec/classes/elasticsearch_rspec.rb 
b/modules/elasticsearch/spec/classes/elasticsearch_rspec.rb
index 413cfd8..035043a 100644
--- a/modules/elasticsearch/spec/classes/elasticsearch_rspec.rb
+++ b/modules/elasticsearch/spec/classes/elasticsearch_rspec.rb
@@ -10,8 +10,10 @@
         :cluster_name => 'my_cluster_name',
         :gc_log       => true,
     } }
-    it { is_expected.to contain_file('/etc/default/elasticsearch')
-                            .with_content(/-XX:\+PrintGCDetails 
-XX:\+PrintGCDateStamps/)
+    it {
+        is_expected.to contain_file('/etc/elasticsearch/jvm.options')
+            .with_content(/-XX:\+PrintGCDetails$/)
+            .with_content(/-XX:\+PrintGCDateStamps$/)
     }
   end
 

-- 
To view, visit https://gerrit.wikimedia.org/r/340325
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8841e7c1943e9f3d22b87e592b1c3be94e6dbfd2
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to