485 Commits

Author SHA1 Message Date
Thibault Jouan
cd389a3209 Bump patch version 2015-04-06 12:39:28 +00:00
Thibault Jouan
2363bfb62a Implement `set' task keyword 2015-04-06 12:39:09 +00:00
Thibault Jouan
d16f952232 Bump patch version 2015-04-06 08:49:18 +00:00
Thibault Jouan
feef44b255 Refactor recipe execution in cucumber features
Mock home directory in `run_recipe' helper, avoid the need to use
@mocked_home_directory in many scenarios.
2015-04-06 08:47:46 +00:00
Thibault Jouan
a3e75b0ac6 Refactor cucumber tags and steps
Use @mocked_home_directory provided by aruba and remove our custom
@fake_home tag.
2015-04-06 08:46:50 +00:00
Thibault Jouan
f312e33062 Refactor Condition.define_test 2015-04-05 12:50:00 +00:00
Thibault Jouan
3d361ded86 Refactor Env#logger 2015-04-05 12:47:43 +00:00
Thibault Jouan
85b5ba4c6d Stop excluding sshd related features on CI 2015-04-05 12:25:12 +00:00
Thibault Jouan
d7741b5e5c Setup travis to generate, authorize and load SSH key 2015-04-05 12:24:18 +00:00
Thibault Jouan
fc997bee0b Update cucumber-sshd dependency to ~> 1.1 2015-04-05 11:53:49 +00:00
Thibault Jouan
d225002cc7 Bump patch version 2015-04-05 08:08:02 +00:00
Thibault Jouan
3d2b798aac Fix cucumber recipe steps 2015-04-05 08:07:47 +00:00
Thibault Jouan
98125646cf Bump patch version 2015-04-05 08:06:51 +00:00
Thibault Jouan
5284f27340 Update cucumber recipe steps 2015-04-05 08:06:32 +00:00
Thibault Jouan
f3970c1fc6 Update cucumber-sshd test dependency to ~> 1.0 2015-04-05 05:39:49 +00:00
Thibault Jouan
5c53796987 Bump patch version 2015-04-05 02:35:17 +00:00
Thibault Jouan
088a948763 Add new cucumber remote steps 2015-04-05 02:34:33 +00:00
Thibault Jouan
1143c5d7cb Bump patch version 2015-04-05 02:15:11 +00:00
Thibault Jouan
9a8ab69c8c Extract cucumber env and steps to ease code reuse
producer extensions like producer-rails must not reimplement all the
testing infrastructure, this extraction allows to setup everything with
just one require call in cucumber env:

    require 'producer/core/testing/cucumber'
2015-04-05 02:14:00 +00:00
Thibault Jouan
d481398980 Fix typo in features and specs (exists -> exist) 2015-04-04 23:14:05 +00:00
Thibault Jouan
50a44d51b7 Bump patch version 2015-04-04 20:23:01 +00:00
Thibault Jouan
8efb548474 Remove debug code in recipe steps (from aa4845fd) 2015-04-04 20:20:54 +00:00
Thibault Jouan
dbe7fea204 Fix backtrace filtering for producer own code
Using /producer-\w+ as pattern is incorrect, we have no guarantee that
the canonical repository or gem name will be included in the install
path. Just use /producer pattern to match lib files or executables.
2015-04-04 20:15:22 +00:00
Thibault Jouan
c9971d7ca0 Use new travis infrastructure (faster)
Setting sudo to false is the documented way to achieve it.
2015-04-04 05:31:45 +00:00
Thibault Jouan
1ac859f8d9 Bump minor version 2015-04-04 05:28:54 +00:00
Thibault Jouan
aa4845fdae Refactor cucumber recipe steps 2015-04-04 05:25:01 +00:00
Thibault Jouan
b6cbd1b6f2 Fix coding standards 2015-04-04 05:25:01 +00:00
Thibault Jouan
433f830c54 Implement recipe arguments
CLI will stop arguments processing after the special `--' argument,
the rest will be saved in the env and accessible through a new task
keyword: `recipe_argv'.
2015-04-04 05:25:01 +00:00
Thibault Jouan
f17f8c354f Style shields.io badges in README as "flat-square" 2015-04-03 23:38:48 +00:00
Thibault Jouan
b32487253c Bump patch version 2015-04-03 23:22:29 +00:00
Thibault Jouan
1ccd95b80f Fix error formatting in debug mode
Backtrace filtering was only disabled for exception cause, this change
ensure no backtrace filtering at all in debug mode.

