Kevin Paulisse
18093015b8
Merge remote-tracking branch 'masterzen/bugfix/fix-compilatior-dir-arrays' into 1-5-4
2018-12-06 22:10:26 -06:00
Kevin Paulisse
bf5b3f7c98
Merge remote-tracking branch 'xakraz/fix_validate_reference_for_name_parameter' into 1-5-4
2018-12-06 22:09:18 -06:00
Kevin Paulisse
3a2bd8faf2
Merge branch '1-5-4' of github.com:github/octocatalog-diff into 1-5-4
2018-12-06 22:07:10 -06:00
Kevin Paulisse
d927b447d7
Add test for parallel processing
2018-12-06 22:06:28 -06:00
Kevin Paulisse
ca6a5814bc
Only invoke parallel processing when needed
2018-12-06 22:06:19 -06:00
Kevin Paulisse
759607538d
Merge remote-tracking branch 'EdgeJ/add_multiple_node_option' into 1-5-4
2018-12-06 21:49:27 -06:00
Kevin Paulisse
96bd62683f
Merge branch 'master' into 1-5-4
2018-12-06 21:48:00 -06:00
Kevin Paulisse
ea513b6309
Merge pull request #196 from github/kpaulisse-bump-rake
...
Bump a bunch of dependencies to latest
2018-12-06 21:47:42 -06:00
Kevin Paulisse
e04026f42e
Merge remote-tracking branch 'smortex/portability-fixes' into 1-5-4
2018-12-06 21:31:30 -06:00
Kevin Paulisse
dde7ca3316
Bump gems again
2018-12-06 21:24:54 -06:00
Xavier Krantz
962a3740ad
Add 'name' parameter to the 'resource_hash' for references validating
2018-11-20 20:41:37 +01:00
EdgeJ
395ba139c9
Update hostname option documentation
2018-09-07 23:38:59 -04:00
Romain Tartière
c6d528b415
Fix CI
...
This seems to be this problem:
https://github.com/travis-ci/travis-ci/issues/8969
2018-08-22 17:54:30 +02:00
Romain Tartière
c2a89d3b16
Use /bin/sh when a basic shell is needed
...
We do not always need a full-features bash, plain sh is enougth for some
scripts.
2018-08-22 17:05:20 +02:00
Romain Tartière
c9e498f566
Update the archive to use env(1) to find bash(1)
...
The commits are referenced in a few places in the test suite, so replace
the old latest commit by the new latest one.
2018-08-22 17:05:20 +02:00
Romain Tartière
b2834b58bf
Do not hardcode /bin/bash
...
Bash location is different from /bin on most non-Linux UNIX systems.
Rely on env(1) to find the shell in the user's $PATH.
2018-08-22 15:45:59 +02:00
EdgeJ
ffe219b8b8
Remove pre-script bundle install from .travis.yml
...
Fixes issues with Rubocop checks failing in CI.
2018-08-15 09:44:13 -04:00
Kevin Paulisse
8a8477f430
Try without explicitly installing bundler?
2018-08-14 23:00:27 -05:00
Kevin Paulisse
14d425a17a
Bump puppet versions in travis.yml too
2018-08-14 22:52:47 -05:00
Kevin Paulisse
f31b31577d
Bump a bunch of dependencies to latest
2018-08-14 22:48:24 -05:00
EdgeJ
f543fe9e77
Run multiple node diffs in parallel
2018-08-12 17:47:27 -04:00
EdgeJ
1064e8d930
Add multiple node capabilities to `--hostname` option
2018-08-09 09:43:43 -04:00
Brice Figureau
f1039dc906
Fix some minor typo in the diff object documentation
...
I noticed a few mistakes while reading the API documentation, and I
couldn't resist to fix them.
2018-06-06 21:04:37 +02:00
Brice Figureau
697cbb91e8
Fix #187,#188 CompilationDir not supporting complex or multiple values
...
There were two cases where CompilationDir wasn't filtering out changes:
* if the parameter value is an arbitrary data structure (ie hash, array
or mix of both)
* if the parameter value is a string containing more than one occurence
of the compilation dir
It turns out that both can be fixed by just replacing the compilation
dirs in both the new and old values with empty strings and comparing
what's left.
It's probably much slower than the original string-only implementation
but covers much more cases as demonstrated by #187 and #188 .
2018-06-06 21:04:37 +02:00
Kevin Paulisse
8774031d5e
Merge pull request #184 from github/kpaulisse-regexp-attributes
...
Better regular expression attribute handling
2018-04-02 16:56:11 -05:00
Kevin Paulisse
178f7cbdf5
Work around travis-ci/travis-ci/issues/9333 with latest ruby
2018-03-29 10:50:25 -04:00
Kevin Paulisse
2ec1ca47df
Quoting shenanigans
2018-03-29 10:02:05 -04:00
Kevin Paulisse
da69d171fd
Better newline handling when performing regexp diffs/ignores
2018-03-28 08:46:32 -03:00
Kevin Paulisse
b00015b9e3
Update differ to support regular expression attributes
2018-03-27 07:42:10 -03:00
Kevin Paulisse
89d6c993ff
Create acceptance test demonstrating #175
2018-03-26 16:03:13 -04:00
Kevin Paulisse
cb71fb2a24
Merge pull request #180 from github/kpaulisse-ruby-version-test-update
...
Update build matrix to reflect Puppet's supported ruby version
2018-03-05 09:23:56 -06:00
Kevin Paulisse
d44c889f4f
Version bump to 1.5.3 and changelog update
2018-02-28 15:49:21 -06:00
Kevin Paulisse
cd6eba5270
New Puppet version somewhat changed error message, so update tests
2018-02-28 15:39:12 -06:00
Kevin Paulisse
8f78fe87e5
Merge remote-tracking branch 'ahayworth/resource_validation' into kpaulisse-ruby-version-test-update
2018-02-28 15:23:38 -06:00
Kevin Paulisse
3b328359c7
Proper environment version setting
2018-02-28 14:57:38 -06:00
Kevin Paulisse
8a3ce8fa21
Update requirements to match Puppet docs
2018-02-28 14:52:25 -06:00
Kevin Paulisse
bd0bc20892
Puppet 5.0.0 -> 5.4.0 for tests and builds
2018-02-28 14:46:05 -06:00
Kevin Paulisse
408f847a93
Bump puppet 4.10.8 -> 4.10.10 in tests
2018-02-28 14:44:48 -06:00
Kevin Paulisse
89bee4095b
Adjust build matrix as per Puppet
2018-02-28 14:41:05 -06:00
Kevin Paulisse
60dedfe393
Merge branch 'master' into resource_validation
2018-02-26 17:39:34 -06:00
Kevin Paulisse
ec423037dc
Merge pull request #179 from github/kpaulisse-simplecov-erb
...
Use simplecov-erb gem for test coverage and enforce 100% test coverage
2018-02-26 17:39:14 -06:00
Kevin Paulisse
d1530b1816
Enforce coverage for latest ruby only
2018-02-26 17:26:01 -06:00
Kevin Paulisse
3e5d62d948
Fail CI if test coverage is lacking
2018-02-23 08:59:55 -08:00
Kevin Paulisse
51a2ebcfd1
Use simplecov-erb to print the test coverage stats in the CI build
2018-02-23 08:59:35 -08:00
Andrew Hayworth
6e6bd5e49e
Normalize file resource titles
...
We've noticed a problem at Braintree along the lines of:
file { '/foo':
ensure => directory,
}
file { '/bar':
ensure => directory,
require => File['/foo/'],
}
This catalog compiles and is valid, but fails validation in octocatalog-diff.
It seems that puppet itself attempts to normalize file resource titles (and indeed
can normalize any type of resource title, given that a methodology exists in the
resource type). See:
https://github.com/puppetlabs/puppet/blob/4.10.x/lib/puppet/type/file.rb#L42
This commit attmepts to mimic that (and lifts the regex directly from the 4.10.x
branch of puppet, because it doesn't matter in puppet 5 since reference validation
is built-in).
2018-02-14 10:22:50 -06:00
Kevin Paulisse
2e94edac78
Merge pull request #178 from github/kpaulisse-split-tests
...
Split the puppet versions in hopes the tests don't timeout
2018-02-14 09:16:30 -06:00
Kevin Paulisse
30fc3c7229
Eliminate test coverage requirement for this exception handling code
2018-02-14 08:11:14 -06:00
Kevin Paulisse
c845bb9475
Add a more detailed test coverage report
2018-02-14 08:05:40 -06:00
Kevin Paulisse
195fdd0856
Remove OUTPUT_FILE stuff
2018-02-14 07:44:44 -06:00
Kevin Paulisse
1773b7ff7a
While we're at it, display the coverage stats for the unit tests
2018-02-14 07:18:53 -06:00