Vikentsi Lapa - Tools for testing

360 views
281 views

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
360
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Vikentsi Lapa - Tools for testing

  1. 1. Tools for testing Vikentsi Lapa for MLUG 2013
  2. 2. Testing process Analysis, Planning, Test Cases Development Environment Setup Test Execution Test Cycle Closure
  3. 3. Cluster environment setup ● 8 nodes – – ● 4 servers 4 clients Simple tasks – – Get IP settings from all nodes – ● Check time on all cluster nodes Copy /etc/multipath.conf only to server nodes How to complete this tasks?
  4. 4. Environment setup Use /dev/fast_fingers for node in client-1 client-2 … do echo $node ssh $node date done Use some tool
  5. 5. 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/
  6. 6. 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
  7. 7. 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
  8. 8. 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

×