Skip to content
Snippets Groups Projects

Nat 189 ansible return json

Merged Pino, Adrián requested to merge NAT-189-ansible-return-json into develop
7 files
+ 25
22
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 8
6
from io import StringIO
from typing import Any
TEST_CALLBACK_URL = "https://fqdn.abc.xyz/api/resume"
def test_ansible_runner_run(**kwargs):
class Runner:
def __init__(self):
self.status = "success"
self.rc = 0
self.stdout = StringIO("some initial text data")
class Runner:
def __init__(self) -> None:
self.status = "success"
self.rc = 0
self.stdout = StringIO("[{'step one': 'results'}, {'step two': 2}]")
def test_ansible_runner_run(**kwargs: Any) -> Runner:
return Runner()
Loading