Commit Graph

15131 Commits

Author SHA1 Message Date
Gareth J. Greenaway
039f3d1622
Increase limit for trimming. 2018-11-05 11:22:20 -08:00
twangboy
b0341ea7dc
Remove flaky test 2018-11-05 12:15:06 -07:00
rallytime
a02564c7c0
Merge branch '2018.3' into 'fluorine'
Conflicts:
  - salt/utils/win_dacl.py
2018-11-05 14:06:42 -05:00
Gareth J. Greenaway
7f77bfef99
Adding test for utils/dicttrim.py 2018-11-05 10:58:36 -08:00
rallytime
e993692d01
Merge branch '2017.7' into '2018.3'
Conflicts:
  - salt/master.py
  - salt/transport/tcp.py
  - salt/transport/zeromq.py
  - tests/integration/cli/test_batch.py
2018-11-05 12:54:30 -05:00
Cédric Bosdonnat
f9b6171aed virt: fix disk targets before diffing
Ensure the disk target devices are unique within the disks in the new
list before diffing them. Libvirt will reorder the disks based on their
targets. If the users gives a disk order that is not consistent with the
currently running VM, then it's his fault giving us wrong data.
2018-11-05 17:07:45 +01:00
Cédric Bosdonnat
a75dcb3e9e virt: introduce disk device type
Disk devices can be of several types and we need to handle them in order
to update existing VMms with floppy or cdrom devices.
cdrom devices are particularly interesting since they can also have no
source.
2018-11-05 17:05:55 +01:00
Cédric Bosdonnat
9099179b7a Virt: VM disk source may not be specified
Disks like cdroms have no source element. We need to handle iit in the
disks comparison or we'll have exceptions when updating VMs that haven't
been generated by salt virt module.
2018-11-05 17:04:48 +01:00
Nicole Thomas
c29f9d23a5
Merge pull request #50342 from Ch3LL/fix_unless_onlif_mac
Fix test_issue_30161_unless_and_onlyif_together for MacOSX
2018-11-05 09:22:21 -05:00
Nicole Thomas
3022b7db5b
Merge pull request #50347 from garethgreenaway/41342_beacon_state_module_fixes
[2018.3] Fixes to beacon state module
2018-11-05 09:19:40 -05:00
Nicole Thomas
f560570e84
Merge pull request #50368 from twangboy/fix_test_standard
Fix `integration.client.test_standard` on Windows
2018-11-05 08:58:19 -05:00
twangboy
9858c4d792
Fix some lint 2018-11-03 10:53:49 -06:00
twangboy
c5a9af7fbe
Increase timeout 2018-11-02 18:21:35 -06:00
Daniel A. Wozniak
18b5d43d09
Increase cli batch test timeout for increased reliablity 2018-11-02 17:15:31 -07:00
twangboy
6948274c25
Add some timeouts 2018-11-02 17:11:50 -06:00
twangboy
d968b7df0a
Adds timeouts to the manage.down runner
Passes timeouts to the runner from the test
2018-11-02 16:17:36 -06:00
twangboy
b4b0a71a0f
Fix test_matcher on Windows
Fixes a timeout issue in test_salt_documentation_arguments_not_assumed
2018-11-02 14:30:31 -06:00
Gareth J. Greenaway
b8ded8bf5f
Updating the swap function in the mount.swap function also check the device name when checking the fstab data. Updating tests to reflect new behavior. 2018-11-02 12:23:24 -07:00
Gareth J. Greenaway
8885d1ff3d
Merge branch '2018.3' into 41342_beacon_state_module_fixes 2018-11-02 12:08:19 -07:00
lomeroe
0e011ad805 add runTest method to class for PY2 2018-11-02 08:03:43 -05:00
lomeroe
377ec095ab add a test for #47784 2018-11-02 08:03:43 -05:00
lomeroe
0a14505e21 change backslashes in comment string to fix lint error 2018-11-02 08:03:43 -05:00
lomeroe
02181d385a add fix/test for #50079
ADML display names that have a single match in each Computer/User policy
would not work with the "short" display name, requiring either the
"long" name or the explicit policy name
2018-11-02 08:03:43 -05:00
lomeroe
05f29511a4 more lint fixes 2018-11-02 08:03:43 -05:00
lomeroe
94b33350a8 lint fixes in test 2018-11-02 08:03:43 -05:00
lomeroe
2a79626538 update test to actually work
update lgpo module to catch another possible case of multiple ADML names
2018-11-02 08:03:43 -05:00
lomeroe
42840ecd9b add missing comma in function call 2018-11-02 08:03:43 -05:00
lomeroe
c283f50074 Log a warning message instead of an exception when a SID cannot be
converted to a username (for user rights assignments)

