Christoph Hartmann
3c76ed6e37
integration test for file
2015-10-24 11:15:53 +02:00
Christoph Hartmann
2ba34c302c
integration test: create sample file
2015-10-24 11:15:53 +02:00
Christoph Hartmann
a199796b5e
add integration test for group
2015-10-24 11:15:52 +02:00
Christoph Hartmann
3a5d091efb
add apt repository integration test
2015-10-24 11:15:52 +02:00
Christoph Hartmann
7080aaf346
install nginx repo on debian and ubuntu for integration test
2015-10-24 11:15:52 +02:00
Christoph Hartmann
857e5ed28e
add kernel_module integration tests
2015-10-23 13:58:20 +02:00
Christoph Hartmann
1d61c0e042
add integration test for kernel_parameter
2015-10-23 13:44:20 +02:00
Christoph Hartmann
191ef73c65
add integration test for user resource
2015-10-23 12:14:00 +02:00
Christoph Hartmann
ea0814939a
add prepare cookbook for package integration test
2015-10-23 12:14:00 +02:00
Christoph Hartmann
f15d05fd22
add package tests
2015-10-23 12:14:00 +02:00
Christoph Hartmann
65761233ba
update comments
2015-10-23 12:14:00 +02:00
Christoph Hartmann
b7f179ae55
add tests for service
2015-10-23 12:14:00 +02:00
Christoph Hartmann
7d909f01dd
run test with sudo
2015-10-23 12:14:00 +02:00
Christoph Hartmann
f38b278b50
setup test-kitchen workflow
2015-10-23 12:14:00 +02:00
Dominik Richter
ecc04aab7b
test: add dsl tests
2015-10-19 10:30:04 +02:00
Dominik Richter
f6aa71d0ed
provide better errors on docker_run tests
2015-10-19 10:21:05 +02:00
Dominik Richter
20dae26925
split methods for processing rules and checks after loading
2015-10-19 09:49:40 +02:00
Dominik Richter
d66f874e1c
feature: support expect keyword in rules
2015-10-18 19:14:22 +02:00
Dominik Richter
f2e955eb37
test: add tests for rule.describe
2015-10-18 19:11:56 +02:00
Dominik Richter
b38adfc6b2
test: add profile context tests
2015-10-18 19:11:56 +02:00
Dominik Richter
ec0931ef9c
test: group resource tests
2015-10-17 22:53:21 +02:00
Dominik Richter
56b88cba1d
create factory for backend creation
2015-10-15 22:42:06 +02:00
Dominik Richter
dcb0b8e557
remove runner tests while migrating to train
2015-10-15 00:47:07 +02:00
Dominik Richter
132019a6d9
move backend creation to profile context
...
keeping it in the runner will create conflicts with rspec runners
2015-10-14 23:44:15 +02:00
Dominik Richter
be614e9056
migrate backend to Train project
2015-10-14 23:13:49 +02:00
Christoph Hartmann
7635a20756
flatten describe tests
2015-10-12 13:35:16 +02:00
Christoph Hartmann
7096b3cd9a
remove let in tests
2015-10-12 13:35:15 +02:00
Christoph Hartmann
dd2fb7938f
ease windows feature test
2015-10-12 13:35:15 +02:00
Christoph Hartmann
d666ce84a2
fix describe in unit tests
2015-10-12 13:35:15 +02:00
Christoph Hartmann
128eb4a7f6
add tests for iptables
2015-10-12 10:34:24 +02:00
Christoph Hartmann
9774ec7984
add test coverage for apt
2015-10-10 23:28:03 +02:00
Christoph Hartmann
1dec6a60b8
remove ruby warnings in helper
2015-10-09 19:55:16 +02:00
Christoph Hartmann
c14e364b93
add mock commands for linux
2015-10-09 19:55:06 +02:00
Christoph Hartmann
2176039120
add linux tests for host
2015-10-09 19:27:29 +02:00
Christoph Hartmann
5a70133330
add mock files for host windows tests
2015-10-09 19:27:07 +02:00
Christoph Hartmann
80b38412e6
add tests for windows
2015-10-09 19:21:55 +02:00
Christoph Hartmann
3126a46b1e
add bridge unit tests for windows
2015-10-09 15:26:59 +02:00
Christoph Hartmann
74729f5779
add more unit test cases
2015-10-09 15:10:43 +02:00
Christoph Hartmann
b2ed180885
add bridge test for linux
2015-10-09 15:07:58 +02:00
Christoph Hartmann
9d92abf524
add windows support to network adapter
2015-10-08 13:01:50 +02:00
Christoph Hartmann
153c670952
introduce better network interface abstraction, add test cases
2015-10-08 13:01:50 +02:00
Christoph Hartmann
46853e74b6
fix lint issues
2015-10-08 13:01:50 +02:00
Dominik Richter
4176d1b227
improvement: add default print method to resources
2015-10-08 11:06:20 +02:00
Christoph Hartmann
d2997400df
add author information
2015-10-07 18:45:08 +02:00
Christoph Hartmann
9c893c5653
add mock result for GetWin32 Group
2015-10-07 18:45:08 +02:00
Christoph Hartmann
737df5348a
add test coverage for group resource
2015-10-07 18:45:08 +02:00
Christoph Hartmann
537728b41b
test case where group or os is not available
2015-10-07 18:45:08 +02:00
Christoph Hartmann
c17be0438a
add unit tests for group resource
2015-10-07 18:45:07 +02:00
Christoph Hartmann
e57505739e
improvement: return gids in etc_group as integer
2015-10-07 18:45:07 +02:00
Christoph Hartmann
028e7f977e
filter comments in /etc/group
2015-10-07 18:45:07 +02:00
Christoph Hartmann
df9411e529
rename test from etcgroup
2015-10-07 18:45:07 +02:00
Christoph Hartmann
9295a60913
add test case for script resource
2015-10-07 13:13:37 +02:00
Christoph Hartmann
8fff2ee989
add author header
2015-10-06 18:55:44 +02:00
Dominik Richter
a72dc86442
bugfix: configure test runners correctly to updated backend
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-10-06 15:35:37 +02:00
Dominik Richter
5662bb7383
migrate transport runner tests
2015-10-06 00:06:13 +02:00
Dominik Richter
6d54b6e2c5
simplify mock resource creation
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-10-05 23:22:13 +02:00
Christoph Hartmann
f38ce7d5f4
bugfix: fix error, where the winrm default path is not set properly by default
2015-10-05 15:35:02 +02:00
Christoph Hartmann
6b2064ad89
return password expiry information for linux
2015-10-05 11:50:49 +02:00
Christoph Hartmann
cab93a178a
add tests for user resource
2015-10-05 11:50:49 +02:00
Dominik Richter
369e61d0cd
feature: add path to target specification
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-10-03 23:39:09 +02:00
Christoph Hartmann
e139070923
increase test coverage for oneget
2015-10-03 13:27:20 +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
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
Christoph Hartmann
62ebb6fe17
lint tests
2015-09-25 19:34:25 +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
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
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
d5d517af0a
improve service handling for mac and add unit tests
2015-09-25 12:51:12 +02:00
Christoph Hartmann
36ad0dd5a0
add arch linux support for service resource
2015-09-25 12:48:57 +02:00
Christoph Hartmann
45081735ad
add debian 8 mock test for service resource
2015-09-25 12:48:48 +02:00
Christoph Hartmann
cb3d170ce6
add centos 7 unit mock for service resource
2015-09-25 12:48:21 +02:00
Christoph Hartmann
1936383120
add service unit tests for ubuntu 14.04
2015-09-25 11:52:33 +02:00
Christoph Hartmann
24885e2d4d
add ubuntu 15.05 to mock os
2015-09-25 11:52:33 +02:00
Christoph Hartmann
3e16791f52
bugfix: catch case in service resource, where the OS is not supported
2015-09-25 11:52:33 +02:00
Christoph Hartmann
cf8a75f233
improvement: make service tests os dependent
2015-09-25 11:52:33 +02:00
Dominik Richter
3858606fb7
make ssh tests work with vagrant ssh user
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-25 00:55:54 +02:00
Dominik Richter
e2190d0fff
run local and ssh runner backend tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 22:46:02 +02:00
Dominik Richter
4e40f00cbd
add ssh connection tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 22:46:02 +02:00
Dominik Richter
519d60c9d6
add local ssh config to runner kitchen tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 22:45:51 +02:00
Dominik Richter
a67a5b6deb
add description to runner test recipe
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 19:48:58 +02:00
Dominik Richter
250d437c6a
inform about scheduled docker test runs
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 11:55:18 +02:00
Dominik Richter
add788314e
increase docker test concurrency
...
To 2 parallel pulls and 4 parallel runs
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 11:55:18 +02:00
Dominik Richter
30c638a227
add docker runner test containers + boostrap
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 10:36:20 +02:00
Dominik Richter
7522547f71
add test script for testing the docker runner
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 10:36:20 +02:00
Dominik Richter
a7cd08564f
split runner test.rb into helper.rb
...
share common tests
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 10:36:20 +02:00
Dominik Richter
112c615de1
dont default to test.yaml in docker_run tests
...
Catch errors instead where the test config file was not specified.
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 10:36:20 +02:00
Dominik Richter
6e6d220e4f
add provisioner to docker tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-24 10:36:20 +02:00
Christoph Hartmann
3807a7412c
add package unit test for windows
2015-09-23 23:30:31 +02:00
Christoph Hartmann
5151f42d7d
add package unit test for unsupported os
2015-09-23 23:30:31 +02:00
Christoph Hartmann
61143907c2
add versions to package unit tests
2015-09-23 23:30:31 +02:00
Christoph Hartmann
52e4459d61
rename pacman mock file
2015-09-23 23:30:31 +02:00
Christoph Hartmann
943eef4ef3
make package unit tests os dependent
2015-09-23 23:30:31 +02:00
Christoph Hartmann
66c7fa6fea
add arch as os, reorder mock os list
2015-09-23 23:30:31 +02:00
Christoph Hartmann
672f196a76
update port tests
2015-09-23 23:15:40 +02:00
Christoph Hartmann
cd6dbd03a1
add sockstat mock result
2015-09-23 23:15:37 +02:00
Christoph Hartmann
d889f0b0b1
port resource support for FreeBSD
2015-09-23 23:08:54 +02:00
Christoph Hartmann
c07fce741b
add missing port command to mock backend on windows
2015-09-23 23:08:31 +02:00
Christoph Hartmann
b47ec509fd
port resource support for Windows
2015-09-23 23:08:19 +02:00
Christoph Hartmann
4eeb84945c
port resource support for MacOS
2015-09-23 23:07:07 +02:00
Christoph Hartmann
c187230336
implement port resource for linux
2015-09-23 18:12:51 +02:00
Christoph Hartmann
f505148abe
add undefined to test behavior on unsupported os
2015-09-23 18:12:51 +02:00
Dominik Richter
a85b47b5b4
split up tests for travis
2015-09-23 01:51:51 +02:00
Dominik Richter
9399c527bc
timeout container tests to 60min
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-23 01:02:48 +02:00
Dominik Richter
16e2b8ce3d
skip ssh resource tests until containers support them
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 19:43:11 +02:00
Dominik Richter
8e8274cf90
skip file.mounted? tests in docker for now
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 19:43:11 +02:00
Dominik Richter
afb9d4877f
fix link_path in file tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 19:43:11 +02:00
Christoph Hartmann
48f0615d17
simplify os default setting
2015-09-22 19:35:38 +02:00
Christoph Hartmann
bdb9a59264
simplify unit tests
2015-09-22 18:33:05 +02:00
Christoph Hartmann
39b697ccb7
implement os mock in unit tests
2015-09-22 18:31:21 +02:00
Dominik Richter
b779308f3d
bugfix: handle NotImplementedError on docker tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 18:02:28 +02:00
Dominik Richter
a2138e6d31
chain docker pull + log out
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 18:02:28 +02:00
Dominik Richter
dfe112a7e7
pull docker images that are missing
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 18:02:28 +02:00
Dominik Richter
0bc1b8a110
improve error handling and output on failures
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 18:02:28 +02:00
Dominik Richter
8c280789c0
split docker container tester into runner+tests
2015-09-22 18:02:28 +02:00
Christoph Hartmann
7155ca8f45
fix description with colon
2015-09-22 02:27:04 +02:00
Christoph Hartmann
4ea5a0bf97
fix description with colon
2015-09-22 02:27:04 +02:00
Christoph Hartmann
693d9cd0cf
add example.csv for unit test
2015-09-22 02:27:04 +02:00
Christoph Hartmann
5f7910a0cf
fix title
2015-09-22 02:27:04 +02:00
Christoph Hartmann
cf3dddf1a3
add csv support
2015-09-22 02:27:04 +02:00
Christoph Hartmann
b9d4fc6d8c
add yaml resource
2015-09-22 02:27:04 +02:00
Christoph Hartmann
0e43d4ca6a
add json resource
2015-09-22 02:27:04 +02:00
Dominik Richter
523263b4b6
simplify and extend tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:27:04 +02:00
Christoph Hartmann
8fc108bcd7
add tests
2015-09-22 02:27:04 +02:00
Christoph Hartmann
baee8daae8
add unit tests for windows feature
2015-09-22 02:27:03 +02:00
Dominik Richter
052143bdb8
adjust serverspec yum deprecation test
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:27:03 +02:00
Dominik Richter
bb18ce52e2
update function+test calls from exists? -> exist?
2015-09-22 02:27:03 +02:00
Dominik Richter
9de015ae2d
improvement: simplify runner configuration
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:27:02 +02:00
Christoph Hartmann
e06eed2178
Merge pull request #19 from chef/improvements
...
Improvements
2015-09-22 02:27:01 +02:00
Dominik Richter
38a77efb4a
fix failing tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:27:01 +02:00
Dominik Richter
c23e98c902
folders on freebsd have content when read
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:27:00 +02:00
Dominik Richter
b03f878502
support freebsd default wheel group in tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:27:00 +02:00
Dominik Richter
5b336f2c87
support freebsd in test cookbook
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:27:00 +02:00
Christoph Hartmann
9a6063c267
add resource test for windows
2015-09-22 02:26:59 +02:00
Dominik Richter
7758945f6b
support opensuse directory size == 0
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:26:59 +02:00
Dominik Richter
432640ee27
support fedora in selinux label tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:26:59 +02:00
Dominik Richter
50f3103358
deep_duplicate hashes for selinux label tests
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:26:59 +02:00
Dominik Richter
9521653f54
fix test /tmp/block_device for centos 5.11
...
CentOS 5.11 doesnt recognize minor #20 for the block device, but can connect #7 . Make the adjustment so that reading content from block_device doesnt error out.
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:26:58 +02:00
Dominik Richter
261cb6a485
extract selinux label handling for test
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:26:58 +02:00
Dominik Richter
c80b712287
skip run_command stderr for specinfra local execution
...
It fails in most cases, works in others. Skip it for now until this is solved
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:26:58 +02:00
Dominik Richter
682fe8f261
fix selinux label tests for redhat family
...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:26:58 +02:00
Dominik Richter
daf0602b93
test for empty block device
2015-09-22 02:26:58 +02:00