Commit graph

111912 commits

Author SHA1 Message Date
Daniel A. Wozniak
d9b50659b2 Pyupgrade and drop six 2021-07-06 09:04:28 -04:00
Markus Kramer
0d71775f51 The precommit run reversed my change so I have it to do again 2021-06-30 14:04:50 -07:00
Markus Kramer
95321de33d precommit run changes 2021-06-30 14:04:50 -07:00
Markus Kramer
6c380dcd9b Fix 2 typos
provide

traversal
2021-06-30 14:04:50 -07:00
Markus Kramer
f1073f6907 docs: link cache module index to the cache topic 2021-06-30 14:04:50 -07:00
Pedro Algarvio
de6f56ccaf No hacks when interacting with ansible. Access all available modules, not just internal. 2021-06-30 11:39:28 -07:00
Pedro Algarvio
d83dd0319f The `ansiblegate` module now correctly passes keyword arguments to Ansible module calls
Fixes #59792
2021-06-30 11:39:28 -07:00
Pedro Algarvio
cedc24249c Migrate unit.states.test_ansiblegate to PyTest 2021-06-30 11:39:28 -07:00
Pedro Algarvio
2d2c1c2005 Migrate the ansiblegate state integration tests to pytest 2021-06-30 11:39:28 -07:00
Pedro Algarvio
5d62aebadd changes is not present when the playbook fails.
For example, running locally, under non-root account, ansible complains
about missing sudo password.
2021-06-30 11:39:28 -07:00
Pedro Algarvio
241009d4fa Fix calling ansible modules.
They cannot be called by passing their path, for example:
```
Traceback (most recent call last):
  File ".nox/pytest-parametrized-3-7-crypto-none-transport-zeromq-coverage-false/lib/python3.7/site-packages/ansible/modules/ping.py", line 63, in <module>
    from ansible.module_utils.basic import AnsibleModule
  File "/home/vampas/projects/SaltStack/salt/hotfix/ansiblegate-59792/.nox/pytest-parametrized-3-7-crypto-none-transport-zeromq-coverage-false/lib/python3.7/site-packages/ansible/module_utils/basic.py", line 53, in <module>
    import tempfile
  File "/home/vampas/projects/SaltStack/salt/hotfix/ansiblegate-59792/.nox/pytest-parametrized-3-7-crypto-none-transport-zeromq-coverage-false/lib/python3.7/site-packages/ansible/modules/tempfile.py", line 79, in <module>
    from tempfile import mkstemp, mkdtemp
ImportError: cannot import name 'mkstemp' from 'tempfile' (/home/vampas/projects/SaltStack/salt/hotfix/ansiblegate-59792/.nox/pytest-parametrized-3-7-crypto-none-transport-zeromq-coverage-false/lib/python3.7/site-packages/ansible/modules/tempfile.py)
```
2021-06-30 11:39:28 -07:00
Pedro Algarvio
e466589a6e Inject the ansible functions into Salt's ansiblegate module.
This was broken in 3001(92438882a9 (diff-519146c38c0ed7bc961ffc5f408d3dd380abb8760d48e839743dbd38dc28ba15R323)).

