Skip to content

(MODULES-3980) Fix ipv4 regex validator #676

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

Closed
wants to merge 2 commits into from

Conversation

ntpttr
Copy link

@ntpttr ntpttr commented Oct 17, 2016

The current pattern for stdlib::compat::ipv4 is incorrect, and
will return true for any four numbers separated with periods.
This commit improves the regex to validate that the IP octets
are between 1 and 255.

@ntpttr ntpttr changed the title merge to master (MODULES-3980) Fix ipv4 regex validator Oct 17, 2016
The current pattern for stdlib::compat::ipv4 is incorrect, and
will return true for any four numbers separated with periods.
This commit improves the regex to validate that the IP octets
are between 1 and 255.
@ntpttr ntpttr force-pushed the fix/master/modules-3980 branch from 9eff51e to 9bab173 Compare October 17, 2016 22:59
@ntpttr
Copy link
Author

ntpttr commented Oct 17, 2016

Looks like jobs with ruby < 2.0 are failing because of a dependency with parallel_tests

Parallel_tests 2.10.0 requires ruby >= 2.0.0, so for jobs with
ruby < 2.0.0 parallel_tests 2.9.0 should be used.
@ntpttr ntpttr force-pushed the fix/master/modules-3980 branch from 9eae4bc to 8ef45bf Compare October 18, 2016 17:27
@hunner
Copy link
Contributor

hunner commented Oct 18, 2016

Also see #660

@hunner
Copy link
Contributor

hunner commented Oct 18, 2016

We are working on the parallel_tests fix via modulesync_config, so please don't edit the Gemfile directly (see https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/Gemfile#L1 )

@hunner
Copy link
Contributor

hunner commented Oct 18, 2016

Oh, I see you already did the modulesync :D

@ntpttr ntpttr closed this Oct 18, 2016
@hunner hunner mentioned this pull request Oct 21, 2016
DavidS added a commit to DavidS/puppetlabs-stdlib that referenced this pull request Oct 24, 2016
This also updates all ipv4 tests to use the same test data for better
comparability. Closes puppetlabs#676, puppetlabs#679

Fix-Originally-By: Nate Potter <nathaniel.potter@intel.com>
DavidS added a commit to DavidS/puppetlabs-stdlib that referenced this pull request Oct 25, 2016
This also updates all ipv4 tests to use the same test data for better
comparability. Closes puppetlabs#676, puppetlabs#679

Fix-Originally-By: Nate Potter <nathaniel.potter@intel.com>
DavidS added a commit to DavidS/puppetlabs-stdlib that referenced this pull request Oct 25, 2016
This also updates all ipv4 tests to use the same test data for better
comparability. Closes puppetlabs#676, puppetlabs#679

Fix-Originally-By: Nate Potter <nathaniel.potter@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants