salt/pkg/tests/integration/test_salt_api.py

14 lines
334 B
Python

def test_salt_api(api_request):
"""
Test running a command against the salt api
"""
ret = api_request.post(
"/run",
data={
"client": "local",
"tgt": "*",
"fun": "test.arg",
"arg": ["foo", "bar"],
},
)
assert ret["args"] == ["foo", "bar"]