Darko Poljak
8d6e0760dc
Fix errors in remote.py unit test.
2016-08-11 21:55:20 +02:00
Darko Poljak
dbcc94ab65
Add derived env vars for target hostname and fqdn.
2016-08-10 23:56:56 +02:00
Darko Poljak
6f28fc2db2
Fix ssh mux socket file error.
...
ssh ControlPath socket file needs to be unique for each host.
To avoid using ssh ControlPath option placeholders move socket file
to host's temp directory. Since each host has unique temp
directory then, although file name for socket file is fixed, its path
is unique.
2016-07-23 16:13:59 +02:00
Darko Poljak
64efa04599
pep8
2016-07-05 20:44:24 +02:00
Darko Poljak
72345f5516
Make union of existing and new requirements instead of conflict error.
2016-06-30 20:37:08 +02:00
Darko Poljak
a12b74b2f5
Resolve conflict.
2016-06-22 12:56:53 +02:00
Darko Poljak
0049b62cca
Add files conf subdirectory for static files.
2016-06-11 12:02:13 +02:00
Darko Poljak
bd9008794c
Conflicting requirements bugfix.
2016-06-10 07:50:07 +02:00
Darko Poljak
e4cbb382ab
PATH resolution for true/false.
2016-04-05 20:23:13 +02:00
Darko Poljak
3062421cf5
Fix bug with parallel hosts operation and specified output path.
2016-04-04 08:03:54 +02:00
Darko Poljak
8191ea91e1
Fix remote exec bug and bug with save_cache and ssh mux socket file.
2016-04-01 20:42:32 +02:00
Darko Poljak
1dfd6671e7
Fix #416 : error for non-posix remote shell. Fix remote.py test errors.
2016-03-29 19:28:43 +02:00
Nico Schottelius
bcaca9c268
Merge branch 'preos' into 4.0-pre-not-stable
...
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
2015-05-05 13:54:38 +02:00
Nico Schottelius
b0321895a7
fix all tests
...
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
2015-03-05 19:20:06 +01:00
Nico Schottelius
b51e9daccc
fix all tests besides one
...
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
2015-03-05 18:51:25 +01:00
Nico Schottelius
d08c29b581
fix most test cases broken by no-dot-cdist change
...
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
2015-03-05 18:32:47 +01:00
Antoine Catton
9717d5d928
Add test case: what if there's a directory in defaults
...
The goal of the directory name is to be before foo and bar
2015-01-04 12:43:57 -07:00
Nico Schottelius
2734e5069e
Merge branch '3.0' into 4.0-pre-not-stable
2014-02-14 20:52:36 +01:00
Steven Armstrong
f82a6224f2
use positional arguments in favour of keyword arguments for backwards compatibility with older python
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2014-02-13 21:05:37 +01:00
Steven Armstrong
46459053f4
use posix -L in favour of longopts
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2014-02-13 21:02:18 +01:00
Nico Schottelius
32eee3b8e9
Merge branch 'master' into 4.0-pre-not-stable
2014-02-12 16:47:10 +01:00
Nico Schottelius
4031209f7b
Merge branch 'bugfix_issue_102' of git://github.com/dheule/cdist
2014-02-11 22:30:24 +01:00
Daniel Heule
6a5f908269
yep, dryrun option has now a unittest, was hard to work out ...
2014-02-11 21:17:19 +01:00
Nico Schottelius
dae43b4489
Merge branch 'feature_unittest_CDIST_ORDER_DEPENDENCY' of https://github.com/dheule/cdist
2014-02-11 15:31:56 +01:00
Nico Schottelius
1f39d50285
Merge branch 'feature_unittest_CDIST_ORDER_DEPENDENCY' of https://github.com/dheule/cdist into 4.0-pre-not-stable
2014-02-11 15:31:48 +01:00
Daniel Heule
e29255b9f2
add an unittest for CDIST_ORDER_DEPENDENCY
2014-02-11 15:20:26 +01:00
Nico Schottelius
42b240f496
Merge branch 'master' into 4.0-pre-not-stable
2014-02-10 14:56:19 +01:00
Daniel Heule
a5426ff4b5
completed copyright infos ...
2014-02-09 17:43:31 +01:00
Daniel Heule
2dd2f5593f
bugfixes for issue 161 and FIXME: also check that there is no object ID
...
when type is singleton?
2014-02-09 17:10:43 +01:00
Nico Schottelius
03f99a0e55
Merge branch 'preos' into 4.0-pre-not-stable
2014-02-08 00:32:39 +01:00
Daniel Heule
60c53e213c
testcases emulator.OverrideTestCase, with some minor bugfixes to make
...
test work as expected ...
2014-02-07 14:24:12 +01:00
Daniel Heule
f163b32720
first try of a test
2014-02-07 13:28:22 +01:00
Daniel Heule
717e21da6c
initial update for override unittests
2014-02-07 00:28:02 +01:00
Steven Armstrong
54815e2b29
implement cdist install
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2014-01-15 13:43:23 +01:00
Nico Schottelius
a5fc3f5002
remove changed attribute of an object - was never used and will never be used
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-12-04 21:29:56 +01:00
Nico Schottelius
ac5fa7cd64
integrate messaging into cdist
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-11-26 01:01:30 +01:00
Steven Armstrong
5cc894e1e9
only use a single space to distinguish between the actual __target_host and the same used as part of the path; fixes #206
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-10-03 09:55:14 +02:00
Steven Armstrong
472198419a
don't assume first argument to be -r, fixes #200
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-12 22:28:29 +02:00
Nico Schottelius
d0dfe8f834
Merge branch 'feature/default_parameters' of https://github.com/asteven/cdist
2013-09-05 13:44:32 +02:00
Nico Schottelius
98cdc6c139
fix tests so that the explorers are not changed while running tests
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-05 13:02:39 +02:00
Nico Schottelius
33559fad67
add comments to some tests
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-04 23:33:52 +02:00
Steven Armstrong
1927d4852a
add tests for configurable default values for parameters
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-04 22:11:08 +02:00
Steven Armstrong
3de9b869ac
there is no such thing as cdist install in master
...
remove all traces of it to prevent the ongoing merge issues when using the real thing
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-08-29 21:56:53 +02:00
Nico Schottelius
2286acc6f2
fix some more tests for the next release
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-28 15:44:52 +02:00
Nico Schottelius
e6feee14fb
Merge branch 'enhance_cache'
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
Conflicts:
cdist/test/code/__init__.py
cdist/test/config_install/__init__.py
cdist/test/explorer/__init__.py
2013-08-28 15:43:03 +02:00
Nico Schottelius
136ddc05b5
context based changes
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-28 15:39:17 +02:00
Nico Schottelius
18c5e60ab1
--context in tests
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-28 15:34:52 +02:00
Nico Schottelius
975b93c20a
fix all tests -> back to normal
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 13:37:40 +02:00
Nico Schottelius
b527479620
refactor out_path -> base_path
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 13:35:03 +02:00
Nico Schottelius
2f5de23ae9
out_path -> base_path
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 12:03:25 +02:00
Nico Schottelius
8298bb0bf5
fix test cdist.test.config_install.ConfigInstallRunTestCase
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 11:33:44 +02:00
Nico Schottelius
c1441fc676
enhance singleton testing
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-10 17:21:38 +02:00
Nico Schottelius
8ab760ad90
document unit test
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-10 17:02:19 +02:00
Steven Armstrong
7205cd5ecf
remove that crappy old singleton object_id thingy
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-07-10 16:31:58 +02:00
Nico Schottelius
25bdcb1602
cleanup tests and ... - 100% green
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 22:39:20 +02:00
Nico Schottelius
ef24ec4db8
port test_missing_requirements to config_install unit test
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 21:50:21 +02:00
Nico Schottelius
e1d8645415
fix unit tests for config_install
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 21:48:15 +02:00
Nico Schottelius
4758daa037
move types into conf/ dir
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 16:38:50 +02:00
Nico Schottelius
b1d661f4c0
merge ResolverTestCase and AutorequireTestCase into ExecutionOrderTestCase
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-20 11:30:20 +02:00
Nico Schottelius
c5c5e7b89b
remove requirement-finder tests - no need to test assignments and no wildcard support anymore
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-20 11:17:30 +02:00
Nico Schottelius
68d4bcbcb4
begin to fix syntax errors of merge
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-03 15:05:43 +02:00
Nico Schottelius
3d73cd2fd3
better debugging for wrong type, fix emulator tests, fixes #176
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-05-27 16:36:20 +02:00
Nico Schottelius
ae8040536f
mere tests of autorequire and resolver into execution_order
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-05-15 09:26:48 +02:00
Nico Schottelius
44a0f5d7bb
restore resolver test
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2013-02-22 11:13:44 +01:00
Steven Armstrong
06fb7491fa
prevent requirements from leaking into autorequired objects and creating circular references
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
Conflicts:
cdist/test/autorequire/__init__.py
2013-02-14 15:23:04 +01:00
Nico Schottelius
e03f5d08dd
move / correct tests in object and config_install
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-19 21:14:23 +01:00
Nico Schottelius
ef45cd5ce0
fix removal of context alias in config_install
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-19 21:14:07 +01:00
Nico Schottelius
2732a4ba5c
finally finish the dynamic resolver
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-19 21:10:18 +01:00
Nico Schottelius
527ec0889b
remove unneeded fixtures
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-19 20:53:38 +01:00
Nico Schottelius
eb93d1bebd
begin tests for config_install
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-19 15:33:50 +01:00
Nico Schottelius
8031c77700
fix some tests, break some others :-)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-18 18:21:51 +01:00
Nico Schottelius
958d2d336f
various cleanups
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-18 17:16:26 +01:00
Nico Schottelius
442dc767dd
merge resolver test into object test - because object requirement solving is implemented
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-16 12:55:36 +01:00
Steven Armstrong
56b6c95ed4
implement conf-dir from CDIST_PATH environment variable
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-30 16:46:17 +01:00
Nico Schottelius
2fe647a1f7
Revert "implement before/after to declare dependencies and deprecate require"
...
Comment from asteven:
Some problems showed up while updating the docs and tests.
You should revert the merge for now.
This reverts commit 84770b9ef2
.
2012-11-19 15:17:46 +01:00
Steven Armstrong
84770b9ef2
implement before/after to declare dependencies and deprecate require
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
--whitespace
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-19 12:29:49 +01:00
Nico Schottelius
1bb3c82d72
cleanup some logging stuff
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 11:47:26 +01:00
Nico Schottelius
7d57d1df79
update emulator tests to work again
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 11:05:40 +01:00
Nico Schottelius
4dd0f61934
--whitespace
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 10:51:13 +01:00
Nico Schottelius
217d2bcb23
Fix test: StdinTestCase
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 10:49:51 +01:00
Nico Schottelius
9cf80f5fdf
make use of env provided by manifest
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 22:39:25 +01:00
Nico Schottelius
28bf0c3ed8
setup target_host for tests in test main class
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 21:52:11 +01:00
Nico Schottelius
866f23ea2c
inject conf_dir for emulator test
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 21:32:54 +01:00
Nico Schottelius
c47d0fae1c
fix autorequire test case and fix cdist_base_path test assignment
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 17:28:26 +01:00
Nico Schottelius
bb1a8d8e66
fixup manifest tests
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 17:01:20 +01:00
Nico Schottelius
04bd5d88c3
Fix tests for code
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 16:58:30 +01:00
Nico Schottelius
4a67d768d5
fix all explorer test cases
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 16:47:51 +01:00
Nico Schottelius
90fad0fe83
create remote base in test - needed?
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 14:15:14 +01:00
Nico Schottelius
184e2bd9c5
add new remote that does local calls
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 18:25:29 +01:00
Nico Schottelius
09fd809032
add new remote handler which turns remote into local ;-)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 18:22:52 +01:00
Nico Schottelius
5ec586f764
begin to cleanup explorer test case
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 18:21:56 +01:00
Nico Schottelius
528901bdee
update a lot of tests for new exec.local
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 15:20:10 +01:00
Nico Schottelius
69a3844332
fix some tests and fix home_dir lookup
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 14:48:51 +01:00
Nico Schottelius
1177286d4e
cleanups of tests (especially exec.local)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 14:42:55 +01:00
Nico Schottelius
32a94a0f89
adjust emulator test to pass exec_path to local
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 13:35:52 +01:00
Nico Schottelius
4946fe2654
adjust paths in test
2012-11-01 13:34:48 +01:00
Nico Schottelius
63573a9797
make package_data work
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-29 22:50:27 +01:00
Nico Schottelius
85fcfb1744
correct __file link again
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-25 23:48:56 +02:00
Nico Schottelius
91c1374657
begin restructering for python package
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-25 23:37:15 +02:00
Nico Schottelius
392ec3c5ed
correct link to __file
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-25 17:46:19 +02:00