Project

Profile

Help

Task #7411

Fix test 7110

Added by Alexander Kaluzhny over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
mdbci testing
Sprint/Milestone:
Start date:
17.08.2016
Due date:
% Done:

0%

Estimated time:
2:00 h
Target branch:
Test scenario:

tests in https://dev.osll.ru/issues/7406


Description

Errors in test not matching some errors in actual functions. And some functions duplicated in network.rb (getBoxParams)

vagranttest@maxscale-jenkins:~/mdbci_kaluzny$ configPath=mdbci_param_test_docker stoppedConfigPath=mdbci_param_test_ppc rspec spec/unit/7110_collectConfigurationNetworkInfo_spec.rb
FVM must be running to open SSH connection. Run `vagrant up`
to start the virtual machine.
FFFVM must be running to open SSH connection. Run `vagrant up`
to start the virtual machine.
F

Failures:

1) Network collectConfigurationNetworkInfo should raise error: wrong path
Failure/Error: lambda{collectConfigurationNetworkInfo(ENV['stoppedConfigPath'])}.should raise_error("Incorrect node")
expected Exception with "Incorrect node", got #<ArgumentError: wrong number of arguments (3 for 1)> with backtrace:
         # ./core/network.rb:275:in `getBoxParams'
         # ./core/network.rb:91:in `getKeyFile'
         # ./core/network.rb:315:in `block in collectConfigurationNetworkInfo'
         # ./core/network.rb:312:in `each'
         # ./core/network.rb:312:in `collectConfigurationNetworkInfo'
         # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:39:in `block (3 levels) in <top (required)>'
         # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:39:in `block (2 levels) in <top (required)>'
     # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:39:in `block (2 levels) in <top (required)>'
2) Network collectConfigurationNetworkInfo should return correct Hash
Failure/Error: result = collectConfigurationNetworkInfo(ENV['configPath'])
RuntimeError:
Incorrect node # ./core/network.rb:187:in `rescue in getIpWrapper' # ./core/network.rb:183:in `getIpWrapper' # ./core/network.rb:175:in `getNetwork' # ./core/network.rb:314:in `block in collectConfigurationNetworkInfo' # ./core/network.rb:312:in `each' # ./core/network.rb:312:in `collectConfigurationNetworkInfo' # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:43:in `block (2 levels) in <top (required)>'
3) Network printConfigurationNetworkInfoToFile should raise error: error_name
Failure/Error: lambda{printConfigurationNetworkInfoToFile(nil)}.should raise_error(/.* template not found/)
expected /.* template not found/, got #<RuntimeError: configuration name is required> with backtrace:
         # ./core/network.rb:304:in `collectConfigurationNetworkInfo'
         # ./core/network.rb:291:in `block in printConfigurationNetworkInfoToFile'
         # ./core/network.rb:290:in `printConfigurationNetworkInfoToFile'
         # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:63:in `block (3 levels) in <top (required)>'
         # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:63:in `block (2 levels) in <top (required)>'
     # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:63:in `block (2 levels) in <top (required)>'
4) Network printConfigurationNetworkInfoToFile should raise error: error_name
Failure/Error: lambda{printConfigurationNetworkInfoToFile("WRONG_PATH")}.should raise_error(/.* template not found/)
expected /.* template not found/, got #<RuntimeError: WRONG_PATH: provider is unknown (file with provider definition is missing), No such file or directory - ./WRONG_PATH/provider> with backtrace:
         # ./core/helper.rb:40:in `rescue in get_provider'
         # ./core/helper.rb:37:in `get_provider'
         # ./core/helper.rb:45:in `get_template_path'
         # ./core/helper.rb:70:in `get_nodes'
         # ./core/network.rb:308:in `collectConfigurationNetworkInfo'
         # ./core/network.rb:291:in `block in printConfigurationNetworkInfoToFile'
         # ./core/network.rb:290:in `printConfigurationNetworkInfoToFile'
         # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:67:in `block (3 levels) in <top (required)>'
         # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:67:in `block (2 levels) in <top (required)>'
     # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:67:in `block (2 levels) in <top (required)>'
5) Network printConfigurationNetworkInfoToFile should create file in repo dir
Failure/Error: printConfigurationNetworkInfoToFile(ENV['configPath'])
RuntimeError:
Incorrect node # ./core/network.rb:187:in `rescue in getIpWrapper' # ./core/network.rb:183:in `getIpWrapper' # ./core/network.rb:175:in `getNetwork' # ./core/network.rb:314:in `block in collectConfigurationNetworkInfo' # ./core/network.rb:312:in `each' # ./core/network.rb:312:in `collectConfigurationNetworkInfo' # ./core/network.rb:291:in `block in printConfigurationNetworkInfoToFile' # ./core/network.rb:290:in `printConfigurationNetworkInfoToFile' # ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:71:in `block (2 levels) in <top (required)>'

Finished in 8.35 seconds (files took 0.17243 seconds to load)
5 examples, 5 failures

Failed examples:

rspec ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:38 # Network collectConfigurationNetworkInfo should raise error: wrong path
rspec ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:42 # Network collectConfigurationNetworkInfo should return correct Hash
rspec ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:62 # Network printConfigurationNetworkInfoToFile should raise error: error_name
rspec ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:66 # Network printConfigurationNetworkInfoToFile should raise error: error_name
rspec ./spec/unit/7110_collectConfigurationNetworkInfo_spec.rb:70 # Network printConfigurationNetworkInfoToFile should create file in repo dir


Related issues

Related to [mdbci] Maria DB Continuous integration tool - Task #6932: Check and fix every parametrized testClosed03.04.2016

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Alexander Kaluzhny over 4 years ago

  • Related to Task #6932: Check and fix every parametrized test added

#2 Updated by Alexander Kaluzhny over 4 years ago

  • Status changed from Active / In progress to New

#3 Updated by Alexander Kaluzhny over 4 years ago

  • Estimated time set to 2:00 h

#4 Updated by Alexander Kaluzhny over 4 years ago

  • Test scenario updated (diff)

#5 Updated by Alexander Kaluzhny over 4 years ago

  • Status changed from New to Review
  • Assignee changed from Alexander Kaluzhny to Mark Zaslavskiy

#6 Updated by Alexander Kaluzhny over 4 years ago

  • Status changed from Review to Active / In progress
  • Assignee changed from Mark Zaslavskiy to Alexander Kaluzhny

#7 Updated by Alexander Kaluzhny over 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Alexander Kaluzhny to Mark Zaslavskiy

#8 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Review to Closed

Also available in: Atom PDF