GithubHelp home page GithubHelp logo

ansible-lvol-test's Introduction

Integration tests for the ansible lvol module

Prerequisites

Update the hosts file to match your test environment:

lvm-test ansible_ssh_host=my-vm ansible_ssh_user=root test_vg=vg_my-vm_data

This runs the tests on my-vm, as root and expects a volume group named vg_my-vm_data. It's a good idea to attach a separate disk to the VM and create the volume group on it.

Symlink your version of the lvol module in library to test it.

Running

Run the tests with:

[jeroen@island test-lvm]$ ansible-playbook test-lvol.yml 

PLAY [Test lvol module] ********************************************************

TASK [setup] *******************************************************************
ok: [lvm-test]

TASK [Remove the logical volume] ***********************************************
ok: [lvm-test]

TASK [Create a normal logical volume] ******************************************
changed: [lvm-test]

TASK [Extend the logical volume size] ******************************************
changed: [lvm-test]

TASK [Remove the logical volume] ***********************************************
changed: [lvm-test]

TASK [Remove the logical volume] ***********************************************
ok: [lvm-test]

TASK [Create a deactivated logical volume] *************************************
changed: [lvm-test]

TASK [Activate a deactivated logical volume] ***********************************
ok: [lvm-test]

TASK [Deactivate the activated logical volume] *********************************
changed: [lvm-test]

TASK [Remove the logical volume] ***********************************************
changed: [lvm-test]

TASK [Remove the logical volume] ***********************************************
ok: [lvm-test]

TASK [Create a normal logical volume] ******************************************
changed: [lvm-test]

TASK [Create a snapshot of the volume] *****************************************
changed: [lvm-test]

TASK [Remove the logical volume] ***********************************************
changed: [lvm-test]

PLAY RECAP *********************************************************************
lvm-test                   : ok=14   changed=9    unreachable=0    failed=0

ansible-lvol-test's People

Contributors

jhoekx avatar

Stargazers

 avatar

Watchers

 avatar  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.