mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add initial test for zmq import error on what is believed to be Python teardown
This commit is contained in:
parent
1619cbc448
commit
d352af4573
3 changed files with 44 additions and 0 deletions
1
pkg/tests/files/breaks/foobar.jinja
Normal file
1
pkg/tests/files/breaks/foobar.jinja
Normal file
|
@ -0,0 +1 @@
|
|||
{{ foobar }}
|
26
pkg/tests/files/breaks/init.sls
Normal file
26
pkg/tests/files/breaks/init.sls
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!py
|
||||
"""."""
|
||||
|
||||
|
||||
def run():
|
||||
"""."""
|
||||
return {
|
||||
"file_foobar": {
|
||||
"file.managed": [
|
||||
{
|
||||
"name": "/foobar"
|
||||
},
|
||||
{
|
||||
"template": "jinja"
|
||||
},
|
||||
{
|
||||
"context": {
|
||||
"foobar": "baz",
|
||||
}
|
||||
},
|
||||
{
|
||||
"source": "salt://breaks/foobar.jinja",
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
17
pkg/tests/integration/test_clean_zmq_teardown.py
Normal file
17
pkg/tests/integration/test_clean_zmq_teardown.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
import logging
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_on_windows,
|
||||
]
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def test_check_imports(salt_call_cli):
|
||||
"""
|
||||
Test imports
|
||||
"""
|
||||
output = salt_call_cli.run("state.apply", "breaks", "--output-diff", "test=true")
|
||||
print(output)
|
Loading…
Add table
Reference in a new issue