Dominik Richter
a888534c4e
reactivate lint in delivery
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 12:22:58 +02:00
Dominik Richter
aa4593ff71
replace parseconfig with simpleconfig
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 12:19:55 +02:00
Dominik Richter
8b97bdbaa7
expose simpleconfig groups
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 12:18:09 +02:00
Dominik Richter
4d70aed6ee
add tests for simple config
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 12:14:38 +02:00
Dominik Richter
2d8b63cb22
feature: support simple config groups
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 12:00:38 +02:00
Delivery Server
c5755f93fd
Merged change 3c1a3d24-449b-417b-ab4e-e56ef564ab2e
...
From review branch _reviews/master/lint/2 into master
Signed-off-by: chartmann <chartmann@chef.io>
2015-09-30 09:55:45 +00:00
Dominik Richter
5c81faa923
deactivate delivery lint for now...
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 11:52:24 +02:00
Dominik Richter
90de8763cf
wrap up linting
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 02:20:47 +02:00
Dominik Richter
dd46027195
bugfix: require yaml in resource
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 01:48:59 +02:00
Dominik Richter
212f11243b
simplify and fix stat handling
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-30 01:42:04 +02:00
Dominik Richter
28b3792325
let specinfra backend os support OSCommon methods
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-29 19:34:43 +02:00
Dominik Richter
3508201a5d
split out unix stat
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-29 19:18:48 +02:00
Dominik Richter
15d5cc7ca0
split up specinfra backend helper
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-29 15:27:58 +02:00
Christoph Hartmann
6092856786
Merge pull request #56 from chef/osdetecters
...
OS detection tests
2015-09-28 13:27:16 +02:00
Dominik Richter
1e0405bf74
allow for empty config in target_config
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-28 13:03:05 +02:00
Dominik Richter
78d98388f8
add amazon scientific and xenserver to redhat distros in detection
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-28 12:46:46 +02:00
Dominik Richter
4e15e425a4
move darwin to bsd type
...
see: https://en.wikipedia.org/wiki/Darwin_%28operating_system%29#/media/File:Unix_timeline.en.svg
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-28 12:14:40 +02:00
Dominik Richter
4f0c0d7f21
add unit tests to os common detection
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-28 11:52:50 +02:00
Dominik Richter
c77a0a1c81
api: make mock backend quiet by default
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-28 11:27:19 +02:00
Dominik Richter
7019b1f659
generalize and simplify os detect methods
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-28 11:15:41 +02:00
Dominik Richter
2eb94f5e2e
be more explicit about detecting unix
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-28 11:06:38 +02:00
Dominik Richter
bc98b3330f
feature: add helpers for OS families
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-28 11:06:38 +02:00
Christoph Hartmann
308dbef369
Merge pull request #55 from chef/unit+lint
...
Start Linting remaining resources
2015-09-26 20:00:34 +02:00
Dominik Richter
093600b85f
split up os detection for linting
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-26 13:12:52 +02:00
Dominik Richter
d839cbc8f7
lint the profile context
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-26 12:41:13 +02:00
Dominik Richter
1efb61ab80
lint service
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-26 12:25:02 +02:00
Dominik Richter
d28c5a85fe
lint mysql
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-26 12:25:02 +02:00
Dominik Richter
9885e7683b
lint port resource
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-26 12:25:02 +02:00
Dominik Richter
416499cd64
add delivery unit + lint tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-26 12:24:58 +02:00
Dominik Richter
4c9c6174d7
skip some delivery phases we dont need
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-26 11:47:07 +02:00
Dominik Richter
17f3f2ab23
Merge pull request #54 from chef/llint
...
fix various robocop lint issues
2015-09-25 20:24:42 +02:00
Christoph Hartmann
94ac889ff2
fix robocop lint issues
2015-09-25 19:46:46 +02:00
Christoph Hartmann
62ebb6fe17
lint tests
2015-09-25 19:34:25 +02:00
Christoph Hartmann
7cea90ef3a
fix lint issues
2015-09-25 19:34:25 +02:00
Christoph Hartmann
89f05efc94
Merge pull request #53 from chef/rule-context
...
overhaul rule structure
2015-09-25 19:31:54 +02:00
Dominik Richter
3fe0c90733
overhaul rule structure
...
* rename VulcanoBaseRule -> Vulcano::Rule
* initialize rule inside the ProfileContext
* attach all resources to ProfileContext and all rules created within
* rename rule.rb -> dsl.rb, now only containing DSL information
* rename base_rule.rb -> rule.rb, now containing everything for rule
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-25 19:16:32 +02:00
Christoph Hartmann
ec7a743f21
Merge pull request #51 from chef/ssh-transport
...
Verify ssh transport backend
2015-09-25 15:06:00 +02:00
Dominik Richter
31a960e2b6
add ssh backend to runner kitchen tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-25 14:09:41 +02:00
Dominik Richter
6d7a46a589
bugfix: do not allocate pty on ssh by default
...
PTY will effectively disable stderr output, so avoid it for now.
It will come up very soon when we get back to sudo; see if fifo or other solutions might be used. Stderr is important for accurate command execution...
For reference see this wonderful explanation:
http://unix.stackexchange.com/a/134169
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-25 13:25:57 +02:00
Dominik Richter
a7fffe4472
Merge pull request #50 from chef/service
...
Unit test for service resource
2015-09-25 13:08:56 +02:00
Christoph Hartmann
a53b2d66c5
add comments
2015-09-25 12:58:34 +02:00
Christoph Hartmann
46fcb334da
bugfix: use debian 8 for systemd unit test
2015-09-25 12:58:26 +02:00
Christoph Hartmann
ea75b361a7
bugfix: systemd is default on debian 8
2015-09-25 12:58:17 +02:00
Christoph Hartmann
007d292890
rewrite systemv service implementation, read enabled services from rc
2015-09-25 12:58:03 +02:00
Christoph Hartmann
2901dde219
add systemv service unit tests
2015-09-25 12:54:19 +02:00
Christoph Hartmann
11ffdeddad
improvement: return nil, if no description for service is available
2015-09-25 12:54:08 +02:00
Christoph Hartmann
86cd56c5c3
add unit test for service resource on ubuntu 15.04
2015-09-25 12:53:55 +02:00
Christoph Hartmann
5be574693f
add unit tests for freebsd service resource
2015-09-25 12:53:40 +02:00
Christoph Hartmann
9ac2e6e00b
improvement: use onestatus instead of status for freebsd, return nil as service description for freebsd
2015-09-25 12:51:25 +02:00
Christoph Hartmann
d5d517af0a
improve service handling for mac and add unit tests
2015-09-25 12:51:12 +02:00