Add a module test file
2018-11-02 08:03:43 -05:00
Brett Benassi
346a8317b1
Updating the AMI's and sizes for the test run. 2018-11-01 19:05:49 -06:00
Gareth J. Greenaway
c2354a9cb1
Fixing beacon state test. Adding a reset function to beacon module to clear out beacon configuration. Useful for tests runs to ensure bits are left over between runs. 2018-11-01 16:47:02 -07:00
Gareth J. Greenaway
2390f471ce
Adding SaltReturnAssertsMixin back in 2018-11-01 15:22:18 -07:00
Gareth J. Greenaway
677d0908fd
Remove zookeeper reference. 2018-11-01 15:05:42 -07:00
Gareth J. Greenaway
f3dee43bf0
Updating the beacon state module to ensure that the format of the beacon data that is being sent along to the beacon execution module is in the right format. 2018-11-01 15:02:21 -07:00
Ch3LL
4002a7c317
Fix test_issue_30161_unless_and_onlyif_together for MacOSX 2018-11-01 14:31:22 -04:00
Mike Place
51e333ada2
Merge pull request #50316 from rallytime/bp-50301
Back-port #50301 to 2018.3
2018-11-01 17:32:04 +01:00
Anthony Shaw
529687a855
update test assertions 2018-11-01 08:41:53 +11:00
rallytime
b29fcfabbb
New test must be py3 compatible...oops. :) 2018-10-31 12:52:58 -04:00
rallytime
6859e0e6e2
Add regression test for issue #48734 2018-10-31 12:03:14 -04:00
twangboy
5fe46d22f9
Un-fix path seperators for Windows 2018-10-30 16:04:29 -06:00
Anthony Shaw
ba526ad149
remove unused import 2018-10-30 14:38:22 -04:00
Anthony Shaw
220e57f848
create 2 simple unit tests for the netyang state module and fix issue in #47425 2018-10-30 14:38:22 -04:00
Anthony Shaw
20bf3067b9
reproduce bug in 47425 2018-10-30 14:38:22 -04:00
Nicole Thomas
f652633241
Merge pull request #50312 from rallytime/merge-fluorine
[fluorine] Merge forward from 2018.3 to fluorine
2018-10-30 13:45:29 -04:00
Nicole Thomas
3f4a4bccc9
Merge pull request #50256 from garethgreenaway/porting_50216_to_fluorine
[fluorine] Porting #50216 to fluorine
2018-10-30 12:28:49 -04:00
Nicole Thomas
1aae681229
Merge branch '2018.3' into bp-50230 2018-10-30 12:26:15 -04:00
rallytime
77b4379a99
Merge branch '2018.3' into 'fluorine'
Conflicts:
  - salt/modules/aptpkg.py
  - tests/integration/cloud/clouds/test_ec2.py
2018-10-30 12:23:39 -04:00
rallytime
381a59d56e
Merge branch '2017.7' into '2018.3'
Conflicts:
  - salt/states/pip_state.py
  - tests/integration/cloud/clouds/test_ec2.py
2018-10-30 11:41:18 -04:00
rallytime
f23852207f
Fix matcher grain file
This was inadvertently changed in th filename_map backport.

This commit restores the matcher grain file to match all branches previous
to the inadvertent change.
2018-10-30 09:51:51 -04:00
Daniel Wallace
9746b894f1
mark ansiblegate test as flaky 2018-10-29 19:40:58 -05:00
Nicole Thomas
0fc090f6b4
Merge pull request #50285 from cbosdo/fluorine-backport
virt disk fixes for fluorine
2018-10-29 20:28:44 -04:00
Brett Benassi
80982ada82
Removing an un needed change and maybe fixing the lint error 2018-10-29 15:30:51 -06:00
rallytime
1ef712a178
Add various ssh tests to the filemap for salt/utils/vt.py changes
Some of the salt-ssh tests use the salt/utils/vt.py functions. A recent
change in that file caused about 90 tests to start failing on the branch.

