Skip to content

Commit

Permalink
Prefer IPv4 stack for acceptance tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jairojunior committed May 6, 2018
1 parent deebf8b commit 19b4a11
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ cache:
- vendor/bundle
- wget_cache
rvm:
- 2.2.7
- 2.3.4
- 2.2.8
- 2.3.7
bundler_args: --without acceptance
script:
- bundle exec rake syntax
Expand All @@ -21,43 +21,46 @@ env:
- PUPPET_VERSION=4.10.11
- PUPPET_VERSION=5.5.1
matrix:
exclude:
- rvm: 2.2.8
env: PUPPET_VERSION=5.5.1
include:
- rvm: 2.4.2
- rvm: 2.4.4
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/centos-7
script: bundle exec rake beaker
services: docker
sudo: required
bundler_args: --with acceptance
- rvm: 2.4.2
- rvm: 2.4.4
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/debian-7 bundle
script: bundle exec rake beaker
services: docker
sudo: required
bundler_args: --with acceptance
- rvm: 2.4.2
- rvm: 2.4.4
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/ubuntu-1404 bundle
script: bundle exec rake beaker
services: docker
sudo: required
bundler_args: --with acceptance
- rvm: 2.4.2
- rvm: 2.4.4
dist: trusty
env: PUPPET_INSTALL_TYPE=agent TEST_profile=wildfly:11.0.0 BEAKER_debug=true BEAKER_set=docker/centos-7
script: bundle exec rake beaker
services: docker
sudo: required
bundler_args: --with acceptance
- rvm: 2.4.2
- rvm: 2.4.4
dist: trusty
env: PUPPET_INSTALL_TYPE=agent TEST_profile=wildfly:11.0.0 BEAKER_debug=true BEAKER_set=docker/debian-7
script: bundle exec rake beaker
services: docker
sudo: required
bundler_args: --with acceptance
- rvm: 2.4.2
- rvm: 2.4.4
dist: trusty
env: PUPPET_INSTALL_TYPE=agent TEST_profile=wildfly:11.0.0 BEAKER_debug=true BEAKER_set=docker/ubuntu-1404
script: bundle exec rake beaker
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/1_standalone_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class { 'wildfly':
version => '#{test_data['version']}',
install_source => '#{test_data['install_source']}',
java_home => '#{test_data['java_home']}',
java_opts => '-Djava.net.preferIPv4Stack=true',
}
wildfly::config::module { 'org.postgresql':
Expand Down Expand Up @@ -57,7 +58,7 @@ class { 'wildfly':

execute_manifest(pp, :catch_failures => true, :acceptable_exit_codes => [0, 2])
expect(execute_manifest(pp, :catch_failures => true).exit_code).to be_zero
shell('sleep 15')
shell('sleep 25')
end

it 'service wildfly' do
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/2_deployment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class { 'wildfly':
version => '#{test_data['version']}',
install_source => '#{test_data['install_source']}',
java_home => '#{test_data['java_home']}',
java_opts => '-Djava.net.preferIPv4Stack=true',
}
wildfly::deployment { 'hawtio.war':
Expand All @@ -23,7 +24,7 @@ class { 'wildfly':

execute_manifest(pp, :catch_failures => true, :acceptable_exit_codes => [0, 2])
expect(execute_manifest(pp, :catch_failures => true).exit_code).to be_zero
shell('sleep 15')
shell('sleep 25')
end

it 'service wildfly' do
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/3_recursive_resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class { 'wildfly':
version => '#{test_data['version']}',
install_source => '#{test_data['install_source']}',
java_home => '#{test_data['java_home']}',
java_opts => '-Djava.net.preferIPv4Stack=true',
}
wildfly::config::module { 'org.postgresql':
Expand Down Expand Up @@ -38,7 +39,7 @@ class { 'wildfly':

execute_manifest(pp, :catch_failures => true, :acceptable_exit_codes => [0, 2])
expect(execute_manifest(pp, :catch_failures => true).exit_code).to be_zero
shell('sleep 15')
shell('sleep 25')
end

it 'service wildfly' do
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/4_domain_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class { 'wildfly':
version => '#{test_data['version']}',
install_source => '#{test_data['install_source']}',
java_home => '#{test_data['java_home']}',
java_opts => '-Djava.net.preferIPv4Stack=true',
mode => 'domain',
host_config => 'host-master.xml',
}
Expand All @@ -31,7 +32,7 @@ class { 'wildfly':

execute_manifest(pp, :catch_failures => true, :acceptable_exit_codes => [0, 2])
expect(execute_manifest(pp, :catch_failures => true).exit_code).to be_zero
shell('sleep 15')
shell('sleep 25')
end

it 'service wildfly' do
Expand Down

0 comments on commit 19b4a11

Please sign in to comment.