Commit graph

364 commits

Author SHA1 Message Date
Pedro Algarvio
1597940122 Upgrade to boto3>=1.13.5
While testing running the test suite under Py3.7 on windows we hit an
issue installing botocore at the version it was at.
With this newer version of boto3 which also pulls in a newer version of
botocore we got past the issue.
2020-05-08 14:41:23 -07:00
ch3ll
c87642181e add towncrier to manage changelog 2020-05-07 16:22:31 -07:00
Pedro Algarvio
e157459016 Switch to pytest-salt-factories 2020-05-07 16:00:11 -07:00
rsmekala
d0150f4f4f
Bug fixes in Junos-related components (#55824)
* Merged junos-specific changes on 2019.2

* Merged junos-specific changes on 2019.2

* Fixes FileNotFound exception with invalid dest option in junos.cli

* Fixed documentation for junos.diff

* Fixed improper handling of dest and format options in rpc modules

* Implement exception handling around XML filter parsing

* Porting fix from develop to 2019.2

* Fixed documentation

* Fixed documentation

* Fixed rollback docstring: CLI example

* Implemented exception handling around template rendering in junos.load

* Implemented exception handling around template rendering in junos.install_config

* Fixes broken state module junos.diff

* Fixes broken state module junos.rollback

* Fixes broken state module junos.rpc

* Adds documentation about zeroize functionality for non-root user

* Adds error message for install_config in case invalid mode provided

* Handle LockError case in install_config gracefully

* Replace string concatenation with format

* Revert replacing cli command with rpc: junos.zeroize

* Support dynamic config mode

* Changed CLI example to conform with new rpc module definition

* Added exception handling for invalid image path for install_os module

* Extended load() support to config_action:merge, to match PyEZ capabilities

* Added check to allow only 1 config_action in load()

* Fixed reboot=True scenario for install_os

* Added comments to explain the behaviour in reboot scenario

* Added new option all_re. Updated documentation

* Fixed #117

* Temporary fix for #117

* Modified as per review comments

* Fixes junos.load template case

* Fixed test cases in 2019.2 branch

* Update junos_syslog.py

* Use cache_file instead of get_file

* Revert "Use cache_file instead of get_file"

This reverts commit b679c068de.

* Revert "Use cache_file instead of get_file"

This reverts commit b679c068de.

* added new testcases

* code changes as per review comment by @twangboy

* code changes as per review comment by @twangboy

* fix lint warnings as per saltpylint

* fix pylint, pydoc, and test failures due to junos-eznc version

* Revert "fix pylint, pydoc, and test failures due to junos-eznc version"

This reverts commit 430d5bdb9b.

* Revert "Revert "fix pylint, pydoc, and test failures due to junos-eznc version""

This reverts commit 4e69ce76e3.

* Revert "fix pylint, pydoc, and test failures due to junos-eznc version"

This reverts commit 430d5bdb9b.

* working on fixing comments from saltstack unit runs

* fix: salt.states.junos.rst:20:Pygments lexer name 'set' is not known

* fix as per comment from @dmurphy18 and pre-commit changes

* import line changes as per pre-commit

* changes as per comment from salt team regarding interface syntax

* changes as per comment from salt team regarding interface syntax

* when called from junos.rpc from test, dest is intacct

* pre-commit checks for darwin

* pre-commit check for linux onf py 3.8 and 3.9

Co-authored-by: rsmekala <rsmekala@juniper.net>
Co-authored-by: Nitin Kr <nitinkr@juniper.net>
Co-authored-by: Nitin Kr <nitin.nitp@gmail.com>
Co-authored-by: Shane Lee <slee@saltstack.com>
Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
Co-authored-by: David Murphy <dmurphy@saltstack.com>
2020-05-07 11:03:25 -07:00
Pedro Algarvio
e4c3777faf enum34 is no longer a requirement now that Sodium is Py >= 3.5
Fixes #56603
2020-05-06 15:44:01 -07:00
Pedro Algarvio
84421e884b Compile static requirements 2020-05-04 01:19:18 -07:00
Pedro Algarvio
a8d3c06414 Upgrade PyTest 2020-04-27 07:35:28 -07:00
Pedro Algarvio
ce56339f19 Upgrade pytest-salt-runtests-bridge requirement 2020-04-27 07:35:28 -07:00
Pedro Algarvio
0c12750c3f Upgrade to pygit2 >= 1.2.0 for Py >= 3.8 2020-04-27 07:33:48 -07:00
Pedro Algarvio
396499c18a Upgrade PyZMQ to 19.0.0 for Py >= 3.8 2020-04-26 20:47:17 -07:00
Pedro Algarvio
cfc3bba516 Stop getting warnings about missing toml library
```
.nox/lint-salt/lib/python3.7/site-packages/isort/settings.py:295: UserWarning: Found pyproject.toml with [tool.isort] section, but toml package is not installed. To configure isort with pyproject.toml, install with 'isort[pyproject]'.
10:19:57    file_path))
```
2020-04-26 20:45:18 -07:00
Christian McHugh
6a5a14e4e1
Merge branch 'master' into toml 2020-04-25 11:02:49 +01:00
Pedro Algarvio
01fb8fca5e Update PyTestSalt requirement(because we now bundle tornado) 2020-04-24 11:28:10 +02:00
Daniel Wozniak
096dc75a70
Merge pull request #56727 from s0undt3ch/features/doc-pre-commit
Replace `tests/unit/test_doc.py` with a pre-commit hook.
2020-04-23 23:30:54 -07:00
Daniel Wozniak
12c70d2196
Merge pull request #56871 from s0undt3ch/hotfix/requirements
Update requirements. We no longer support Python 2.
2020-04-23 23:07:22 -07:00
Pedro Algarvio
04f6159d31
Update requirements. We no longer support Python 2. 2020-04-24 01:07:13 +01:00
Pedro Algarvio
a5b9961f78
Lay the ground for invoke usage 2020-04-23 18:42:47 +01:00
Pedro Algarvio
05ddc846e1
Add toml to Linux, macOS and Windows testing requirements 2020-04-23 17:23:08 +01:00
Pedro Algarvio
a24f6fe7e7
Default crypto library to pycryptodomex 2020-04-23 09:32:34 +01:00
Pedro Algarvio
d926b95f69
Fix static requirements 2020-04-23 09:02:07 +01:00
Pedro Algarvio
cc8c3f09c6
Update static requirements to include Py3.8 and Py3.9 (except windows)
Windows required package pywin32 doesn't state that it support any
python version above Py3.7
2020-04-22 12:26:21 +01:00
ch3ll
2586f716b2
Revert "add towncrier to manage changelog"
This reverts commit 57d160cc60.
2020-04-20 09:34:36 -04:00
Daniel Wozniak
86c2fb869a
Merge pull request #56671 from bryceml/update_sphinx
update sphinx to 3.0.1
2020-04-18 01:46:09 -07:00
Bryce Larson
bba8405c6b
update sphinx to 3.0.1 2020-04-17 16:49:14 -06:00
ch3ll
57d160cc60
add towncrier to manage changelog 2020-04-16 17:04:49 -04:00
Pedro Algarvio
7443ad3bed
Fix static requirements 2020-04-13 18:53:05 +01:00
Pedro Algarvio
68c90783f8
Drop static requirements for Sodium unsupported versions 2020-04-10 10:04:51 +01:00
Daniel Wozniak
6258f6b61b
Merge pull request #56363 from s0undt3ch/hotfix/requirements
Upgrade `psutil` to v5.6.6 because of CVE-2019-18874
2020-04-09 09:48:43 -07:00
Pedro Algarvio
7fc0d5460f
Upgrade psutil to v5.6.6 because of CVE-2019-18874
https://github.com/advisories/GHSA-qfc5-mcwq-26q8
2020-04-01 19:51:10 +01:00
Pedro Algarvio
489155feeb
Update libnacl to 1.7.1
```
Failed to import utils nacl, this is due most likely to a syntax error:
20:27:00         Traceback (most recent call last):
20:27:00           File "/tmp/kitchen/testing/salt/loader.py", line 1607, in _load_module
20:27:00             mod = imp.load_module(mod_namespace, fn_, fpath, desc)
20:27:00           File "/tmp/kitchen/testing/salt/utils/nacl.py", line 26, in <module>
20:27:00             import libnacl.secret
20:27:00           File "/tmp/kitchen/testing/.nox/runtests-parametrized-2-7-coverage-true-crypto-none-transport-zeromq/local/lib/python2.7/site-packages/libnacl/__init__.py", line 119, in <module>
20:27:00             crypto_box_SEEDBYTES = nacl.crypto_box_seedbytes()
20:27:00           File "/usr/lib64/python2.7/ctypes/__init__.py", line 374, in __getattr__
20:27:00             func = self.__getitem__(name)
20:27:00           File "/usr/lib64/python2.7/ctypes/__init__.py", line 379, in __getitem__
20:27:00             func = self._FuncPtr((name_or_ordinal, self))
20:27:00         AttributeError: /usr/lib64/libsodium.so.4: undefined symbol: crypto_box_seedbytes

20:27:13         20:27:12,714 [salt.loader                                               :1624][ERROR   ] Failed to import module nacl, this is due most likely to a syntax error:
20:27:13         Traceback (most recent call last):
20:27:13           File "/tmp/kitchen/testing/salt/loader.py", line 1607, in _load_module
20:27:13             mod = imp.load_module(mod_namespace, fn_, fpath, desc)
20:27:13           File "/tmp/kitchen/testing/salt/modules/nacl.py", line 157, in <module>
20:27:13             import salt.utils.nacl
20:27:13           File "/tmp/kitchen/testing/salt/utils/nacl.py", line 26, in <module>
20:27:13             import libnacl.secret
20:27:13           File "/tmp/kitchen/testing/.nox/runtests-parametrized-2-7-coverage-true-crypto-none-transport-zeromq/local/lib/python2.7/site-packages/libnacl/__init__.py", line 119, in <module>
20:27:13             crypto_box_SEEDBYTES = nacl.crypto_box_seedbytes()
20:27:13           File "/usr/lib64/python2.7/ctypes/__init__.py", line 374, in __getattr__
20:27:13             func = self.__getitem__(name)
20:27:13           File "/usr/lib64/python2.7/ctypes/__init__.py", line 379, in __getitem__
20:27:13             func = self._FuncPtr((name_or_ordinal, self))
20:27:13         AttributeError: /usr/lib64/libsodium.so.4: undefined symbol: crypto_box_seedbytes

20:27:15         20:27:15,353 [salt.loader                                               :1624][ERROR   ] Failed to import utils nacl, this is due most likely to a syntax error:
20:27:15         Traceback (most recent call last):
20:27:15           File "/tmp/kitchen/testing/salt/loader.py", line 1607, in _load_module
20:27:15             mod = imp.load_module(mod_namespace, fn_, fpath, desc)
20:27:15           File "/tmp/kitchen/testing/salt/utils/nacl.py", line 26, in <module>
20:27:15             import libnacl.secret
20:27:15           File "/tmp/kitchen/testing/.nox/runtests-parametrized-2-7-coverage-true-crypto-none-transport-zeromq/local/lib/python2.7/site-packages/libnacl/__init__.py", line 119, in <module>
20:27:15             crypto_box_SEEDBYTES = nacl.crypto_box_seedbytes()
20:27:15           File "/usr/lib64/python2.7/ctypes/__init__.py", line 374, in __getattr__
20:27:15             func = self.__getitem__(name)
20:27:15           File "/usr/lib64/python2.7/ctypes/__init__.py", line 379, in __getitem__
20:27:15             func = self._FuncPtr((name_or_ordinal, self))
20:27:15         AttributeError: /usr/lib64/libsodium.so.4: undefined symbol: crypto_box_seedbytes
```
2020-04-01 19:50:43 +01:00
Pedro Algarvio
d9791c393f
Revert and fix windows requirements 2020-03-26 17:20:21 +00:00
twangboy
8fdf52a243
Update gitpython to 2.1.15 2020-03-24 01:38:53 +00:00
Pedro Algarvio
e6cc2a6192
Separate pyobjc requirements 2020-03-23 22:52:24 +00:00
Pedro Algarvio
262ad2e98a
Compile static requirements 2020-03-23 22:36:07 +00:00
Pedro Algarvio
e7f08d5349
Update static requirements 2020-03-20 20:14:35 +00:00
Pedro Algarvio
be4a272d07
Update static requirements 2020-03-19 21:15:41 +00:00
Pedro Algarvio
fda8abf4a8
Update static requirements 2020-03-19 18:59:11 +00:00
Pedro Algarvio
abda125086
Update static requirements files 2020-03-12 20:21:24 +00:00
ch3ll
fdeae1f0e1
Use virtualenv 20.0.10 for macosx tests 2020-03-12 10:54:13 -04:00
Pedro Algarvio
69a3d33f09
Replace pycryptodome with pycrypto
Due to issues found during package testing for the several supported
linux distributions, we're switching back our crypto depencency to
pycrypto.

Security concerned users are still advised to install the latest m2crypto
or pycryptodome library after pip installing salt since salt is prepared
to work with whatever is available.
2020-01-31 17:56:58 +00:00
Daniel A. Wozniak
103890c4fe
backports-abc only for py2 2020-01-31 10:41:16 -07:00
Daniel A. Wozniak
0e4ad85f70
singledispatch only needed for < 3.4 2020-01-31 16:35:14 +00:00
Daniel A. Wozniak
e4ee32f2a0
Do not allow msgpack 1.0.0rc1 2020-01-28 18:12:55 +00:00
Daniel A. Wozniak
7b369aa61c
Remove trailing newline 2020-01-26 13:17:23 -07:00
Daniel A. Wozniak
6ed189e031
Move tornado requirements to os base files 2020-01-26 13:15:05 -07:00
Daniel A. Wozniak
28a9bde5e3
Update requirements for tornado changes 2020-01-26 17:04:07 +00:00
Daniel Wozniak
3b12858efd
Merge pull request #55702 from cmcmarrow/mysql_win
add pymssql to win/req.txt
2020-01-25 12:17:48 -07:00
Daniel Wozniak
12c5b33396
Merge pull request #55858 from s0undt3ch/hotfix/venafy
Update Venfi Module
2020-01-21 16:30:16 -07:00
Charles McMarrow
fbadbcfe62
Merge branch 'master' into mysql_win 2020-01-15 10:00:09 -08:00
Gareth J. Greenaway
716b5f693d
Removing version gating for installing mock 3.0.5 2020-01-14 20:12:24 -08:00