Fixes #60207
2021-06-30 11:39:28 -07:00
piterpunk
fc352b4b1e Updates hosts.rm_host tests 2021-06-30 13:37:43 -04:00
piterpunk
be7f141ce1 Fix inline comments parsing in hosts.rm_host
Converts string to bytes to avoid the error "Passed invalid arguments:
a bytes-like object is required, not 'str'." when hosts.rm_host is used
in a hosts file that have host entries with inline comments.
2021-06-30 13:37:43 -04:00
Gareth J. Greenaway
88769f2058 Removing extra newline from changelog. removing debugging messages from conftest.py. 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
9c5b2e369a removing debugging lines. 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
9b29bcf285 Updating all rabbitmq tests to force them to run. 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
450afc1a18 using rabbitmqctl status as the indicator that the rabbitmq server is up and running. 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
331760bf5a Additinal logging. Running rabbitmqctl status to see the status of rabbitmq instead of just a ping. 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
1dcf7362dd Adding some additional debugging to see why container is not ready. 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
6592ea0b6c Swapping out "from saltfactories.factories.daemons.container import ContainerFactory" for "from saltfactories.daemons.container import Container". Updating warning to use reason instead of warning. 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
3f68173a9c moving common fixtures to tests/pytests/functional/states/rabbitmq/conftest.py, moving tests to tests/pytests/functional/states/rabbitmq 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
ce4fe0eb74 switching to using --formatter=json and working on some functional tests using docker containers. 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
abb062199b Adding changelog 2021-06-30 13:37:22 -04:00
Gareth J. Greenaway
caa72102c8 Fixing rabbitmq.list_user_permissions to ensure we are returning a permission list with three elements even when some values are empty. 2021-06-30 13:37:22 -04:00
ScriptAutomate
971dfb43fb Update banner images 2021-06-29 14:46:23 -07:00
krionbsd
5a4d9c3d2f Remove FreeBSD-12.2 2021-06-29 14:43:35 -07:00
Pedro Algarvio
3a4aa7b9a2 Pre-commit must not run with `PIP_EXTRA_INDEX_URL` set. 2021-06-28 11:50:30 -07:00
Pedro Algarvio
ade28e7f28 Add missing pre-commit hook dependencies 2021-06-28 11:50:30 -07:00
Pedro Algarvio
03669b0161 Ensure proper access to the created temporary file
Fixes #60072
2021-06-28 11:47:56 -07:00
Pedro Algarvio
1c743afb48 Migrate unit.modules.test_gpg to PyTest 2021-06-28 13:53:56 -04:00
Pedro Algarvio
2c034cab47 Mirgate integration.states.test_zookeeper to Pytest functional tests 2021-06-28 13:36:47 -04:00
Pedro Algarvio
f0df76fcd6 Functional test modules can now provide `minion_config_{defaults,overrides}` 2021-06-28 13:36:47 -04:00
David Murphy
f88e5f6056 Remove unused debug variable as per review comments 2021-06-28 13:26:28 -04:00
David Murphy
d96f041d2f Review unused varible as per reviewer comments 2021-06-28 13:26:28 -04:00
David Murphy
0c151dcacc Added changelog entry for issue 2021-06-28 13:26:28 -04:00
David Murphy
92d92dc746 Update per reviewer's suggestion for better code 2021-06-28 13:26:28 -04:00
David Murphy
98e3a8e566 Added test keywords which should be ignored by IPv4 and IPv6 2021-06-28 13:26:28 -04:00
David Murphy
2f6e204fa2 Updated UIPv6 output for test to include default route 2021-06-28 13:26:28 -04:00
David Murphy
6202152494 Force test to pick _ip_route_linux for default_route_ipv6 2021-06-28 13:26:28 -04:00
David Murphy
790d49b5c2 Fixed typo in test for default_route_ipv6 2021-06-28 13:26:28 -04:00
David Murphy
6594784702 Additional tests for default_route with IPv6 and pass family to routes 2021-06-28 13:26:28 -04:00
David Murphy
ea7fd81346 [WIP] need to allow for unicast, anycast, multicast etc for IPv6, possibly IPv4 too 2021-06-28 13:26:28 -04:00
David Murphy
5b8ca47bb0 Used pytest.fixtures as per reviewer's comments 2021-06-28 11:36:33 -04:00
David Murphy
123cb811ee Made test comparison of lists sorted, some platforms returned in different order then expected 2021-06-28 11:36:33 -04:00
David Murphy
cae01c9c50 Added changelog entry for fix 2021-06-28 11:36:33 -04:00
David Murphy
83b7e1b9d1 Fix for runner network.wolmatch producing invalid arguements error 2021-06-28 11:36:33 -04:00
Pedro Algarvio
11c7242826 Use https://github.com/saltstack/invoke-pre-commit for invoke pre-commit steps 2021-06-28 10:25:40 -04:00
Pedro Algarvio
fb0a971730 The whole CI process is already slower than GH Actions, no caches. 2021-06-28 10:25:40 -04:00
twangboy
15f2c879b7 Add tests 2021-06-25 13:50:33 -04:00