Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9340462
alternative_port_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
673 B
Subscribers
None
alternative_port_spec.rb
View Options
require
'spec_helper_acceptance'
# These tests ensure that postgres can change itself to an alternative port
# properly.
describe
'postgresql::server'
,
:unless
=>
UNSUPPORTED_PLATFORMS
.
include?
(
fact
(
'osfamily'
))
do
it
'on an alternative port'
do
pp
=
<<-
EOS
class { 'postgresql::server': port => '55433' }
EOS
apply_manifest
(
pp
,
:catch_failures
=>
true
)
apply_manifest
(
pp
,
:catch_changes
=>
true
)
end
describe
port
(
55433
)
do
it
{
is_expected
.
to
be_listening
}
end
it
'can connect with psql'
do
psql
(
'-p 55433 --command="\l" postgres'
,
'postgres'
)
do
|
r
|
expect
(
r
.
stdout
)
.
to
match
(
/List of databases/
)
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jul 4 2025, 10:42 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3300793
Attached To
rSPPG PostgreSQL puppet module
Event Timeline
Log In to Comment