* Prevent main exception filtering when debug mode is enabled;
* Test when exception cause must be displayed;
* Test how exception cause must be displayed.
2015-04-03 23:18:28 +00:00
Thibault Jouan
b93e5717ce Filter ruby lib directory from error backtrace 2015-04-03 22:36:23 +00:00
Thibault Jouan
0da47a0acb Fix backtrace filtering for producer 2015-04-03 22:35:44 +00:00
Thibault Jouan
dc561de047 Fix backtrace filtering for net-ssh
Improve our filter pattern so it works for this kind of error:

SocketError: getaddrinfo: hostname nor servname provided, or not known
  /usr/local/lib/ruby/2.2/timeout.rb:74:in `timeout'
  /usr/local/lib/ruby/2.2/timeout.rb:125:in `timeout'
  /home/tj/.gem/ruby/22/gems/net-ssh-2.9.2/lib/net/ssh.rb:207:in `new'
  /home/tj/.gem/ruby/22/gems/net-ssh-2.9.2/lib/net/ssh.rb:207:in `start'
2015-04-03 22:34:46 +00:00
Thibault Jouan
e361b6d174 Remove extra parameters for README badges
[ci skip]
2015-04-03 20:28:49 +00:00
Thibault Jouan
47455b9c45 Restrict directories watched by guard
If we watch directories like .git or tmp, guard/listen can get very
slow when running tests generating new events, the adapter will have to
process all of them (and potentially search file system for new files).
2015-04-03 20:27:32 +00:00
Thibault Jouan
b1879ea9f9 Test net-ssh error filtering 2015-04-03 20:27:28 +00:00
Thibault Jouan
2e06d7d944 Add various "badges" in README 2015-04-03 20:17:18 +00:00
Thibault Jouan
9fa1bd898a Cache travis bundle installs 2015-04-03 19:35:05 +00:00
Thibault Jouan
45bdd63c00 Remove rubinius from travis builds 2015-04-03 19:31:17 +00:00
Thibault Jouan
c974a21b94 Allow travis rbx-2 build to fail 2015-04-03 19:25:34 +00:00
Thibault Jouan
d926b11882 Create ci rake task for CI services 2015-04-03 19:07:27 +00:00
Thibault Jouan
7cf0a89e2a Indicate ruby ~> 2.1 requirement (Exception#cause) 2015-04-03 18:49:28 +00:00
Thibault Jouan
341642518f Test with more rubies on travis 2015-04-03 18:42:54 +00:00
Thibault Jouan
ed01bbed4e Merge cucumber env setup in a unique file 2015-04-03 16:12:47 +00:00
Thibault Jouan
a9c8485d09 Update cucumber dependency
In the process, we remove our cucumber docstrings monkey patch. It
does not work anymore and it was not a so good idea.
2015-04-03 15:54:11 +00:00
Thibault Jouan
d3f656cacc Update documentation (serverspec URI) 2015-04-02 17:51:57 +00:00
Thibault Jouan
de7f4a71aa Fix code sample in templates documentation 2015-04-01 15:13:40 +00:00
Thibault Jouan
92948edad5 Fix documented code blocks formatting 2015-04-01 15:12:12 +00:00
Thibault Jouan
cf825de367 Fix documented ruby code blocks formatting 2015-04-01 15:10:07 +00:00