Skip to content

Commit 1a9bd21

Browse files
authored
Merge pull request #1 from cidrblock/main
init
2 parents 46eaefe + dcd5021 commit 1a9bd21

File tree

4 files changed

+26
-11
lines changed

4 files changed

+26
-11
lines changed

.config/dictionary.txt

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
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
317
popen
4-
pylibsshext
518
pylibssh
19+
pylibsshext
20+
rootdir
21+
testpaths
622
virl
723
virsh
824
xmltodict
9-
getppid
10-
fqcn

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ repos:
113113
alias: mypy-py310
114114
name: MyPy, for Python 3.10
115115
additional_dependencies:
116+
- ansible-pylibssh
116117
- pytest
117-
- types-PyYAML
118+
- xmltodict
118119
args:
119120
- --python-version=3.10
120121
pass_filenames: false

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# pytest-ansible-network-integration
22

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.
44

5-
Required environment variables:
5+
## Required environment variables:
66

77
- ANSIBLE_NETWORK_OS
88
- CML_SSH_PASSWORD
@@ -12,12 +12,12 @@ Required environment variables:
1212
- VIRL_PASSWORD
1313
- VIRL_USERNAME
1414

15-
Required pytest command line parameters:
15+
## Required pytest command line parameters:
1616

1717
- --integration-tests-path
1818
- ---cml-lab
1919

20-
Sample pyproject.toml:
20+
## Sample pyproject.toml:
2121

2222
```
2323
[tool.pytest.ini_options]

src/pytest_ansible_network_integration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def ansible_project(
247247
json.dump(inventory, fh)
248248
playbook_contents = playbook(str(integration_test_path))
249249
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:
251251
json.dump(playbook_contents, fh)
252252
logger.info("Inventory path: %s", inventory_path)
253253
logger.info("Playbook path: %s", playbook_path)

0 commit comments

Comments
 (0)