Task #6617
Create automation unit-test for ./mdbci up
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:
- ./mdbci up - first
- mdbci network
- mdbci ssh
- other mdbci commands
History
#1
Updated by Kirill Yudenok about 5 years ago
- Sprint/Milestone changed from backlog to 0.81
#2
Updated by Kirill Yudenok about 5 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 about 5 years ago
- Status changed from Active / In progress to Testing
#4
Updated by Kirill Yudenok about 5 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 about 5 years ago
- Status changed from Resolved to Pull request
- Assignee changed from Kirill Yudenok to Alexander Kaluzhny
- code review: https://github.com/OSLL/mdbci/pull/63
#6
Updated by Kirill Krinkin about 5 years ago
- Category set to mdbci testing
#7
Updated by Kirill Krinkin about 5 years ago
- Sprint/Milestone changed from 0.81 to backlog
#8
Updated by Kirill Krinkin about 5 years ago
- Sprint/Milestone changed from backlog to 0.83
#9
Updated by Kirill Krinkin about 5 years ago
- Sprint/Milestone changed from 0.83 to 0.82
#10
Updated by Mark Zaslavskiy about 4 years ago
- Status changed from Pull request to Closed