Giter Site home page Giter Site logo

ironic-integration-tests's Introduction

Ironic Integration Tests

This repository contains integration tests designed to run in a lab environment.

Prerequisites

The python package requirements for running tests can be installed with:

pip install -r requirements.txt

Each test has different prerequisites, but in general, the lab environment should have the following:

  • At least one ironic node enrolled
  • All ironic images and flavors created and uploaded

Additional requirements for the "bolt-on," multihypervisor scenario:

  • A virtual image and flavor created and uploaded

The ironic only requirements should be met as part of the deployment process. For the virtual image and flavor, these can be created manually or by running the setup for tempest.

$ cd /opt/rpc/openstack
$ openstack-ansible --tags tempest_install scripts/run_tempest.yml

Running Tests

The tests can be run using any test runner, but these instructions will use nose. Nose is installed by default with tempest, so the version being used will be the same as the one in tempest.

The tests utilize the environment variables for authentication and assume the user has admin permissions. This can be set by running the following command before executing the tests. To run all tests:

$ source ~/openrc
$ source /openstack/venvs/tempest-*/bin/activate
$ nosetests -sv ironic_integration_tests.tests

Example of running a specific test:

$ source ~/openrc
$ source /openstack/venvs/tempest-*/bin/activate
$ nosetests -sv ironic_integration_tests.tests.test_create_instance.py:InstanceTests.test_boot_instance_centos7

To create logs, run nosetests -sv --nologcapture. To run without cleanup, use export SKIP_CLEANUP=true.

ironic-integration-tests's People

Watchers

James Cloos avatar Jacob Wagner avatar

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.