Skip to content

Commit

Permalink
docs-wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrezina committed Sep 13, 2024
1 parent 0a1791f commit fb4837f
Show file tree
Hide file tree
Showing 196 changed files with 22,596 additions and 674 deletions.
54 changes: 44 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -39,18 +39,50 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup containers
uses: SSSD/sssd-ci-containers/actions/setup@master
with:
path: sssd-ci-containers
limit: dns client kdc
- name: Install dependencies
shell: bash
run: |
set -ex
sudo apt-get update
sudo apt-get install -y podman docker-compose
- name: Workaround https://github.com/actions/runner-images/issues/7753
shell: bash
run: |
curl -O http://archive.ubuntu.com/ubuntu/pool/universe/g/golang-github-containernetworking-plugins/containernetworking-plugins_1.1.1+ds1-3_amd64.deb
sudo dpkg -i containernetworking-plugins_1.1.1+ds1-3_amd64.deb
rm --force containernetworking-plugins_1.1.1+ds1-3_amd64.deb
- name: Workaround https://github.com/containers/crun/issues/1308
shell: bash
run: |
CRUN_VER='1.11.2'
sudo curl -L "https://github.com/containers/crun/releases/download/${CRUN_VER}/crun-${CRUN_VER}-linux-amd64" -o "/usr/bin/crun"
sudo chmod +x "/usr/bin/crun"
crun --version
- name: Start podman socket
shell: bash
run: |
sudo systemctl enable podman.socket
sudo systemctl restart podman.socket
- name: Build containers
working-directory: example/containers
run: |
sudo docker-compose -H unix:///run/podman/podman.sock build
- name: Start containers
working-directory: example/containers
run: |
sudo docker-compose -H unix:///run/podman/podman.sock up --detach
- name: Install packages
run: |
Expand All @@ -60,9 +92,11 @@ jobs:
pip3 install virtualenv
python3 -m venv .venv
source .venv/bin/activate
pip3 install -e .
pip3 install -r ./requirements.txt
pip3 install -r ./example/requirements.txt
- name: Run example tests
run: |
source .venv/bin/activate
pytest --color=yes --mh-config=./example/mhc.yaml -vv ./example
pytest --color=yes --mh-config=./example/mhc.yaml -vvv ./example
20 changes: 20 additions & 0 deletions docs.bak/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file added docs.bak/_build/doctrees/api.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs.bak/_build/doctrees/api/pytest_mh.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs.bak/_build/doctrees/classes.doctree
Binary file not shown.
Binary file added docs.bak/_build/doctrees/config.doctree
Binary file not shown.
Binary file added docs.bak/_build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs.bak/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs.bak/_build/doctrees/pytest.doctree
Binary file not shown.
Binary file added docs.bak/_build/doctrees/quick-start.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs.bak/_build/doctrees/topology.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs.bak/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 2ee3f1b99120090e966b0df365817b0a
tags: 645f666f9bcd5a90fca523b33c5a78b7
12 changes: 12 additions & 0 deletions docs.bak/_build/html/_sources/api.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
API Reference
=============

.. autosummary::
:toctree: api
:nosignatures:
:recursive:

pytest_mh
pytest_mh.cli
pytest_mh.ssh
pytest_mh.utils
41 changes: 41 additions & 0 deletions docs.bak/_build/html/_sources/api/pytest_mh.cli.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
pytest\_mh.cli
==============

.. automodule:: pytest_mh.cli



.. rubric:: Module Attributes

.. autosummary::

CLIBuilderArgs









.. rubric:: Classes

.. autosummary::

Any
CLIBuilder
Enum
SSHClient
SSHPowerShellProcess
SSHProcess
auto









53 changes: 53 additions & 0 deletions docs.bak/_build/html/_sources/api/pytest_mh.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
pytest\_mh
==========

.. automodule:: pytest_mh







.. rubric:: Functions

.. autosummary::

mh
pytest_addoption
pytest_configure





.. rubric:: Classes

.. autosummary::

KnownTopologyBase
KnownTopologyGroupBase
MultihostConfig
MultihostDomain
MultihostFixture
MultihostHost
MultihostHostArtifacts
MultihostItemData
MultihostOSFamily
MultihostPlugin
MultihostRole
MultihostTopologyControllerArtifacts
MultihostUtility
Topology
TopologyController
TopologyDomain
TopologyMark









45 changes: 45 additions & 0 deletions docs.bak/_build/html/_sources/api/pytest_mh.ssh.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
pytest\_mh.ssh
==============

.. automodule:: pytest_mh.ssh











.. rubric:: Classes

.. autosummary::

Any
Enum
MultihostLogger
SSHBashProcess
SSHClient
SSHLog
SSHPowerShellProcess
SSHProcess
SSHProcessResult
auto





.. rubric:: Exceptions

.. autosummary::

SSHAuthenticationError
SSHProcessError





29 changes: 29 additions & 0 deletions docs.bak/_build/html/_sources/api/pytest_mh.utils.firewall.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pytest\_mh.utils.firewall
=========================

.. automodule:: pytest_mh.utils.firewall











.. rubric:: Classes

.. autosummary::

Firewalld









29 changes: 29 additions & 0 deletions docs.bak/_build/html/_sources/api/pytest_mh.utils.fs.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pytest\_mh.utils.fs
===================

.. automodule:: pytest_mh.utils.fs











.. rubric:: Classes

.. autosummary::

LinuxFileSystem









29 changes: 29 additions & 0 deletions docs.bak/_build/html/_sources/api/pytest_mh.utils.journald.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pytest\_mh.utils.journald
=========================

.. automodule:: pytest_mh.utils.journald











.. rubric:: Classes

.. autosummary::

JournaldUtils









35 changes: 35 additions & 0 deletions docs.bak/_build/html/_sources/api/pytest_mh.utils.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
pytest\_mh.utils
================

.. automodule:: pytest_mh.utils



















.. rubric:: Modules

.. autosummary::
:toctree:
:recursive:

pytest_mh.utils.firewall
pytest_mh.utils.fs
pytest_mh.utils.journald
pytest_mh.utils.services
pytest_mh.utils.tc

Loading

0 comments on commit fb4837f

Please sign in to comment.