Граф коммитов

873 Коммитов

Автор SHA1 Сообщение Дата
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 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
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
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
Kevin Paulisse c72048ae1a
Bump timeout to 180 seconds - we only want to catch true stragglers 2018-02-14 00:02:50 -06:00
Kevin Paulisse 499e40b124
Use the expected exit code for timeout 2018-02-14 00:02:13 -06:00
Kevin Paulisse 6c308e11a0
Small cleanup to exitcode logic 2018-02-13 23:49:37 -06:00
Kevin Paulisse 6c11f6e03d
Implement timeout on each integration rspec test 2018-02-13 23:42:02 -06:00
Kevin Paulisse a93eb5528f
Split the unit and integration tests 2018-02-13 22:55:08 -06:00
Kevin Paulisse bc8c4ee659
Put timeout logic on the integration tests 2018-02-13 22:53:05 -06:00
Kevin Paulisse 7b8b1f86c2
Lengthen the timeout so it really catches only dead runs 2018-02-13 22:43:42 -06:00
Kevin Paulisse 9cc2790988
Add timeouts to the spec tests and integration tests 2018-02-13 22:40:20 -06:00
Kevin Paulisse 76283cf224
Split builds, one ruby + puppet per job 2018-02-13 21:51:13 -06:00
Kevin Paulisse 8b0c1f40af
Require puppet versions to be defined 2018-02-13 21:49:05 -06:00