Anthony Shaw
7b3ea6f5b9
mute false negative on linter
2017-11-25 19:03:23 +11:00
Anthony Shaw
0a34c12147
tests for napalm grains module, still issue to resolve on is_proxy
2017-11-25 05:47:27 +11:00
Anthony Shaw
38eb0dd000
more test fixtures
2017-11-24 17:14:14 +01:00
Anthony Shaw
c7106d646c
complete tests for napalm_probes
2017-11-24 16:48:06 +01:00
Anthony Shaw
136816c109
fix missing commas in docstrings
2017-11-24 16:36:38 +01:00
Anthony Shaw
452a8965a3
complete coverage for NTP module
2017-11-24 16:34:16 +01:00
Anthony Shaw
dfdb43780d
coverage for ntp testing
2017-11-22 11:36:22 +01:00
Anthony Shaw
5ce67c8a7b
setup all tests for napalm_acl module
2017-11-22 09:01:26 +00:00
Anthony Shaw
cd8d87c61f
create a common module for napalm tests, setup napalm_bgp tests
2017-11-22 08:37:56 +00:00
Nicole Thomas
b2b0c770a4
Merge pull request #44279 from rallytime/merge-2017.7
...
[2017.7] Merge forward from 2016.11 to 2017.7
2017-10-27 12:17:18 -04:00
Erik Johnson
bd5b9dd0aa
Merge pull request #44291 from Ch3LL/pillar_test
...
add saltutil.refresh_pillar test
2017-10-27 10:19:42 -05:00
Ch3LL
34e2955445
add saltutil.refresh_pillar test
2017-10-25 15:56:49 -04:00
rallytime
8237f45a46
Add print_function to __future__ import list
2017-10-25 14:54:03 -04:00
Ch3LL
03b5c4bc6d
add spm integration tests for remove and build
2017-10-25 12:09:51 -04:00
rallytime
1c3cb5c6a4
Merge branch '2016.11' into '2017.7'
...
Conflicts:
- .gitignore
- tests/unit/states/test_file.py
2017-10-25 10:04:08 -04:00
Daniel Wallace
56a3ad8f68
fix pylint comments
2017-10-24 12:18:27 -06:00
Daniel Wallace
4add666db1
add comment to Gemfile and move copyartifacts
...
moved copyartifacts.py to tests/support
Also added a comment to the Gemfile that this is only used to run the testsuite with kitchen-salt
2017-10-24 12:01:57 -06:00
Ch3LL
4729ccd32b
Add multiple spm integration tests
2017-10-23 17:13:32 -04:00
Ch3LL
cd79e9444e
remove unneded kwarg
2017-10-18 17:21:52 -04:00
Ch3LL
1541376c4f
Add spm build test
2017-10-18 17:15:42 -04:00
Ch3LL
d2e91c33bd
Add spm shell tests
2017-10-12 15:31:48 -04:00
Erik Johnson
d942752e95
Fix usage of assert_called_once in Python 3 < 3.6
...
This is a more complete fix which builds upon 41c65b0
and covers all
refs to assert_called_once in the suite.
2017-07-03 09:30:12 -05:00
Dmitry Kuzmenko
e01e566779
Minor: show full dict diffs if test fails.
2017-06-27 16:22:09 +03:00
Daniel Wallace
05f2c66604
handle bytes strings in mock_open
2017-06-15 22:43:40 -06:00
Daniel Wallace
4f7c6d1161
use our own mock_open
...
test.support.mock.mock_open specifies a side effect so that if you constantly
read a mocked open call, it will only iterate through it once, and then after
it will appear as if the end of the file has been reached.
This is needed for salt.modules.cp.push to be tested correctly.
2017-06-15 17:50:35 -06:00
Mike Place
b12611d122
Merge pull request #41617 from cro/n_proxy_tests
...
Port salt-proxy tests to the testsuite changes in Nitrogen.
2017-06-15 12:07:29 -05:00
Gareth J. Greenaway
53a216378c
Fixing the last text failure.
2017-06-09 09:16:09 -06:00
Gareth J. Greenaway
4d3399c6c4
Couple more typos, assert not asset.
2017-06-09 09:16:09 -06:00
Gareth J. Greenaway
14a903ef61
Fixing typo in assertSaltTrueReturn, assertSaltFalseReturn and assertSaltNoneReturn.
2017-06-09 09:16:09 -06:00
Gareth J. Greenaway
a531d01b26
Updating the assert tests for develop based on changes from 41569.
2017-06-09 09:16:09 -06:00
Erik Johnson
846200f11e
Include terminate_process_list in import
2017-06-08 00:24:53 -05:00
C. R. Oldham
4540f82aaa
Port salt-proxy tests to the testsuite changes in Nitrogen.
2017-06-06 13:49:16 -06:00
Daniel Wallace
f309bae8b4
Make sure runtests_engine is ASCII text
...
If this is has any unicode characters in it, it won't load on systems that do
not default to a unicode locale.
find . -type f | while read line; do ret=$(file $line); if [[ $ret == *UTF-8* && $line == *.py ]]; then echo $line; fi; done
The above will list all files that have unicode characters in it and won't load
with locale set to C or POSIX
2017-06-05 17:30:28 -06:00
rallytime
8dfa8d1d19
Pass the fingerprint_hash_type through for gitfs sshd tests
2017-05-11 12:29:51 -06:00
Nicole Thomas
2bf02fad81
Merge pull request #41050 from terminalmage/git_pillar-tests
...
Fix git_pillar integration tests on Arch
2017-05-03 16:53:31 -06:00
Erik Johnson
f77393b80d
Skip git_pillar integration tests on cent6
...
Cent6 has too old of a version of git to handle the make_repo func that
spawns the git repos used in these tests.
2017-05-03 16:36:36 -05:00
Erik Johnson
a94d081004
Add check for git-http-backend
...
This allows for more graceful test failures when the libexec dir is
different from what the test class determines it should be.
2017-05-03 15:16:16 -05:00
Erik Johnson
33515f6a14
Fix git_pillar integration tests on Arch
...
The location of the git-http-backend is within /usr/lib instead of
/usr/libexec.
This also uncomments a line that was commented out for troubleshooting
purposes.
2017-05-03 14:49:14 -05:00
twangboy
c7d164423e
Increase timeout of run_function
2017-05-02 16:01:06 -06:00
Erik Johnson
39157b40ed
Fix some git_pillar integration test failures
...
For some reason these were not failing when I opened #40777 , but now
that the PR is merged are failing for PR builds (as well as locally in
my test env). This fixes those failures.
2017-05-01 17:13:42 -05:00
Mike Place
f766c97e26
Merge pull request #40777 from terminalmage/issue39349
...
Add git_pillar integration tests
2017-05-01 13:51:19 -06:00
Erik Johnson
402be207b2
Skip Pygit2 tests until EPEL fixes pygit2/libgit2 version mismatch
...
We can revert this commit once they get the updated pygit2 pushed to
EPEL stable.
2017-04-28 13:25:02 -05:00
Pedro Algarvio
7b503e562b
Use setUpClass
instead of __init__
2017-04-28 13:33:37 +01:00
Pedro Algarvio
0ae04c01ef
Delete all attributes even strings, boolean, integers
2017-04-28 13:33:37 +01:00
Pedro Algarvio
88627d312f
Write the generated configuration into a config file
2017-04-28 13:33:36 +01:00
Pedro Algarvio
80b80e5416
Fix cherrypy memory leakage
...
* Clean its event/signal bus since our tests don't rely on those.
* No test class level dictionaries
2017-04-28 13:33:35 +01:00
Pedro Algarvio
41df7eca96
Use setUpClass
instead of __init__
2017-04-28 13:33:31 +01:00
Erik Johnson
9f27f362ca
Add HTTP git_pillar integration tests for pygit2
...
Also work around ssh auth issues in Ubuntu
2017-04-27 18:20:18 -05:00
Erik Johnson
9e6361c6c8
Add GitPython HTTP git_pillar tests
2017-04-27 00:48:24 -05:00
Erik Johnson
3881b6e0f3
Prepare git_pillar test code for adding HTTP tests
...
This further abstracts some of the setup and teardown code so it can be
used for git-over-http tests.
It also moves the code that was originally added to the archive
state integration tests to create a local http server into
salt.support.helpers so that it can be more easily and portably used.
2017-04-24 11:00:39 -05:00