Skip to content

Learn how to create system tests for your application using Lago

Notifications You must be signed in to change notification settings

dron1/lago-workshop

 
 

Repository files navigation

Lago Workshop

About

In this workshop you will learn how to create system tests for your application using Lago and Pytest.

Prerequisite

  • Install Lago

  • Create a virtual env which includes the system's libraries and the deps in requirements.txt, this can be done using the following commands:

    su - <user>
    git clone https://github.com/lago-project/lago-workshop
    virtualenv --system-site-packages lago_venv
    source lago_venv/bin/activate
    pip install -I -r requirements.txt
    

About the environment

  • VMs:
    • jenkins-master
    • jenkins-slave-0
    • jenkins-slave-1
    • file-server
  • Networks:
    • management-net (All the vms are connected)
    • jenkins-internal-net (Only jenkins-* vms are connected)

Running the env and installing jenkins with ansible (will be replaced by lago sdk)

Run the following commands:

lago init
 lago start
 python -m pytest -s -v -x test_jenkins.py

# lago ansible_hosts > ansible_hosts # ansible-playbook ansible/jenkins_playbook.yaml -i ansible_hosts -u root

At the end of this process you can access jenkins from your browser.
The deployment takes about 10 minutes.

Resources

About

Learn how to create system tests for your application using Lago

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.2%
  • Groovy 7.7%
  • Shell 0.1%