Bo Maryniuk
9f8bb257df
Add with_deprecated test with opt-in policy by default
2017-03-21 10:46:53 +01:00
Bo Maryniuk
66dff82062
Fix unit test: log messages has been changed
2017-03-21 09:29:48 +01:00
Bo Maryniuk
52125c732b
Pylint: W1699
2017-03-20 22:31:54 +01:00
Bo Maryniuk
fa8bd76c8b
Fix unit test for a deprecation decorator policy
2017-03-20 22:31:54 +01:00
Bo Maryniuk
717c39bb4c
Add unit test for batch call
2017-03-20 22:31:53 +01:00
Bo Maryniuk
88dc91f9a7
Add unit test for typed returns
2017-03-20 22:31:53 +01:00
Bo Maryniuk
af81a00130
Add unit test for None returns
2017-03-20 22:31:53 +01:00
Bo Maryniuk
88c6e9485b
Add docstring to the unit test
2017-03-20 22:31:53 +01:00
Bo Maryniuk
4fa3793bee
Add unit test for module.xrun call with the correct unnamed arguments
2017-03-20 22:31:53 +01:00
Bo Maryniuk
796b0e2690
Add unit test to call a function with an unexpected keywords
2017-03-20 22:31:53 +01:00
Bo Maryniuk
2314b49f54
Add unit test to call function with a proper arguments
2017-03-20 22:31:53 +01:00
Bo Maryniuk
3ab7d6c458
Refactor unit tests for reusing constants
2017-03-20 22:31:53 +01:00
Bo Maryniuk
3d63165f16
Add unit test for missing args
2017-03-20 22:31:53 +01:00
Bo Maryniuk
33a16d69cc
Add xrun unit test for module is ran in a test mode
2017-03-20 22:31:53 +01:00
Bo Maryniuk
6bbf7232a1
Add test for module is not available
2017-03-20 22:31:53 +01:00
Bo Maryniuk
803b3ce637
Fix existing tests by proper patching and reusing existing constants
2017-03-20 22:31:53 +01:00
Nicole Thomas
201846ff01
Merge pull request #40129 from terminalmage/py3-tests
...
Python 3 compatibility fixes
2017-03-17 17:49:26 -06:00
Erik Johnson
8676f7d14a
Add pip3 to list of commands in which_bin test
2017-03-16 22:07:52 -05:00
Nicole Thomas
d64dee46bd
Merge pull request #40061 from rallytime/merge-develop
...
[develop] Merge forward from 2016.11 to develop
2017-03-16 11:16:52 -06:00
Erik Johnson
3923305141
Sort list of minions in batch to make tests consistent
2017-03-16 12:00:38 -05:00
Erik Johnson
5b71db29d5
Use user.present/absent states to manage user in virtualenv test
2017-03-15 17:18:25 -05:00
Erik Johnson
eb09901f36
Simplify the user state integration tests
...
Put the skipIf and the destructiveTest decorators on the class instead
of each function. Also added a user.absent to the tearDown to reduce
code duplication.
2017-03-15 17:16:34 -05:00
Erik Johnson
66596c6d75
Fail test if sudo is missing
2017-03-15 17:15:56 -05:00
Erik Johnson
9b3890b5f2
Fix network test for cases where no network settings are configured
...
This allows the test to pass inside a docker container where the
networking is managed by docker and not by the OS' network mangagment
daemon.
2017-03-15 17:14:29 -05:00
rallytime
148df32604
Merge branch '2016.11' into 'develop'
...
No conflicts.
2017-03-15 14:52:07 -06:00
Mike Place
5734e2b0a8
Merge pull request #40027 from terminalmage/py3-tests
...
Update git state integration tests for PY3 compatibility
2017-03-15 13:40:55 -06:00
Nicole Thomas
ad9878fa51
Merge pull request #40026 from rallytime/flaky-decorator
...
Add flaky decorator to flaky rest_tornado test
2017-03-15 09:19:47 -06:00
Erik Johnson
ef110baa99
Update git state integration tests for PY3 compatibility
...
Python 3 didn't like some of the stuff that we were doing with
``subprocess.check_call()`` in these tests, so to fix this I have redone
that stuff with calls to functions in the git execution module. In order
to avoid problems with running tests with no global gitconfig, I needed
to add an argument called ``git_opts`` to most of the funcs in the git
execution module (well I didn't *need* to do it to most of the funcs, it
just seemed like we shouldn't only be supporting this argument in a
single function).
This new ``git_opts`` argument is specifically for passing arguments to
the git command itself (not the subcommand). For example, ``git -c
user.name="Foo Bar" commit .....`` is different than running ``git
commit -c user.name="Foo Bar" .....``, because the ``commit`` subcommand
for git also accepts ``-c``.
2017-03-14 18:07:06 -05:00
rallytime
fe4a208569
Add flaky decorator to flaky rest_tornado test
2017-03-14 16:30:54 -06:00
Nicole Thomas
08d6b96171
Merge pull request #39977 from bodhi-space/infra4506
...
INFRA-4506 - various fixes as detailed below
2017-03-14 15:52:32 -06:00
rallytime
029f28bbd5
Merge branch '2016.3' into '2016.11'
...
Conflicts:
- salt/modules/cmdmod.py
2017-03-14 15:44:38 -06:00
rallytime
f6cd372358
Update boto_asg state file unit test mocks to account for changes in #3997
2017-03-14 14:05:20 -06:00
Mike Place
51fb191157
Merge pull request #39841 from rafaelcaricio/telegram-beacon
...
Telegram beacon
2017-03-14 13:30:37 -06:00
Mike Place
9495664f0f
Merge pull request #40002 from s0undt3ch/features/py3
...
Minor Py3 test module fix
2017-03-14 12:44:36 -06:00
Nicole Thomas
dd2bcb7c26
Merge pull request #39888 from ni3mm4nd/module_grains
...
Add function for matching key/value grains
2017-03-14 11:36:40 -06:00
Nicole Thomas
42361596e9
Merge pull request #40009 from gtmanfred/develop
...
Use linux_distribution from distro if not in platform
2017-03-14 11:18:35 -06:00
Nicole Thomas
0ec81a4cde
Fixup a syntax error
2017-03-14 11:15:02 -06:00
Nicole Thomas
2714676a13
Merge pull request #39746 from terminalmage/pathutils
...
Add salt.utils.path
2017-03-14 11:00:34 -06:00
Nicole Thomas
350edbe7e6
Remove unused import in test_core.py
2017-03-14 10:28:42 -06:00
Erik Johnson
5d84b40bfd
Attempt to fix failing grains tests in 2016.3
...
The tearDown appears to only be removing the grain if it matches a
specific value. This may be leading to the grain value not being blank
at the time the next test is run.
Instead of only deleting the grain if it matches a specific value,
instead delete all items from that grain to ensure that it is empty for
the next test.
2017-03-14 11:25:15 -05:00
Jan Kadlec
a797a58ee6
Change function name to equals
2017-03-14 17:15:52 +01:00
Daniel Wallace
b839193443
Use linux_distribution from distro if not in platform
...
http://bugs.python.org/issue1322
python 3.7 is deprecating the platform.{linux_distribution,dist}
functions. They are being moved to the `distro` module on pypi. This
adds support for using the distro module if platform does not have the
needed functions.
2017-03-14 10:09:47 -05:00
Pedro Algarvio
7e58bde7d0
We need to compare lists under Python3 not dict_keys
vs list
2017-03-14 02:17:30 +00:00
Pedro Algarvio
410b583a63
The port attribute definition must come first
2017-03-12 18:05:30 +00:00
Pedro Algarvio
6fe53339ce
Gate class definitions
2017-03-11 19:46:23 +00:00
Pedro Algarvio
992a8c7294
Don't hardcode the webserver port number
2017-03-11 16:00:28 +00:00
Jan Kadlec
ea7faa0935
Rename function key_value_match to is
2017-03-11 07:35:24 +01:00
rallytime
9ddf032e8e
Merge branch '2016.11' into 'develop'
...
Conflicts:
- doc/ref/configuration/minion.rst
- salt/beacons/status.py
- salt/modules/saltutil.py
- salt/utils/schedule.py
- tests/integration/modules/test_beacons.py
- tests/unit/beacons/inotify_beacon_test.py
2017-03-10 14:57:31 -07:00
Erik Johnson
d2206d1a94
Changes to imports to comport with test suite changes in develop
2017-03-10 11:05:02 -06:00
Erik Johnson
db5208b65a
Set up special file_roots for windows symlink test
2017-03-10 11:05:02 -06:00