Commit Graph

90622 Commits

Author SHA1 Message Date
Nicole Thomas
b9b3e2e37e
Merge pull request #45610 from terminalmage/kill-six.b-with-fire
Replace all usage of six.b
2018-01-24 14:22:06 -05:00
Nicole Thomas
d58723e95a
Merge pull request #45657 from garethgreenaway/beacons_unicode_update
[oxygen] Updating the beacons to be Unicode friendly.
2018-01-24 14:20:37 -05:00
rallytime
15043fd2e3
Fixup remaining test failures 2018-01-24 14:18:02 -05:00
rallytime
a7460cebc6
Lint fixes 2018-01-24 14:07:46 -05:00
rallytime
c019a92610
Make minor edits from PR review 2018-01-24 14:07:46 -05:00
rallytime
83f6522986
Add unicode_literals to even more modules and states 2018-01-24 14:07:46 -05:00
rallytime
1b4744165b
Add auth error raising change to oxygen release notes 2018-01-24 14:03:35 -05:00
rallytime
d31b41adeb
Update man pages for 2017.7.3 release 2018-01-24 13:46:43 -05:00
Dmitry Kuzmenko
8916b91aa8
Fixed unit tests. 2018-01-24 20:37:11 +03:00
Nicole Thomas
9a17405ba6
Merge pull request #45666 from terminalmage/salt-jenkins-793
Fix failing pkg integration tests for releases with no '.'
2018-01-24 12:19:09 -05:00
Nicole Thomas
3c4559bda7
Merge pull request #45665 from jasperla/doc/vmctl
add salt.modules.vmctl to doc index
2018-01-24 12:14:54 -05:00
Nicole Thomas
e21088c1a4
Merge pull request #45662 from bdrung/2017.7
Fix documentation generation
2018-01-24 12:14:22 -05:00
Nicole Thomas
012935892b
Merge pull request #45658 from terminalmage/tests
Several oxygen test fixes
2018-01-24 12:13:44 -05:00
Erik Johnson
9c86cd627a
[PY3] Add unicode_literals to high-priority modules/states 2018-01-24 10:33:58 -06:00
Nicole Thomas
5a5e780b72
Merge pull request #45566 from twangboy/win_fix_test_docker
Fix `unit.utils.test_docker` for Windows
2018-01-24 11:31:18 -05:00
Erik Johnson
4a6ab729dd
Fix failing pkg integration tests for releases with no '.'
Fedora releases are integers, and Arch's osrelease is simply `rolling`,
so https://github.com/saltstack/salt/pull/45636 caused these tests to
regress. This fixes them by moving the osrelease check until after the
MacOS check.

It also fixes the windows check, which would _always_ evaluate to `True`
since it was not calling the function. Therefore, the `if` would just be
a simple boolean which would resolve to `True` since it was just checking
a function reference.
2018-01-24 10:13:22 -06:00
Daniel Wallace
e827947878
Merge pull request #45618 from terminalmage/os.walk
Fix salt.utils.path.os_walk for certain Python 2 versions
2018-01-24 08:54:32 -07:00
Jasper Lievisse Adriaanse
39ec4c9bfc add salt.modules.vmctl to doc index 2018-01-24 16:49:40 +01:00
Erik Johnson
0717f7a578
Merge pull request #45664 from rallytime/bp-45452
Back-port #45452 to 2017.7.3
2018-01-24 09:33:12 -06:00
Erik Johnson
915e259bad
Merge pull request #45663 from rallytime/bp-45452-2016.11
Back-port #45452 to 2016.11
2018-01-24 09:32:51 -06:00
Nicole Thomas
ecd75c137f
Merge pull request #45651 from rallytime/merge-2016.11
[2016.11] Merge forward from 2016.11.9 to 2016.11
2018-01-24 10:26:32 -05:00
Alejandro del Castillo
369720677b
opkg.py: make owner function return value, instead of iterator
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2018-01-24 10:21:00 -05:00
Alejandro del Castillo
ae94fb61d9
opkg.py: make owner function return value, instead of iterator
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2018-01-24 10:18:56 -05:00
Erik Johnson
d6d7da5c90
Replace all usage of six.b
It can't be trusted to produce bytes, it returns unicode when a unicode
string is passed.
2018-01-24 09:17:28 -06:00
Nicole Thomas
7934372b7b
Merge pull request #45649 from rallytime/bp-45634
Back-port #45634 to 2017.7.3
2018-01-24 09:59:42 -05:00
Nicole Thomas
770f0c4664
Merge pull request #45654 from twangboy/win_fix_shell_info_2017.7.3
Merge forward #45638
2018-01-24 09:59:13 -05:00
Benjamin Drung
71076afbcc doc: Define fake version for msgpack and psutil
When using Python 3 to generate the documentation, it will fail:

$ make -C doc html SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build
[...]
  File "salt/config/__init__.py", line 84, in _gather_buffer_space
    if HAS_PSUTIL and psutil.version_info >= (0, 6, 0):
TypeError: '>=' not supported between instances of 'Mock' and 'tuple'

Therefore add fake version variables to the mocked msgpack and psutil
module.

Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2018-01-24 15:56:18 +01:00
Benjamin Drung
b6a5b745b1 doc: Mock keyring module import
The salt/sdb/keyring_db.py

