Fix typo 'avaliable'
Change-Id: I0d7c64d92d2e0e4fefca3aae655652dcad49d6e4 Closes-Bug: #1581013 Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
This commit is contained in:
parent
3c00fb6550
commit
93c08ec8b9
@ -226,7 +226,7 @@ module Astute
|
||||
|
||||
# In case of deploy in already existing cluster in nodes block
|
||||
# we will have all cluster nodes. We should remove only missing
|
||||
# nodes instead of stay only avaliable.
|
||||
# nodes instead of stay only available.
|
||||
# Example: deploy 3 nodes, after it deploy 2 nodes.
|
||||
# In 1 of 2 seconds nodes missing, in nodes block we should
|
||||
# contain only 4 nodes.
|
||||
|
@ -233,10 +233,10 @@ module Astute
|
||||
|
||||
def validate_nodes_access(ctx, nodes)
|
||||
nodes_types = node_type(ctx.reporter, ctx.task_id, nodes.map{ |n| n['uid'] }, timeout=10)
|
||||
not_avaliable_nodes = nodes.map { |n| n['uid'].to_s } - nodes_types.map { |n| n['uid'].to_s }
|
||||
unless not_avaliable_nodes.empty?
|
||||
raise "Network verification not avaliable because nodes #{not_avaliable_nodes} " \
|
||||
"not avaliable via mcollective"
|
||||
not_available_nodes = nodes.map { |n| n['uid'].to_s } - nodes_types.map { |n| n['uid'].to_s }
|
||||
unless not_available_nodes.empty?
|
||||
raise "Network verification not available because nodes #{not_available_nodes} " \
|
||||
"not available via mcollective"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -247,7 +247,7 @@ module Astute
|
||||
|
||||
# In case of deploy in already existing cluster in nodes block
|
||||
# we will have all cluster nodes. We should remove only missing
|
||||
# nodes instead of stay only avaliable.
|
||||
# nodes instead of stay only available.
|
||||
# Example: deploy 3 nodes, after it deploy 2 nodes.
|
||||
# In 1 of 2 seconds nodes missing, in nodes block we should
|
||||
# contain only 4 nodes.
|
||||
|
@ -43,11 +43,11 @@ describe Astute::DeploymentEngine do
|
||||
end
|
||||
|
||||
describe '#new' do
|
||||
it 'should not be avaliable to instantiation' do
|
||||
it 'should not be available to instantiation' do
|
||||
expect { Astute::DeploymentEngine.new(ctx) }.to raise_exception(/Instantiation of this superclass is not allowed/)
|
||||
end
|
||||
|
||||
it 'should be avaliable as superclass' do
|
||||
it 'should be available as superclass' do
|
||||
expect(Engine.new(ctx)).to be_truthy
|
||||
end
|
||||
end
|
||||
|
@ -116,7 +116,7 @@ describe Astute::Orchestrator do
|
||||
@orchestrator.expects(:node_type).returns([{'uid' => '1', 'node_type' => 'target'}])
|
||||
Astute::Network.expects(:check_network).never
|
||||
expect {@orchestrator.verify_networks(@reporter, 'task_id', nodes) }
|
||||
.to raise_error(/Network verification not avaliable because/)
|
||||
.to raise_error(/Network verification not available because/)
|
||||
end
|
||||
|
||||
it 'should check network configuration' do
|
||||
|
Loading…
Reference in New Issue
Block a user