Giter Site home page Giter Site logo

kiwi-functional-tests's Introduction

kiwi-functional-tests

KIWI openQA functional tests using the images from the staging project on OBS.

Prerequisites

You need access to an openQA instance, where either the job groups, test suites & products have been configured or where you have operator access so that you can create these yourself. For testing purposes, you can setup a local instance as described in the documentation.

Furthermore, you need to have a valid account in openSUSE's instance of the Open Build Service and osc set up.

Last but not least, you'll need poetry to utilize the scripts shipped in this repository.

Before proceeding further, be sure to install the dependencies and run poetry install.

Setup on openQA

You can apply the necessary settings automatically using the settings.py script as follows:

poetry run ./settings.py --server $URL_TO_MY_INSTANCE

If you are running a local instance, then you will have to add the domain opensuse.org to the download_domains option in /etc/openqa/openqa.ini:

[global]
download_domains = opensuse.org

Schedule a test run

Test runs are scheduled using the script schedule_test_run.py. It will by default schedule all tests for all distributions & versions on o3 and create a state file which contains the started job ids:

$ poetry run ./schedule_test_run.py
Wrote build state into kiwi_build_20210430_1619795290_483278.pickle

The created .pickle file can be fed into the monitoring script monitor.py to query the current state of the jobs:

$ poetry run ./monitor.py -p kiwi_build_20210430_1619795290_483278.pickle
https://openqa.opensuse.org/tests/876: state: passed, result: done
https://openqa.opensuse.org/tests/877: state: passed, result: done
https://openqa.opensuse.org/tests/886: state: failed, result: done
https://openqa.opensuse.org/tests/920: state: failed, result: done
https://openqa.opensuse.org/tests/921: state: skipped, result: cancelled
https://openqa.opensuse.org/tests/922: state: failed, result: done

or to cancel them all:

$ poetry run ./monitor.py -c kiwi_build_20210430_1619795290_483278.pickle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.