We need to make sure these tests run when changes to the vt.py util are
made in PRs.
2018-10-29 16:40:23 -04:00
rallytime
d6af1bb8d7
Remove the test_custom_grains integration file
This file has been renamed for the filename_map functionality.
2018-10-29 16:02:35 -04:00
rallytime
274697d0b3
Remove the test_saltclass_list_expasion unit test file
The tests contained in this file have been moved to the test_saltclass
unit test file. This is necessary for filename_map to work correctly.
2018-10-29 15:53:11 -04:00
rallytime
0d23e5aa16
Remove test_pgjsonb_return unit test file
This file has been renamed for the filename_map functionality.
2018-10-29 15:51:32 -04:00
rallytime
2c6078613b
Remove beacon unit tests that end with *_beacon.py
These have all been renamed for the filename_map functionality.
2018-10-29 15:49:11 -04:00
Daniel Wallace
fb43061cb1
fix test 2018-10-29 14:45:23 -05:00
Daniel Wallace
5eb0e37f4e
add extra space to localemod test 2018-10-29 14:31:36 -05:00
Nicole Thomas
10ba8b42a8
Merge pull request #50276 from rallytime/merge-2018.3
[2018.3] Merge forward from 2017.7 to 2018.3
2018-10-29 15:05:14 -04:00
Nicole Thomas
0f1dc08d41
Merge pull request #50282 from twangboy/fix_test_diskusage
Fix `unit.beacons.test_diskusage` on Windows
2018-10-29 14:37:12 -04:00
Cédric Bosdonnat
ce1288e437
virt: changing disk bus should update it in the VM
So far two disks are considered equal if they have the same source file.
When a user only wants to change the disk bus, then the disk comparison
algorithm will consider it unchanged.

Now disks are compared on source and target bus. The other disk
variables can be left out side the target device is computed.
2018-10-29 18:06:34 +01:00
Cédric Bosdonnat
7c91803d73
virt: expose source_file disk property to user
User may want to update or create a VM with a disk image created or
provided by a third party tool. In order to do this, let the user set
a source_file property to the disk.

Thus a {'name': 'myimage', 'source_file': '/path/to/image'} disk will
just use the provided disk image.
2018-10-29 18:06:27 +01:00
rallytime
96a225d501
Revert "Remove saltclass pillar unit test for list expansion"
This reverts commit 85a9395c2a.
2018-10-29 13:05:09 -04:00
rallytime
086371f567
Revert "Remove pgjsonb returner unit tests"
This reverts commit ab4a670ff2.
2018-10-29 13:03:40 -04:00
rallytime
4e930a0fed
Revert "Remove "test_custom" from grains section of filename_map"
This reverts commit 68ab3eef55.
2018-10-29 13:03:27 -04:00
rallytime
fffe689f98
Revert "Remove test_error from scheduler tests"
This reverts commit 68146983cb.
2018-10-29 13:03:12 -04:00
rallytime
ff9e5f9b25
Revert "Remove test files for beacons that don't exist in 2018.3"
This reverts commit dfa05b978e.
2018-10-29 12:58:25 -04:00
rallytime
3f2712fbc1
Merge branch '2018.3' into 'fluorine'
Conflicts:
  - tests/unit/states/test_virt.py
  - tests/unit/test_config.py
2018-10-29 12:36:28 -04:00
twangboy
fd369dd115
Mock is_windows = False 2018-10-29 10:25:56 -06:00
Nicole Thomas
f7c2f04574
Merge pull request #50182 from terminalmage/issue50050
Backport runtests.py modifications from develop to 2018.3
2018-10-29 12:25:06 -04:00
rallytime
f05abb09de
Merge branch '2017.7' into '2018.3' 2018-10-29 11:22:36 -04:00
Nicole Thomas
4fdcf7c4a7
Lint: Add extra blank line 2018-10-29 11:17:12 -04:00
Brett Benassi
cebfd8ad03
Fixing lint error 2018-10-29 09:08:48 -06:00
rallytime
113d76e045
Revert "Move jinja templating tests alongside salt/utils/jinja.py's tests"
This reverts commit 6d9c2eb6b0.
2018-10-29 11:05:33 -04:00
Brett Benassi
2df611565a
Adding subnetID so it knows the right VPC to build the node in. 2018-10-29 08:57:22 -06:00
rallytime
8968f9d164
Revert "Rename test_map_conf test file to respect naming convention"
This reverts commit 8326a09921.
2018-10-29 10:46:29 -04:00
rallytime
85a9395c2a
Remove saltclass pillar unit test for list expansion
This test only applies to functionality present in Fluorine or newer.

