Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/297381
Change subject: network: fix spec varying based on $::realm
......................................................................
network: fix spec varying based on $::realm
The network::constants class would no more compile due to it now varying
based on $::realm. Ensure the class compile for both known realm
values.
Change-Id: Iaf2ea9e4408bee61ff343ac9148eae6b31bed4f7
---
M modules/network/spec/classes/network_constants_spec.rb
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/81/297381/1
diff --git a/modules/network/spec/classes/network_constants_spec.rb
b/modules/network/spec/classes/network_constants_spec.rb
index 9853f0f..a391365 100644
--- a/modules/network/spec/classes/network_constants_spec.rb
+++ b/modules/network/spec/classes/network_constants_spec.rb
@@ -1,5 +1,12 @@
require 'spec_helper'
describe 'network::constants', :type => :class do
- it { should compile }
+ context "on production" do
+ let(:facts) {{ :realm => 'production' }}
+ it { should compile }
+ end
+ context "on labs" do
+ let(:facts) {{ :realm => 'labs' }}
+ it { should compile }
+ end
end
--
To view, visit https://gerrit.wikimedia.org/r/297381
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf2ea9e4408bee61ff343ac9148eae6b31bed4f7
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits