mirror of
https://github.com/gryf/ferrit.git
synced 2026-02-13 21:45:45 +01:00
Readme update
This commit is contained in:
53
README.rst
53
README.rst
@@ -5,21 +5,62 @@ Ferrit
|
|||||||
.. image:: img/ferrit.jpg
|
.. image:: img/ferrit.jpg
|
||||||
:alt: Ferrit
|
:alt: Ferrit
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Ferrit is a Fake Gerrit server implementation
|
Ferrit is a fake Gerrit server implementation created for functional testing of
|
||||||
created for functional testing of events
|
events in Jenkins & Gerrit Trigger ecosystem.
|
||||||
in Jenkins & Gerrit Trigger ecosystem.
|
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
Introduction
|
Architecture
|
||||||
------------
|
------------
|
||||||
|
|
||||||
TODO
|
Ferrit consists of two servers, http and ssh and companion script for
|
||||||
|
generating payload for the ssh server.
|
||||||
|
|
||||||
|
We relay on real Jenkins installation, so it has to be configured up front. See
|
||||||
|
next section for details.
|
||||||
|
|
||||||
|
Having Jenkins up and running, we can simultaneously run ssh and http servers
|
||||||
|
by invoking:
|
||||||
|
|
||||||
|
.. code:: shell-session
|
||||||
|
|
||||||
|
$ python3 gerrit_fake_http_server.py
|
||||||
|
|
||||||
|
and
|
||||||
|
|
||||||
|
.. code:: shell-session
|
||||||
|
|
||||||
|
$ python3 gerrit_fake_ssh_server.py
|
||||||
|
|
||||||
|
Output of the last command will provide fifo file name used for triggering
|
||||||
|
events in json format which can be generated using third part of the Ferrit -
|
||||||
|
script `generate_event.py`.
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
Prerequisites
|
||||||
|
=============
|
||||||
|
|
||||||
|
.. TODO (jenkins, plugins installation and configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Python
|
||||||
|
======
|
||||||
|
|
||||||
|
Ferrit modules are written in Python and depends on two external libraries:
|
||||||
|
|
||||||
|
- `paramiko`_ for ssh server
|
||||||
|
- `bottle`_ for http server
|
||||||
|
|
||||||
|
Please note, Python 2.x is not supported.
|
||||||
|
|
||||||
|
|
||||||
`Ferrite image`_ by Karl-Martin Skontorp is on Attribution 2.0 Generic (CC BY
|
`Ferrite image`_ by Karl-Martin Skontorp is on Attribution 2.0 Generic (CC BY
|
||||||
2.0) license.
|
2.0) license.
|
||||||
|
|
||||||
.. _Ferrite image: https://www.flickr.com/photos/picofarad-org/2132206570/
|
.. _Ferrite image: https://www.flickr.com/photos/picofarad-org/2132206570/
|
||||||
|
.. _paramiko: https://www.paramiko.org/
|
||||||
|
.. _bottle: https://bottlepy.org
|
||||||
|
|||||||
Reference in New Issue
Block a user