File tree Expand file tree Collapse file tree 4 files changed +26
-11
lines changed
src/pytest_ansible_network_integration Expand file tree Collapse file tree 4 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 1
- CLIARGS
2
- virsh
1
+ addoption
2
+ addopts
3
+ cliargs
4
+ dataclass
5
+ dumpxml
6
+ fixturenames
7
+ fqcn
8
+ getppid
9
+ httpapi
10
+ HTTPAPI
11
+ libssh
12
+ Libssh
13
+ metafunc
14
+ netcommon
15
+ netconf
16
+ pathsep
3
17
popen
4
- pylibsshext
5
18
pylibssh
19
+ pylibsshext
20
+ rootdir
21
+ testpaths
6
22
virl
7
23
virsh
8
24
xmltodict
9
- getppid
10
- fqcn
Original file line number Diff line number Diff line change @@ -113,8 +113,9 @@ repos:
113
113
alias : mypy-py310
114
114
name : MyPy, for Python 3.10
115
115
additional_dependencies :
116
+ - ansible-pylibssh
116
117
- pytest
117
- - types-PyYAML
118
+ - xmltodict
118
119
args :
119
120
- --python-version=3.10
120
121
pass_filenames : false
Original file line number Diff line number Diff line change 1
1
# pytest-ansible-network-integration
2
2
3
- An experimental pytest plugin designed to run ansible network integration tests against an a ppliance defined in an CML lab topology.
3
+ An experimental pytest plugin designed to run ansible network integration tests against an appliance defined in an CML lab topology.
4
4
5
- Required environment variables:
5
+ ## Required environment variables:
6
6
7
7
- ANSIBLE_NETWORK_OS
8
8
- CML_SSH_PASSWORD
@@ -12,12 +12,12 @@ Required environment variables:
12
12
- VIRL_PASSWORD
13
13
- VIRL_USERNAME
14
14
15
- Required pytest command line parameters:
15
+ ## Required pytest command line parameters:
16
16
17
17
- --integration-tests-path
18
18
- ---cml-lab
19
19
20
- Sample pyproject.toml:
20
+ ## Sample pyproject.toml:
21
21
22
22
```
23
23
[tool.pytest.ini_options]
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ def ansible_project(
247
247
json .dump (inventory , fh )
248
248
playbook_contents = playbook (str (integration_test_path ))
249
249
playbook_path = tmp_path / "site.json"
250
- with playbook_path .open (mode = "w" , encoding = "utf-9 " ) as fh :
250
+ with playbook_path .open (mode = "w" , encoding = "utf-8 " ) as fh :
251
251
json .dump (playbook_contents , fh )
252
252
logger .info ("Inventory path: %s" , inventory_path )
253
253
logger .info ("Playbook path: %s" , playbook_path )
You can’t perform that action at this time.
0 commit comments