Yusuke Tsutsumi
f5b4ac2395
Adding introspection methods for yum and apt-get
...
* adding yumpkg:owner
* adding aptpkg:owner
* refactoring owner method to utils.pkg library
2014-04-14 14:05:43 -04:00
Evan Borgstrom
d54be1b2f2
Allow for "imports" within pyobjects files
...
This allows for pyobject state files to import objects from other state
files by specifying a salt:// URL in the import statement.
2014-04-14 11:26:16 -04:00
Pedro Algarvio
ba96fbc159
Some sleeping between steps
2014-04-14 11:08:24 +01:00
Pedro Algarvio
546dc2463d
Only one forward slash
2014-04-13 23:32:27 +01:00
Pedro Algarvio
073bf3c971
Allow passing additional remote log file paths
2014-04-13 15:52:57 +01:00
Pedro Algarvio
bb59d7a9db
Don't let YAML split long lines
2014-04-13 13:17:12 +01:00
Pedro Algarvio
e85bc09a63
Only check minion version if a specific commit is passed.
2014-04-13 12:49:00 +01:00
Pedro Algarvio
857078e68a
Separate the salt and testing git URL and COMMIT values
2014-04-13 12:07:56 +01:00
Pedro Algarvio
5a42ca483c
Allow bootstrapping a stable minion
2014-04-13 11:45:26 +01:00
Pedro Algarvio
26570d5efc
Build pillar data while allowing extra pillar key/values
2014-04-13 11:05:18 +01:00
Mike Place
702d51f55e
Remove unecessary test.
2014-04-09 16:27:44 -06:00
Pedro Algarvio
aaf70f2f68
The returned value can also be None
2014-04-08 19:19:33 +01:00
Pedro Algarvio
469ab4abaf
Take into account None
2014-04-08 15:51:09 +01:00
Pedro Algarvio
640de961ac
A new argument was added to the call, adjust.
2014-04-08 15:38:22 +01:00
Pedro Algarvio
723ce8c97f
Improve script output
2014-04-08 15:13:59 +01:00
Pedro Algarvio
34e8eb52ab
Print some more additional information.
2014-04-08 14:50:03 +01:00
Pedro Algarvio
6dd262a6d4
delete_vm
only accepts a dict, not a string
2014-04-08 14:37:40 +01:00
Pedro Algarvio
c07ef89f93
salt/templates/lxc/salt_tarball
is an expectable executable.
2014-04-08 13:47:26 +01:00
Pedro Algarvio
148c8063e4
Prefer subprocess.Popen
, we're not streaming anything.
2014-04-07 23:26:23 +01:00
Pedro Algarvio
a22a3af684
Prefer subprocess.Popen
for now
2014-04-07 23:14:27 +01:00
Pedro Algarvio
20adbd725a
Prefer testrun-no-deps
over testrun
.
2014-04-07 23:00:53 +01:00
Pedro Algarvio
0705d46ca7
Also check for the proper remote URL
2014-04-07 21:16:36 +01:00
Pedro Algarvio
179bef1de8
Remove unnecessary code
2014-04-07 21:07:47 +01:00
Pedro Algarvio
b5c950d3f3
We don't need this information streamed to stdout
2014-04-07 00:39:17 +01:00
Pedro Algarvio
54355c0184
It's a keyword argument
2014-04-06 23:41:58 +01:00
Pedro Algarvio
80e0886bdd
Check the cloned repository commit for the appropriate match
...
This split's the Jenkins script execution into one additional step.
Prepare the source to match the cloned repository commit, then resume
previous steps.
2014-04-06 19:10:56 +01:00
Pedro Algarvio
32597a7083
Compare the bootstrapped minion commit SHA with the desired one.
2014-04-06 15:50:39 +01:00
Nicole Thomas
6eec78fe46
Allow numerical user/group id's without looking up their existence
2014-04-03 13:02:10 -06:00
Thomas S Hatch
b632bb68a1
Merge pull request #11732 from rallytime/bugfix
...
Allow file state to accept numerical ids
2014-04-02 15:46:24 -06:00
Nicole Thomas
3f51dde820
Error checking for if numerical group or user exists
2014-04-02 13:35:58 -06:00
Nicole Thomas
2edbc465f5
Allow file state to accept numerical ids
2014-04-02 11:54:42 -06:00
Thomas S Hatch
09769d6fa2
lint tests
2014-04-02 11:16:24 -06:00
Thomas S Hatch
9ed1e172e3
Maybe this will fix the ubuntu tests on jenkins!
2014-04-02 11:02:03 -06:00
Thomas S Hatch
d478a16ef5
These tests should have never worked!!
2014-04-02 10:27:04 -06:00
Pedro Algarvio
bb70a0e381
Switch quotes to make test pass
2014-03-31 22:30:16 +01:00
Pedro Algarvio
7c782f6752
Adapt test case because we default to dropping unrelated events.
...
The previous default was not dropping unrelated event, however, this
could cause memory leaks, so, the current default is dropping those
events.
We now test for both behaviours.
2014-03-31 03:31:23 +01:00
Pedro Algarvio
ea8db1e427
Allow standalone test execution
2014-03-31 03:05:05 +01:00
Pedro Algarvio
e66432f593
Allow standalone test execution
2014-03-31 03:04:05 +01:00
Pedro Algarvio
a2e4a5c682
Allow standalone test execution
2014-03-31 03:03:40 +01:00
Pedro Algarvio
60d77f6d32
Allow standalone test execution
2014-03-31 03:03:00 +01:00
Pedro Algarvio
d1de22be25
Allow standalone test execution
2014-03-31 03:00:24 +01:00
Pedro Algarvio
92d74ebfdd
Allow standalone test execution
2014-03-31 02:59:34 +01:00
Pedro Algarvio
982d8117b9
Allow standalone test execution
2014-03-31 02:59:04 +01:00
Pedro Algarvio
94f05e62fa
Allow standalone test execution
2014-03-31 02:58:15 +01:00
Pedro Algarvio
f319ae5384
Allow standalone test execution
2014-03-31 02:57:34 +01:00
Pedro Algarvio
4208441175
Allow standalone test execution
2014-03-31 02:57:04 +01:00
Pedro Algarvio
328f3408b7
Allow standalone test execution
2014-03-31 02:56:33 +01:00
Pedro Algarvio
c010c443c5
Allow standalone test execution
2014-03-31 02:55:51 +01:00
Pedro Algarvio
25b8a60452
Allow standalone test execution
2014-03-31 02:54:37 +01:00
Pedro Algarvio
03f66d6874
Allow standalone execution
2014-03-31 02:42:36 +01:00
Pedro Algarvio
6f1337b4c8
Remove extra white-space
2014-03-29 13:20:47 +00:00
Joseph Hall
5f44be4582
Merge pull request #11640 from s0undt3ch/hotfix/env-in-jinja-context
...
Provide `env` to templates.
2014-03-29 07:08:33 -06:00
Pedro Algarvio
596b38e494
Provide env
to templates.
...
Map `env` to the same value of `saltenv` in the templating context until
`env` is fully deprecated in favor of `saltenv`.
Fixes #11480 .
2014-03-29 13:03:36 +00:00
Pedro Algarvio
f7bd723e3f
Add missing comma.
2014-03-29 01:26:02 +00:00
Thomas S Hatch
88bcbc4e53
Merge pull request #11594 from rallytime/darwin_sysctl_test
...
Tests and added functionality for darwin_sysctl module
2014-03-27 13:34:43 -06:00
rallytime
4c2adea74e
Added functionality to sysctl.persist and integration tests for darwin_sysctl module
2014-03-27 13:05:22 -06:00
Thomas S Hatch
95ade395d6
Merge pull request #11511 from rallytime/darwin_sysctl_test
...
More darwin_sysctl tests
2014-03-25 14:23:20 -06:00
rallytime
27985060e2
Integration tests started for darwin_sysctl module
2014-03-25 13:52:54 -06:00
rallytime
334021d4a6
Removed unused variable
2014-03-25 11:21:47 -06:00
rallytime
b17164cfe8
More darwin_sysctl tests
2014-03-25 11:18:04 -06:00
Joseph Hall
33bf0bcdda
Merge pull request #11503 from rallytime/darwin_sysctl_test
...
Pylint fix
2014-03-25 08:37:27 -06:00
rallytime
f192e8c202
Pylint fix
2014-03-25 08:26:40 -06:00
Thomas S Hatch
ef9fc46828
Merge pull request #11447 from s0undt3ch/hotfix/minion-events
...
Fix minion event trigger
2014-03-24 15:43:45 -06:00
Mike Place
de71f0b598
Merge pull request #11487 from rallytime/darwin_sysctl_test
...
Some unit tests for darwin_sysctl module
2014-03-24 13:10:18 -06:00
rallytime
81d29874ac
Empty bottom line - pylint!
2014-03-24 13:06:09 -06:00
rallytime
ce52e33979
pylint
2014-03-24 13:04:35 -06:00
rallytime
1da1f32040
more darwin_sysctl module unit tests
2014-03-24 12:59:12 -06:00
rallytime
cfd86eeb49
Started unit tests for darwin_sysctl module
2014-03-24 12:22:17 -06:00
Pedro Algarvio
0144b24a24
Update test case to new return format.
...
Also, the comparison check is old, new or better, known -> unknown
2014-03-24 17:07:50 +00:00
Pedro Algarvio
6fa685b1d2
Add some more files to the exempt ones
2014-03-24 17:02:23 +00:00
Pedro Algarvio
ed12816806
Update tests to new event classes signatures.
2014-03-24 16:54:31 +00:00
Pedro Algarvio
2c27ec8a8e
Improve permissions check testcase.
2014-03-23 18:20:42 +00:00
Pedro Algarvio
ca76e31ac9
Allow standalone execution
2014-03-23 16:58:40 +00:00
Pedro Algarvio
3f2f5f3f76
Reuse existing vars. Allow standalone execution.
2014-03-23 16:57:51 +00:00
Thomas S Hatch
4af873dcaf
Merge pull request #11337 from techdragon/fix-hightstate-failure-retcode
...
Fix for broken salt cmd return codes - issue #7013
2014-03-22 00:31:19 -06:00
Thomas S Hatch
f9c32c3627
Merge pull request #11414 from rallytime/brew_integration
...
Integration tests for brew module
2014-03-21 12:43:06 -06:00
Thomas S Hatch
43de620730
Merge pull request #11413 from s0undt3ch/hotfix/immutable-lists-sum
...
Simpler immutable types
2014-03-21 11:40:09 -06:00
Thomas S Hatch
7b48481c89
Merge pull request #11396 from kev009/get_fqhostname
...
Replace socket.getfqdn with internal salt.utils.network.get_fqhostname
2014-03-21 10:54:56 -06:00
rallytime
1c26ce3845
Integration tests for brew module
2014-03-21 10:52:51 -06:00
Pedro Algarvio
5fa42543e3
Fix reference and allow standalone test excution.
2014-03-21 12:51:42 +00:00
Pedro Algarvio
f38b18ce7d
Fix reference.
2014-03-21 12:48:06 +00:00
Pedro Algarvio
1825dfe635
Also test slicing
2014-03-21 12:45:54 +00:00
Pedro Algarvio
49bdbefb66
No more proxied immutables. Add test for nested immutables.
2014-03-20 23:59:38 +00:00
Kevin Bowling
14c9d75a92
Replace socket.get_fqdn with internal salt.utils.network.get_fqhostname
2014-03-20 14:37:23 -07:00
Thomas S Hatch
af579abc66
Add VERY simple script to read msgpack files
...
This is meant to make debugging data in msgpack files a little easier
2014-03-20 14:31:26 -06:00
techdragon
e2a04d2877
Fixes & Updates
...
- fixed pep8 issue
- added more logic to check_state_result logic to handle list results properly and return false.
- ordered the check_state_result unit tests more logically. All the data type tests are now before the content & logic handling checks
- discovered duplicate test in check_state_result unit tests and removed it, both tests were asserting using the same data {'host': []}
2014-03-20 15:08:34 +08:00
Thomas S Hatch
6f284aad59
whitespace
2014-03-18 15:51:09 -06:00
Thomas S Hatch
cfc86239bb
Merge pull request #11331 from rallytime/mac_group
...
Integration tests for mac_group module
2014-03-18 15:38:12 -06:00
Thomas S Hatch
50d2239c96
Merge pull request #11329 from cachedout/event_listen_func
...
New flag for watching minion returns by function.
2014-03-18 15:37:42 -06:00
rallytime
761a774424
Integration tests for mac_group module
2014-03-18 14:34:36 -06:00
Mike Place
2752e4b019
Duh. Check func.
2014-03-18 14:10:51 -06:00
Mike Place
d4738b6352
New flag for watching minion returns by function.
2014-03-18 13:49:47 -06:00
rallytime
813920b092
Merge branch 'develop' of https://github.com/saltstack/salt into mac_group
2014-03-18 13:11:42 -06:00
rallytime
f2cff53756
Check if gid exists before adding group and associated tests
2014-03-18 13:02:20 -06:00
Thomas S Hatch
d3c28e8b08
Merge pull request #11302 from cro/add_file_mode_tests
...
Add tests to verify that file.managed will set permissions correctly on existing files.
2014-03-18 10:25:48 -06:00
C. R. Oldham
6c60f17751
Add two tests for checking file permissions when file is already existing
2014-03-17 14:25:17 -06:00
rallytime
42ae77f181
destructive tests
2014-03-17 13:34:05 -06:00
rallytime
29cd475d30
clean-up after changing user info tests
2014-03-17 13:16:45 -06:00
rallytime
4a8ac5fc51
Merge branch 'develop' of https://github.com/saltstack/salt into mac_user_test
2014-03-17 13:12:11 -06:00
rallytime
e2af3aca24
Integration tests for changing user info in mac_user module
2014-03-17 13:10:36 -06:00
Thomas S Hatch
276a1f1e05
Fix file perm checker tests
2014-03-17 11:59:09 -06:00
Thomas S Hatch
05726ff088
Merge branch 'pyobjects_loader_and_map' of git://github.com/borgstrom/salt into borgstrom-pyobjects_loader_and_map
...
Conflicts:
salt/utils/pyobjects.py
2014-03-17 10:23:43 -06:00
rallytime
6a54a92aa9
Removed list groups test
2014-03-17 09:55:41 -06:00
rallytime
d3bc7c800c
mac_user integration tests
2014-03-17 09:02:16 -06:00
Erik Johnson
37bf8ee768
Change package used for opensuse integration pkg tests
2014-03-14 11:50:32 -05:00
Colton Myers
ea800935d7
Switch git clones to saltstack/salt-test-repo (super small repo)
...
Was previously cloning bootstrap a few times, and our salt repo once
(which is a large repo). Should speed up the git tests substantially.
2014-03-14 09:45:17 -06:00
Thomas S Hatch
d522a78926
Merge pull request #11214 from rallytime/mac_user_test
...
pylint fixes
2014-03-13 17:37:42 -06:00
rallytime
ad6bcbdd73
pylint fixes
2014-03-13 14:29:58 -06:00
Pedro Algarvio
4c7d06a64a
Test ImmutableList
sum
2014-03-13 20:10:44 +00:00
Mike Place
72749d70ac
Merge pull request #11213 from rallytime/mac_user_test
...
Refactored and wrote more mac_user integration tests
2014-03-13 13:57:51 -06:00
rallytime
aacf7ee6ac
Ah! Almost forgot the destructive test decorators
2014-03-13 13:55:32 -06:00
rallytime
1dd6fd45bc
Pylints
2014-03-13 13:51:58 -06:00
rallytime
69d974d764
Refactored and wrote more mac_user integration tests
2014-03-13 13:47:01 -06:00
Thomas S Hatch
d1bb711860
Merge pull request #11201 from galet/ini-missing-rows
...
ini_manage module: Preserve empty lines between options and comments.
2014-03-13 10:15:01 -06:00
Pedro Algarvio
2f3d7bd6cc
Merge branch 'develop' of github.com:saltstack/salt into hotfix/immutable-lists-sum
2014-03-13 16:03:50 +00:00
Michal Galet
a50ee98e9b
Cosmetic: Fix missing newline at the end of file.
2014-03-13 13:32:52 +01:00
Michal Galet
9093cf0364
ini_manage module: Preserve empty lines between options and comments.
2014-03-13 12:46:17 +01:00
Mathieu Le Marec - Pasquet
ab0b465d3e
Yet another fix for ImmutableProxyList
...
This is related to #11088 , #11035 , #11003 , #11190 .
2014-03-13 10:53:55 +01:00
Evan Borgstrom
4aec18b1e0
Refactor and modularize of the loader interface, adding Map to pyobjects
...
The problem with using the loaded states (see commit cc8539f
) is that
you can end up in situations where a particular state doesn't exist for
whatever reason. This prevents you from building states freely (see
ticket #10918 ).
The refactor focuses on breaking out the `gen_functions` function into a
number of smaller reusable functions so that pyobjects can load all of
the states and still process `__virtual__()` and `__virtualname__` in a
way that makes sense for building states. After all pyobjects is just
compiling a high state data structure, if a state is available or not
during application time is up to the minion.
As part of this refactor I have also updated all of the inline comments
in the loader to be more consistent with the way things are actually
working now (such as `__virtual__()` returning a string being
deprecated).
There are also some pep8 fixes to the loader file.
Fix #10918
----
This also adds a new feature to pyobjects named `Map`, which allows for
definition of grain dependent data in a pythonic way -- using inner
classes.
----
Lastly this ditches the instance based registry and instead uses a class
based approach like a singleton.
2014-03-12 22:23:32 -04:00
Pedro Algarvio
e1c33dcad6
Revert "Stop running the test while it's failing"
...
This reverts commit a084303c91
.
2014-03-12 21:52:08 +00:00
Thomas S Hatch
ef0f3203e3
Add file type
2014-03-12 10:47:30 -06:00
Thomas S Hatch
0a0f4cdd8d
Merge pull request #11149 from ze42/dev_replace
...
file.append(append/prepend_if_not_found)
2014-03-12 09:30:28 -06:00
Thomas S Hatch
0cbfb2e30a
Merge pull request #11148 from galet/ini-missing-rows
...
Fix ini_manage to preserve empty options
2014-03-12 09:29:37 -06:00
Adrien "ze" Urban
68e88db671
file.replace(append_if_not_found) - test units
2014-03-12 10:44:00 +01:00
Thomas S Hatch
1c909c0ea9
Merge pull request #11155 from rallytime/mac_user_test
...
Mac user integration test
2014-03-11 23:17:03 -06:00
rallytime
b9ea2d09f4
pylint fixes
2014-03-11 21:45:41 -06:00
Michal Galet
5e99f1a60b
Fixing formatting in ini_manage_test.py.
2014-03-11 23:41:53 +01:00
Michal Galet
99fcd43135
Fixing ini_manage module to preserve empty options. Added unit test for module to verify there are no regressions.
2014-03-11 23:35:01 +01:00
rallytime
edfd0f4a99
Wrote a mac_user integration test
2014-03-11 15:26:16 -06:00
Thomas S Hatch
112542ca51
Merge pull request #11137 from ze42/dev_blockreplace
...
blockreplace - ensure newline before appending
2014-03-11 14:06:19 -07:00
Mathieu Le Marec - Pasquet
66e98055c9
cron: fix tests
2014-03-11 18:13:06 +00:00
Adrien "ze" Urban
ec314d4ef6
file.blockreplace(append_if_not_empty): test for missing \n at EOF
2014-03-11 18:46:01 +01:00
Thomas S Hatch
5676968524
Merge pull request #11120 from makinacorpus/cronfix
...
cron: Fix for #10959
2014-03-11 09:02:21 -07:00
Thomas S Hatch
84d5c525b0
Merge pull request #10972 from s0undt3ch/hotfix/force-virtual-booleans
...
The `__virtual__()` function should only return strings on renames.
2014-03-11 08:51:11 -07:00
Mathieu Le Marec - Pasquet
cfa93f9f92
cron: Fix for #10959
2014-03-11 09:18:11 +00:00
Pedro Algarvio
a084303c91
Stop running the test while it's failing
2014-03-10 23:52:38 +00:00
Pedro Algarvio
1ef4cd11cb
Not renaming, return a boolean in __virtual__()
.
2014-03-10 17:51:54 +00:00
Pedro Algarvio
fd1bab0d8d
Add test case which triggers #11003 .
2014-03-10 17:47:22 +00:00
rallytime
b7d4e2ed96
Started some integration tests for mac_user module
2014-03-10 11:19:40 -06:00
Thomas S Hatch
790edd07ac
Merge pull request #11024 from whiteinge/import_text
...
Added load_text filter and import_text tag to Jinja environment
2014-03-07 14:06:19 -08:00
Thomas S Hatch
8c6c608958
Merge branch 'serializers' of git://github.com/johnnoone/salt into johnnoone-serializers
...
Conflicts:
doc/topics/yaml/index.rst
2014-03-07 14:53:03 -07:00
Seth House
c94cd38c65
Added unit test for the import_text tag
2014-03-06 17:30:47 -08:00
Mike Place
abf2487947
Merge pull request #11009 from rallytime/brew_test
...
Brew unit tests done for now
2014-03-06 13:29:31 -07:00
rallytime
b2b05f0e9d
Brew unit tests done for now
2014-03-06 13:01:02 -07:00
Thomas S Hatch
9c2f02a7ef
Merge pull request #10995 from jacksontj/develop
...
Fix check if the item doesn't exist in the ttl cache
2014-03-06 04:49:09 -08:00
Thomas S Hatch
e59fde745d
Merge pull request #10983 from rallytime/brew_test
...
More brew module unit tests
2014-03-06 04:39:00 -08:00
Thomas Jackson
96c76f7a73
Add some unit tests for cache object
2014-03-05 18:12:20 -08:00
rallytime
f5f089b7a6
pylint fixes
2014-03-05 13:56:30 -07:00
rallytime
543a6943fc
More brew module unit tests
2014-03-05 13:08:57 -07:00
Mike Place
697f4bf1ce
Fix Jenkins test failure
...
Add build_shar.sh to list of files permitted to be u+x in the git
repo.
2014-03-05 10:59:54 -07:00