Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openstack changes for Sprint86 merged into a common branch #44

Merged
merged 19 commits into from
Aug 6, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ group :development do
gem 'mixlib-shellout'
gem 'active_support'
gem 'activesupport'
gem 'knife-cloud', :git => 'https://github.com/ClogenyTechnologies/knife-cloud.git', :branch => 'bootstrap'
gem 'knife-cloud', :git => 'https://github.com/opscode/knife-cloud.git'
gem 'knife-windows', :git => 'https://github.com/opscode/knife-windows.git', :branch => 'knife-cloud'
end
2 changes: 1 addition & 1 deletion spec/functional/server_create_func_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

describe "run" do
before(:each) do
@knife_openstack_create.stub(:validate!)
@knife_openstack_create.stub(:validate_params!)
Fog::Compute::OpenStack.stub_chain(:new, :servers, :create).and_return(@new_openstack_server)
@knife_openstack_create.config[:openstack_floating_ip] = '-1'
@new_openstack_server.stub(:wait_for)
Expand Down
18 changes: 9 additions & 9 deletions spec/integration/openstack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def rm_known_host
end
end

context 'create server with --private-network option' do
context 'create server with --openstack-private-network option' do
cmd_out = ""
before(:each) { create_node_name("linux") }
let(:command) { "knife openstack server create -N #{@name_node}"+
Expand All @@ -283,7 +283,7 @@ def rm_known_host
" --yes" +
get_ssh_credentials +
" --identity-file #{temp_dir}/openstack.pem"+
" --private-network"+
" --openstack-private-network"+
append_openstack_creds() }
after(:each) { run(delete_instance_cmd("#{cmd_stdout}")) }
it 'should bootstrap sucessfully with private ip address.' do
Expand All @@ -292,7 +292,7 @@ def rm_known_host
end
end

context 'create server with --floating-ip option' do
context 'create server with --openstack-floating-ip option' do
cmd_out = ""
before(:each) { create_node_name("linux") }
let(:command) { "knife openstack server create -N #{@name_node}"+
Expand All @@ -302,7 +302,7 @@ def rm_known_host
" --yes" +
get_ssh_credentials +
" --identity-file #{temp_dir}/openstack.pem"+
" --floating-ip"+
" --openstack-floating-ip"+
append_openstack_creds() }
after(:each) { run(delete_instance_cmd("#{cmd_stdout}")) }
it 'should associate a floating IP address to the new OpenStack node.' do
Expand Down Expand Up @@ -415,7 +415,7 @@ def rm_known_host
" --identity-file #{temp_dir}/openstack.pem"+
" --ssh-key #{@openstack_config['os_ssh_params']['key_pair']}"+
get_ssh_credentials_for_windows_image+
append_openstack_creds() }
append_openstack_creds() + " --image-os-type windows" }
after(:each) { run(delete_instance_cmd("#{cmd_stdout}")) }
it 'successfully create the (windows VM) server with the provided options and bootstrap.' do
pending 'not yet implemented'
Expand Down Expand Up @@ -502,7 +502,7 @@ def rm_known_host
end
end

context 'create server (for windows) with --private-network option' do
context 'create server (for windows) with --openstack-private-network option' do
cmd_out = ""
before(:each) { create_node_name("windows") }
let(:command) { "knife openstack server create -N #{@name_node}"+
Expand All @@ -514,7 +514,7 @@ def rm_known_host
" --bootstrap-protocol winrm" +
get_winrm_credentials+
" --identity-file #{temp_dir}/openstack.pem"+
" --private-network"+
" --openstack-private-network"+
append_openstack_creds() }
after(:each) { run(delete_instance_cmd("#{cmd_stdout}")) }
it 'should bootstrap sucessfully with private ip address.' do
Expand All @@ -523,7 +523,7 @@ def rm_known_host
end
end

context 'create server (for windows) with --floating-ip option' do
context 'create server (for windows) with --openstack-floating-ip option' do
cmd_out = ""
before(:each) { create_node_name("windows") }
let(:command) { "knife openstack server create -N #{@name_node}"+
Expand All @@ -535,7 +535,7 @@ def rm_known_host
" --bootstrap-protocol winrm" +
get_winrm_credentials+
" --identity-file #{temp_dir}/openstack.pem"+
" --floating-ip"+
" --openstack-floating-ip"+
append_openstack_creds() }
after(:each) { run(delete_instance_cmd("#{cmd_stdout}")) }
it 'should associate a floating IP address to the new OpenStack node.' do
Expand Down