Skip to content

(MODULES-7009) Do not run HTTPS tests on old OSes #384

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -850,24 +850,25 @@ Specifies the user to run as for repository operations. (Requires the `user` fea

## Limitations

Git is the only VCS provider officially [supported by Puppet Inc.](https://forge.puppet.com/supported)
Git is the only VCS provider officially [supported by Puppet Inc.](https://forge.puppet.com/supported) Git with 3.18 changes the maximum enabled TLS protocol version, this breaks some HTTPS functionality on older OSes. They are Enterprise Linux 5 OSes and OracleLinux 6

The includes parameter is only supported when SVN client version is >= 1.6.

This module has been tested with Puppet 2.7 and higher.
This module has been tested with Puppet 4.7 and higher.

The module has been tested on:

* CentOS 5/6/7
* Debian 6/7/8
* Debian 8/9
* Oracle 5/6/7
* Red Hat Enterprise Linux 5/6/7
* Scientific Linux 5/6/7
* SLES 10/11/12
* Ubuntu 10.04/12.04/14.04/16.04
* Scientific Linux 6/7
* SLES 11/12
* Ubuntu 14.04/16.04/18.04

Testing on other platforms has been light and cannot be guaranteed.


## Development

Puppet Inc. modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can't access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/clone_repo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
end
end

context 'with using a https source on github' do
context 'with using a https source on github', unless: only_supports_weak_encryption do
pp = <<-MANIFEST
vcsrepo { "#{tmpdir}/httpstestrepo":
ensure => present,
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/modules_1596_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

tmpdir = default.tmpdir('vcsrepo')

describe 'clones a remote repo' do
describe 'clones a remote repo', unless: only_supports_weak_encryption do
before(:all) do
File.expand_path(File.join(File.dirname(__FILE__), '..'))
shell("mkdir -p #{tmpdir}") # win test
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/modules_1800_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

tmpdir = default.tmpdir('vcsrepo')

describe 'clones a remote repo' do
describe 'clones a remote repo', unless: only_supports_weak_encryption do
before(:all) do
File.expand_path(File.join(File.dirname(__FILE__), '..'))
shell("mkdir -p #{tmpdir}") # win test
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/modules_753_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

tmpdir = default.tmpdir('vcsrepo')

describe 'clones a remote repo' do
describe 'clones a remote repo', unless: only_supports_weak_encryption do
before(:all) do
File.expand_path(File.join(File.dirname(__FILE__), '..'))
shell("mkdir -p #{tmpdir}") # win test
Expand Down
7 changes: 7 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,10 @@
end
end
end

# git with 3.18 changes the maximum enabled TLS protocol version, older OSes will fail these tests
def only_supports_weak_encryption
return_val = (fact('osfamily') == 'RedHat' && fact('operatingsystemmajrelease') == '5') ||
(fact('operatingsystem') == 'OracleLinux' && fact('operatingsystemmajrelease') == '6')
return_val
end