File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ Gemfile.lock
4
4
metadata.json
5
5
spec /fixtures
6
6
pkg /
7
+ .rspec_system /
Original file line number Diff line number Diff line change 1
1
require 'spec_helper_system'
2
2
3
3
describe 'non defaults:' do
4
+ before :all do
5
+ puppet_apply ( <<-EOS )
6
+ if($::operatingsystem =~ /Debian|Ubuntu/) {
7
+ # Need to make sure the correct utf8 locale is ready for our
8
+ # non-standard tests
9
+ file { '/etc/locale.gen':
10
+ content => "en_US ISO-8859-1\n en_NG UTF-8\n en_US UTF-8\n ",
11
+ }~>
12
+ exec { '/usr/sbin/locale-gen':
13
+ logoutput => true,
14
+ refreshonly => true,
15
+ }
16
+ }
17
+ EOS
18
+ end
19
+
4
20
context 'test installing non-default version of postgresql' do
5
21
after :each do
6
22
# Cleanup
@@ -23,8 +39,10 @@ class { 'postgresql::server':
23
39
# Configure version and manage_package_repo globally, install postgres
24
40
# and then try to install a new database.
25
41
class { "postgresql":
26
- version => "9.2",
27
- manage_package_repo => true,
42
+ version => "9.2",
43
+ manage_package_repo => true,
44
+ charset => 'UTF8',
45
+ locale => 'en_US.UTF-8',
28
46
}->
29
47
class { "postgresql::server": }->
30
48
postgresql::db { "postgresql_test_db":
You can’t perform that action at this time.
0 commit comments