This commit will need to be reverted again in the fluorine branch.
2018-10-29 10:34:24 -04:00
rallytime
3d95673be0
Use get_config_dir() instead of self.config_dir
This attribute does not exist in the 2018.3 branch. Use the function
for now, and then change this back on the merge-forward.
2018-10-29 10:23:00 -04:00
rallytime
e8b3a62b31
Add init file back in for unit/client pkg
This file was accidentally removed during some test renaming. The absence
of this file prevents the test from running due to an ImportError.
2018-10-29 10:19:52 -04:00
rallytime
a0cfbdcb79
Merge branch '2017.7' into '2018.3'
No conflicts.
2018-10-29 09:55:06 -04:00
Mike Place
25a8dbe3e9
Merge pull request #50237 from twangboy/fix_test_cmdmod
Fix `unit.modules.test_cmdmod` on Windows in Kitchen
2018-10-29 13:56:47 +01:00
Brett Benassi
6a1e9f0a7f
Adding securitygroupname as the config instead of securitygroup 2018-10-26 15:38:48 -06:00
Cédric Bosdonnat
d527dd29cc
Rename states/test_libvirt.py into states/test_virt.py
Modules test files are named after the module itself, the state virt
module needs to comply with that rule too.
2018-10-26 16:05:03 -04:00
rallytime
ab4a670ff2
Remove pgjsonb returner unit tests
The tests that are written in this file are for functions not present
in the 2018.3 branch.

This commit will need to be reverted in the merge-forward to `fluorine`.
2018-10-26 15:58:46 -04:00
rallytime
68ab3eef55
Remove "test_custom" from grains section of filename_map
This test is for functionality only available in fluorine and newer.

Removing this for 2018.3.
2018-10-26 15:17:12 -04:00
Gareth J. Greenaway
8935e3c58b
Porting #50216 to fluorine. 2018-10-26 12:03:51 -07:00
rallytime
68146983cb
Remove test_error from scheduler tests
These tests are not present on 2018.3
2018-10-26 14:54:25 -04:00
rallytime
c55dcf02eb
Add init file back in for integration/cloud/clouds pkg
This was accdientally removed during some cloud test file renaming, which
prevents the test from running due to an ImportError
2018-10-26 14:32:03 -04:00
twangboy
9a2547b526
Encode os.linesep 2018-10-26 10:00:23 -06:00
Nicole Thomas
303f991f6a
Merge pull request #50225 from rallytime/merge-fluorine
[fluorine] Merge forward from 2018.3 to fluorine
2018-10-26 09:32:36 -04:00
twangboy
c974db4e49
Revert some indenting 2018-10-25 17:18:57 -06:00
twangboy
593677ca82
Use the dedent helper function instead 2018-10-25 17:17:09 -06:00
twangboy
4cb7062fd7
Fix integration.states.test_file on Windows
Fix hard-coded, unix-style line endings
2018-10-25 16:50:24 -06:00
twangboy
314a699519
Ensure proper line ending 2018-10-25 15:31:06 -06:00
rallytime
dfa05b978e
Remove test files for beacons that don't exist in 2018.3 2018-10-25 11:16:11 -04:00
rallytime
8fed338708
Merge branch '2018.3' into 'fluorine'
Conflicts:
  - salt/spm/pkgfiles/local.py
  - salt/utils/schedule.py
  - tests/integration/scheduler/test_eval.py
2018-10-25 10:31:06 -04:00
Nicole Thomas
9ad43f2b71
Merge pull request #50063 from twangboy/fix_50039
Use long when setting REG_QWORD
2018-10-25 09:45:02 -04:00
Nicole Thomas
01b083e20b
Merge pull request #50188 from garethgreenaway/49965_beacon_diskusage_windows
[2018.3] fixes to diskusage beacon
2018-10-25 09:41:18 -04:00
Nicole Thomas
9ea51c00bd
Merge pull request #50214 from rallytime/merge-2018.3
[2018.3] Merge forward from 2017.7 to 2018.3
2018-10-25 09:38:39 -04:00
Gareth J. Greenaway
685509fae3
Fixing an issue when a combination of the when parameter as a list plus using the splay parameter would cause the schedule to continuously run jobs in an endless loop, regardless of if their scheduled time had been receached. Also fixing a related issue where scheduled jobs that rely on _next_fire_time were not being run as the corrected splayed time but rather running at the original scheduled time. Adding new tests. 2018-10-24 17:22:37 -07:00