Project

Profile

Help

Task #6617

Create automation unit-test for ./mdbci up

Added by Kirill Yudenok over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Alexander Kaluzhny
Category:
mdbci testing
Sprint/Milestone:
Start date:
25.12.2015
Due date:
% Done:

100%

Estimated time:
Target branch:
Test scenario:

Description

  • create mdbci up unit-test that generate Vagrantfile for default box and product definition (create template dir with Vagrantfile and roles)
  • mdbci up created template from dir
  • check exit_status

Example code:

name = "build_test",
box = "centos6",
product = "mariadb" 
version = "5.5",
repo = "http://yum.mariadb.org/",
repo_key = "https://yum.mariadb.org/" 
# other variables
# generate Vagrantfile and nodes for test template
$session.generate(name, box, product, ...)
# up template from dir
args = "test_dir" 
exit_code = up(args)
# check values
exit_code.should eq(0)  # success
exit_code.should eq(1)  # error

  • base for other mdbci tests:
    1. ./mdbci up - first
    2. mdbci network
    3. mdbci ssh
    4. other mdbci commands

History

#1 Updated by Kirill Yudenok over 4 years ago

  • Sprint/Milestone changed from backlog to 0.81

#2 Updated by Kirill Yudenok over 4 years ago

  • Status changed from New to Active / In progress
  • Assignee set to Kirill Yudenok
  • % Done changed from 0 to 50
  • template config generation and mdbci up
  • 6617_template_up_test branch

#3 Updated by Kirill Yudenok over 4 years ago

  • Status changed from Active / In progress to Testing

#4 Updated by Kirill Yudenok over 4 years ago

  • Status changed from Testing to Resolved
  • % Done changed from 50 to 100
  • write unit-test for generate and up test mdbci configuration from confs/rspec_vm_test.json
  • try to test mdbci commands: show network, keyfile, private_ip, ssh, sudo, ...
  • launch tests command: $ rspec spec/template_up_spec.rb --order random:1
  • branch: 6617_template_up_test

#5 Updated by Kirill Yudenok over 4 years ago

  • Status changed from Resolved to Pull request
  • Assignee changed from Kirill Yudenok to Alexander Kaluzhny

#6 Updated by Kirill Krinkin over 4 years ago

  • Category set to mdbci testing

#7 Updated by Kirill Krinkin over 4 years ago

  • Sprint/Milestone changed from 0.81 to backlog

#8 Updated by Kirill Krinkin over 4 years ago

  • Sprint/Milestone changed from backlog to 0.83

#9 Updated by Kirill Krinkin over 4 years ago

  • Sprint/Milestone changed from 0.83 to 0.82

#10 Updated by Mark Zaslavskiy over 3 years ago

  • Status changed from Pull request to Closed

Also available in: Atom PDF