Project

Profile

Help

Task #7190

Implement parametrized integration tests for clone command

Added by Mark Zaslavskiy over 5 years ago. Updated about 4 years ago.

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

0%

Estimated time:
1:30 h
Target branch:
Test scenario:

https://github.com/OSLL/mdbci/pull/257
spec/integration/7190_clone_command_check_spec.rb spec/integration/7190_clone_command_check_provider_does_not_exist_spec.rb


Description

  1. Create two simple test configurations: docker and libvirt.
  2. Create integration test that will check:
    1. success cloning of test configurations
    2. usecases with wrong number of arguments (one or zero arguments)
    3. usecases with wrong values of arguments (non-existing source config, existing dir for new configuration, lack of provider file)

History

#1 Updated by Mark Zaslavskiy over 5 years ago

  • Related to Task #7100: Implement "mdbci clone <configuration> <new_path>" command added

#2 Updated by Mark Zaslavskiy over 5 years ago

  • Priority changed from Normal to High

#3 Updated by Tatyana Berlenko over 5 years ago

  • Status changed from New to Active / In progress

#4 Updated by Tatyana Berlenko over 5 years ago

  • Estimated time set to 1:30 h

#5 Updated by Tatyana Berlenko over 5 years ago

  • Status changed from Active / In progress to New
  • Assignee changed from Tatyana Berlenko to Mark Zaslavskiy
  • Test scenario updated (diff)

generate & up are successfully ending

Errors:
ERROR: There are errors in the configuration of this machine. Please fix
ERROR: the following errors and try again:
ERROR:
ERROR: SSH:
ERROR: * `private_key_path` file must exist: ../maxscale.pem
ERROR:
ERROR: AWS Provider:
ERROR: * An AMI must be configured via "ami" (region: #{region})
ERROR:
cd 7190_test_libvirt_machine
FFFF/home/vagranttest/mdbci_berlenko_

An error occurred in an `after(:context)` hook.
Errno::ENOENT: No such file or directory - cd 7190_test_libvirt_machine
occurred at /usr/lib/ruby/1.9.1/open3.rb:202:in `spawn'

Failures:

1) test_spec shell command ./mdbci clone 7190_test_libvirt_machine 7190_new_test_libvirt_machine
Failure/Error: execute_bash("cd #{name_machine}")
Errno::ENOENT:
No such file or directory - cd 7190_test_libvirt_machine # ./core/helper.rb:82:in `execute_bash' # ./spec/integration/7190_clone_command_check_spec.rb:46:in `setUp' # ./spec/integration/7190_clone_command_check_spec.rb:16:in `block (2 levels) in &lt;top (required)&gt;'
2) test_spec shell command ./mdbci clone 7190_test_docker_machine 7190_new_test_docker_machine
Failure/Error: execute_bash("cd #{name_machine}")
Errno::ENOENT:
No such file or directory - cd 7190_test_libvirt_machine # ./core/helper.rb:82:in `execute_bash' # ./spec/integration/7190_clone_command_check_spec.rb:46:in `setUp' # ./spec/integration/7190_clone_command_check_spec.rb:16:in `block (2 levels) in &lt;top (required)&gt;'
3) test_spec shell command ./mdbci clone 7190_test_libvirt_machine 
Failure/Error: execute_bash("cd #{name_machine}")
Errno::ENOENT:
No such file or directory - cd 7190_test_libvirt_machine # ./core/helper.rb:82:in `execute_bash' # ./spec/integration/7190_clone_command_check_spec.rb:46:in `setUp' # ./spec/integration/7190_clone_command_check_spec.rb:16:in `block (2 levels) in &lt;top (required)&gt;'
4) test_spec shell command ./mdbci clone 7190_test_libvirt_machine 7190_test_docker_machine
Failure/Error: execute_bash("cd #{name_machine}")
Errno::ENOENT:
No such file or directory - cd 7190_test_libvirt_machine # ./core/helper.rb:82:in `execute_bash' # ./spec/integration/7190_clone_command_check_spec.rb:46:in `setUp' # ./spec/integration/7190_clone_command_check_spec.rb:16:in `block (2 levels) in &lt;top (required)&gt;'

#6 Updated by Mark Zaslavskiy over 5 years ago

  • Priority changed from High to Normal

#7 Updated by Mark Zaslavskiy over 5 years ago

  • Assignee changed from Mark Zaslavskiy to Alexander Kaluzhny

#8 Updated by Mark Zaslavskiy over 5 years ago

  • Related to deleted (Task #7100: Implement "mdbci clone <configuration> <new_path>" command)

#9 Updated by Mark Zaslavskiy about 5 years ago

  • Sprint/Milestone changed from 0.9 to backlog

#10 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from New to Closed

Also available in: Atom PDF