Traceback (most recent call last):
  File "salt/sdb/keyring_db.py", line 53, in <module>
    import keyring
  File "/usr/lib/python2.7/dist-packages/keyring/__init__.py", line 6, in <module>
    from .core import (set_keyring, get_keyring, set_password, get_password,
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 148, in <module>
    init_backend()
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 64, in init_backend
    keyrings = filter(limit, backend.get_all_keyring())
  File "/usr/lib/python2.7/dist-packages/keyring/util/__init__.py", line 20, in wrapper
    func.always_returns = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 191, in get_all_keyring
    exceptions=TypeError))
  File "/usr/lib/python2.7/dist-packages/keyring/util/__init__.py", line 29, in suppress_exceptions
    for callable in callables:
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 183, in is_class_viable
    keyring_cls.priority
  File "/usr/lib/python2.7/dist-packages/keyring/util/properties.py", line 22, in __get__
    return self.fget.__get__(None, owner)()
  File "/usr/lib/python2.7/dist-packages/keyring/backends/kwallet.py", line 128, in priority
    return super(DBusKeyringKWallet4, cls).priority - 1
  File "/usr/lib/python2.7/dist-packages/keyring/util/properties.py", line 22, in __get__
    return self.fget.__get__(None, owner)()
  File "/usr/lib/python2.7/dist-packages/keyring/backends/kwallet.py", line 31, in priority
    bus = dbus.SessionBus(mainloop=DBusGMainLoop())
NameError: global name 'DBusGMainLoop' is not defined

Therefore also mock the keyring module when generating the
documentation. This fixes #45072.

Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2018-01-24 15:56:01 +01:00
Nicole Thomas
da82f190d2
Merge pull request #45650 from rallytime/bp-45555
Back-port #45555 to 2017.7
2018-01-24 09:47:53 -05:00
Nicole Thomas
8dc12206d5
Merge pull request #45452 from adelcast/dev/adelcast/opkg_pkg_owner
opkg.py: make owner fuction return value, instead of iterator
2018-01-24 09:46:20 -05:00
Nicole Thomas
fa32c183cd
Merge pull request #45647 from twangboy/fix_aws_util
Use six.text_type instead of str
2018-01-24 09:21:44 -05:00
Nicole Thomas
fa373e658e
Merge pull request #45476 from rallytime/unicode-h
Add unicode_literals to modules, states, tests (H)
2018-01-24 09:15:40 -05:00
Nicole Thomas
d5cedf6d81
Merge pull request #45560 from rallytime/unicode-changes-1
Add unicode_literals to modules, states, and related tests
2018-01-24 09:13:58 -05:00
Nicole Thomas
e6e977c6a0
Merge branch 'oxygen' into win_fix_test_docker 2018-01-24 09:13:28 -05:00
Nicole Thomas
a5abe5be68
Merge pull request #45594 from garethgreenaway/tier_three_unicode_modules_state_updates
[oxygen] Tier three Unicode modules state updates
2018-01-24 09:12:01 -05:00
Nicole Thomas
189c133ebc
Merge branch 'oxygen' into bugs/unicode_3 2018-01-24 09:11:23 -05:00
Nicole Thomas
1db8662547
Lint: Remove unused import 2018-01-24 09:06:00 -05:00
Erik Johnson
6fc293da46
Merge pull request #45653 from rallytime/bp-45611
Back-port #45611 to 2017.7.3
2018-01-23 23:20:11 -06:00
Erik Johnson
b5ef58c2aa
Fix salt.utils.path.os_walk for certain Python 2 versions
This helper was designed to ensure that the paths returned were all
unicode types, but on a couple platforms having the path be a unicode
type causes a traceback deep in the stdlib within posixpath.

To work around this, this commit makes the helper a generator that
simply decodes each tuple returned from os.walk as we iterate.
2018-01-23 23:03:17 -06:00
Richard W
5cf24803dc
Merge branch 'develop' into pillar_wildcard_include 2018-01-24 10:09:16 +08:00
Erik Johnson
0186281d7d
Fix traceback in gitfs unit tests 2018-01-23 19:49:58 -06:00
Erik Johnson
21918efb5e
Update test to reflect unicode_literals 2018-01-23 19:34:25 -06:00
Erik Johnson
cb7d262fa5
salt.utils.data.encode() doesn't work on generators 2018-01-23 19:34:25 -06:00
Erik Johnson
469d8e6e52
Fix difference between CSafeDumper and Dumper in yaml serializer test 2018-01-23 19:34:25 -06:00
Erik Johnson
458fdc326c
Increase timeout for orchestration test
This orch test takes longer on some test VM images than others.
2018-01-23 19:34:23 -06:00
Gareth J. Greenaway
6f8be1c98f
Fixing imports for salt.utils.stringutils. 2018-01-23 16:48:49 -08:00
Gareth J. Greenaway
a661fd0b04
Updating unicode changes in beacons with suggested changes. 2018-01-23 16:48:48 -08:00
Gareth J. Greenaway
907e1ddf9f
Updating the six import to use salt version of six. Reverting a change in the adb beacon that broke tests. 2018-01-23 16:48:48 -08:00
Gareth J. Greenaway
ff7e7011be
Updating the beacons to be unicode friendly. 2018-01-23 16:48:43 -08:00
Lee Webb
c50620652a
Merge branch 'develop' into v2017.7.2-route53-apex 2018-01-24 10:53:22 +11:00