Skip to content

(MAINT) Remove testing logic for Puppet 4.5 #1193

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

b4ldr
Copy link
Collaborator

@b4ldr b4ldr commented Jul 6, 2021

Support for puppet 4.5 was dropped from stdlib some time ago however the
spec tests all include an if guard to prevent them running on puppet
4.5. As this is no longer required this PR cleans up theses guards

This PR creates new new resources:
 * Stdlib::Http::Method for validating http methods
 * Stdlib::Http::Status This is just a copy of Stdlib::Httpstatus
 * make Stdlib::Httpstatus and alias to Stdlib::Http::Status

Ideally we would deprecate Stdlib::Httpstatus in favour of
Stdlib::Http::Status
@b4ldr b4ldr requested a review from a team as a code owner July 6, 2021 14:28
Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it includes #1192 now. I'd prefer to keep that separate. Also looks like Rubocop is unhappy.

@b4ldr b4ldr force-pushed the drop_4.5_support branch from 5d883bf to 8106b9f Compare July 6, 2021 14:38
@b4ldr
Copy link
Collaborator Author

b4ldr commented Jul 6, 2021

Looks like it includes #1192 now. I'd prefer to keep that separate. Also looks like Rubocop is unhappy.

good catch that was over-site should be removed now

@@ -1,28 +1,24 @@
require 'spec_helper'

if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
describe 'Stdlib::IP::Address::V6::Nosubnet::Full' do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line should not have been removed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added back

Support for puppet 4.5 was dropped from stdlib some time ago however the
spec tests all include an if guard to prevent them running on puppet
4.5.  As this is no longer required this PR cleans up theses guards
@b4ldr b4ldr force-pushed the drop_4.5_support branch from 8106b9f to 6d0dbeb Compare July 6, 2021 14:52
Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll let others take a look as well.

@michaeltlombardi michaeltlombardi changed the title Drop 4.5 support (MAINT) Remove testing logic for Puppet 4.5 Jul 12, 2021
@michaeltlombardi michaeltlombardi merged commit 165ee41 into puppetlabs:main Jul 12, 2021
@alexjfisher alexjfisher mentioned this pull request Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants