Commit graph

109233 commits

Author SHA1 Message Date
Pedro Algarvio
e313185fe3
Salt no longer supports IOFLO 2020-09-30 09:31:48 +01:00
Pedro Algarvio
17b5c8a25b
Fix path in license 2020-09-30 09:31:48 +01:00
Pedro Algarvio
882061641f
Ohlo is long gone 2020-09-30 09:31:48 +01:00
Pedro Algarvio
122e7039f3
Fix format keys 2020-09-30 09:30:09 +01:00
ScriptAutomate
3f6b5d4275 Add refresh arg to update() docs; pre-commit fixes 2020-09-29 18:09:56 -07:00
Markus
1a37f5b2fa
Rename _schedule.conf on YAML parse error (#58179)
* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* doc

* changelog

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* doc

* changelog

* Add some tests

* Rename instead of remove

* doc

* no sleep

* pylint

* Use direct import instead of __utils__

* Remove __utils__ from other modules __virtual__ func

* Remove py2 code

* Revert boto_ec2

There's a problem with the assign_funcs util that I don't know how to
fix

* Rever boto_sns

There a problems with the assign_funcs util that I don't know how to fix

* Remove py2 code form elbv2

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* delete_schedule_conf_on_yaml_parse_error

* doc

* changelog

* Add some tests

* Rename instead of remove

* doc

* no sleep

* pylint

* Remove py2

* Fix format strings

* Fix some black

* fix some lint

* Fix failing test

* Added changelogs

* Moved test code of Twangboy, help of DmitryKuzmenko

* Redundant import

* Fix black

* Fix issue with iterator

Co-authored-by: twangboy <slee@saltstack.com>
2020-09-29 18:09:12 -07:00
Ken Crowell
e93191697d Move changelog for #58311 to changelog/ 2020-09-29 17:20:23 -07:00
Cristian
919390f9bc modules/opkg: create restartcheck state if it's dir doesn't exist
This is a code cleanup change as the directory contains more than
the module.dep.{timestamp,md5sum} files, so the test was misleading.

The old file test was a remnant from when the only reboot sources were
kernel module changes (the files still get created unconditionally).

This is a change done by Ioan-Adrian Ratiu in NI salt repo: commit 505206

Signed-off-by: Cristian <cristian.hotea@ni.com>
2020-09-29 17:03:22 -07:00
Andrei Zene
a83978b691 fixup! fixup! Fix executors not being called for multi-jobs 2020-09-29 16:58:22 -07:00
Andrei Zene
48ec0ef50c fixup! Fix executors not being called for multi-jobs 2020-09-29 16:58:22 -07:00
Andrei Zene
f90f040fb6 Fix executors not being called for multi-jobs 2020-09-29 16:58:22 -07:00
Mathieu Parent
545f7643f4
Allow to override git_pillar_base per-remote (Port #51640 to master) (#57288)
* Allow to override git_pillar_base per-remote

* Add pre-commit suggestions

* Fix pylint

* Apply "Remove import comments"

Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
2020-09-29 16:55:58 -07:00
Dmitry Kuzmenko
3434a94203
Port #49697 and #49926 to master (#56893)
* Port #49697 to master

Fix set_static_all, always display requestmode and refactor
_change_state.

Display requestmode even if service is offline. This will keep parity
between older and newer nilrt distro.

Split the logic of _change_state function for older and newer disto.

Fix set_static_all. If there are no nameservers specified, we shouldn't
set any property for nameservers configuration to the service.

* Port #49926 to master.

Configure network interfaces without cable & add tests.

On NG we use connman as a network manager which consider a service, an
interface connected with a cable. The only way to set-up an interface
without a cable is through config files. This works also for services
because before we start the connamn daemon, we create a config file,
/var/lib/connman/interfaces.config with DHCP settings for each
interface.

* Require pyifaces, skip test if no pyifaces installed.

* Update unit test correspondingly to the module changes.

* Ran pre-commit hook

Co-authored-by: Alexandru Vasiu <alexandru.vasiu@ni.com>
2020-09-29 16:54:08 -07:00
Ken Crowell
4e3082bb86 Run pre-commit hooks on changes 2020-09-29 16:30:00 -07:00
Ken Crowell
2073094d6a Add test for rest_tornado exception 2020-09-29 16:30:00 -07:00
Ken Crowell
52056ca46a Address teardown warning in test_rest_tornado 2020-09-29 16:30:00 -07:00
Ken Crowell
f4c668b4d7 Save local client SaltAPIHandler::job_not_running
It's not clear to me why the local client will no longer be in the object the second time around.  This makes three failing tests pass.
2020-09-29 16:30:00 -07:00
Matt Phillips
1f640fc69a saltnado: don't use gather_job_timeout as a timeout signal in job_not_running
because the future was generated from tornado.gen.sleep, its eventual timer
still fires regardless of if the future is manually set with set_result. When
set_result is called twice (once manually by saltnado, once by tornado call_later),
a stacktrace like so is thrown:

[ERROR   ] Uncaught exception POST / (::1)
Traceback (most recent call last):
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/web.py", line 1369, in _stack_context_handle_exception
    raise_exc_info((type, value, traceback))
  File "<string>", line 3, in raise_exc_info
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/stack_context.py", line 314, in wrapped
    ret = fn(*args, **kwargs)
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/gen.py", line 771, in later
    f.set_result(None)
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/concurrent.py", line 254, in set_result
    self._set_done()
  File "/home/mphillips81/.pyenv/versions/3.6.5/lib/python3.6/site-packages/tornado/concurrent.py", line 298, in _set_done
    for cb in self._callbacks:
TypeError: 'NoneType' object is not iterable

This patch attempts to fix that.
2020-09-29 16:30:00 -07:00
Ken Crowell
4bcf5d1c81 Reinstate some skipped tests
These seem to already pass on master, before the changes added in this
PR, so something over the last several years fixed whatever was broken.
2020-09-29 16:30:00 -07:00
Sage the Rage
2cf884c847 move suggested fix
move suggested fix up in the template
2020-09-29 15:40:39 -07:00
Sage the Rage
4b0798688d Update issue templates docs
Adding a new template specific to Docs
2020-09-29 15:40:39 -07:00
twangboy
735186ad13 Fix pre-commit isort 2020-09-29 15:29:30 -07:00
twangboy
21d95168e8 Fix pre-commit isort 2020-09-29 15:29:30 -07:00
twangboy
1b850818ea Simplify chained comparison 2020-09-29 15:29:30 -07:00
twangboy
fc669f6ca2 Black 2020-09-29 15:29:30 -07:00
twangboy
4bb70ab055 Fix some lint 2020-09-29 15:29:30 -07:00
twangboy
12b866fa72 Fix pre-commit 2020-09-29 15:29:30 -07:00
twangboy
8884fe7998 Fix formatting 2020-09-29 15:29:30 -07:00
lomeroe
e32393ad15 correct tested value 2020-09-29 15:29:30 -07:00
lomeroe
a77e747771 update sc_removal_lookup to use string values as keys
add tests for ScRemovalOption policy
2020-09-29 15:29:30 -07:00
piterpunk
6ad09b89ce Added tests Proxmox connection custom port
- Added the test for the custom port feature
- Removed duplicated username call in proxmox.py
2020-09-29 15:28:45 -07:00
piterpunk
0e4a638c47 Added changelog entry 2020-09-29 15:28:45 -07:00
Andrei Mahalean
6a60271702 Allow to use a custom port in Proxmox connection
Ability to specify a port for the connection to Proxmox,
defaults to 8006 if not specified
2020-09-29 15:28:45 -07:00
Mathieu Parent
269c12a26f Apply "Remove import comments" 2020-09-29 15:28:13 -07:00
Mathieu Parent
44a4706950 Fix pylint 2020-09-29 15:28:13 -07:00
Mathieu Parent
10376eaf9a Add pre-commit suggestions 2020-09-29 15:28:13 -07:00
Mathieu Parent
e276702d13 Allow to pass arguments to fileserver.update runner
This is useful to only update one GitFS remote.
2020-09-29 15:28:13 -07:00
Bryce Larson
c3ea62a7f6 use spot instance for windows2019 2020-09-29 10:16:41 -07:00
Bryce Larson
e19fd5fffb fix spot instance creation until https://github.com/test-kitchen/kitchen-ec2/issues/511 is fixed 2020-09-29 10:16:24 -07:00
Pedro Algarvio
1f69acd836
Merge pull request #58568 from saltstack/hotfix/requirements
[PyTest Migration] Bump to PyTest >= 6.1.0 &  Fix PyTest's tests integration files copy
2020-09-29 14:38:27 +01:00
Kirill Goncharov
7f07d8f073 Add usage example to documentation of file.copy state 2020-09-29 01:09:32 -07:00
David Murphy
80c962b353 Correct typo in spelling enable_fqdns_grains 2020-09-29 01:08:33 -07:00
Cédric Bosdonnat
e0fe415927 Properly fix memory setting regression in virt.update
The 'mem' property in the virt.update value should indicate the result
of a live memory setting. The value should be an int in KiB. Fixing the
code and tests for this.
2020-09-29 01:05:25 -07:00
Megan Wilhite
2fdb2ceeb8 run pre-commit: remove import comments 2020-09-29 01:04:49 -07:00
Megan Wilhite
8903e1fd5a run pre-commit 2020-09-29 01:04:49 -07:00
Sebastian Marsching
7a277c6f97 Add test case for #57189. 2020-09-29 01:04:49 -07:00
Sebastian Marsching
42894bd5a7 Fix #57189.
This patch ensures that the extents file attribute is ignored when
comparing file attributes. This is necessary because this attribute is
set by the underlying file system and can never be reset.
2020-09-29 01:04:49 -07:00
Pedro Algarvio
74eda6c746
Fix static requirements again 2020-09-29 05:58:10 +01:00
Pedro Algarvio
b3658c01d6
Fix tests.pytests.unit.modules.test_ini_manage.test_section_req on Windows 2020-09-29 05:57:05 +01:00
Pedro Algarvio
0d03e9f62c
Bump pytest-salt-factories to 0.93.x 2020-09-29 05:57:05 +01:00