vikentsi lapa - tools for testing

Post on 15-Jan-2015

156 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Доклад с декабрьской линуксовки MLUG 2013

TRANSCRIPT

Tools for testing

Vikentsi Lapa for MLUG 2013

Testing process

TestExecution

EnvironmentSetup

Test CycleClosure

Analysis,Planning,

Test Cases Development

Cluster environment setup

● 8 nodes– 4 servers

– 4 clients

● Simple tasks– Check time on all cluster nodes

– Get IP settings from all nodes

– Copy /etc/multipath.conf only to server nodes

● How to complete this tasks?

Environment setup

Use /dev/fast_fingers

for node in client-1 client-2 …

do

echo $node

ssh $node date

done

Use some tool

Environment Setup

● pdsh– pdsh -a date– pdsh -w server-[1-4] uptime

● dshbak– pdsh -a ip addr | dshbak

● pdcp– pdcp -a /etc/hosts /etc/– pdcp -a -x client-[1-8] /etc/multipath.conf /etc/

Environment Setup

● Ansible = Puppet, Chef, but● but has differences

– minimal infrastructure● requires only Python and SSH access to node

– 2 modes● command line mode similar to pdsh● playbooks

– keeps configuration in YAML files

– extensible● modules (any language), plugins

Test Execution

● screen– keep long running test active in SSH session

– store information about bugcreate log file ● test is started, test is finished ctrl-alt-H● log file name can be changed

– : logfile tc78_%c_%D_%M

– create console “screenshot” to file

● similar tools– tmux, script, nohup

Summary

● Cluster tools– for environment configuration

● pdsh https://code.google.com/p/pdsh/● Ansible http://www.ansibleworks.com/

– for test execution● screen or tmux, script

top related