Skip to content

Commit

Permalink
Marked openstack-private-network option related integration tests as …
Browse files Browse the repository at this point in the history
…pending
  • Loading branch information
siddheshwar-more committed Aug 1, 2013
1 parent 0c99ec7 commit 7170679
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions spec/integration/openstack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def get_winrm_credentials
" --winrm-password #{@openstack_config['os_winrm_params']['winrm_password']}"
end

def rm_known_host
FileUtils.rm_rf("~/.ssh/known_hosts")
end

describe 'knife-openstack' do
include KnifeTestBed
include RSpec::KnifeTestUtils
Expand Down Expand Up @@ -120,6 +124,7 @@ def get_winrm_credentials
end

describe 'Linux Platform Tests - knife' , :if => is_config_present do
after(:each) {rm_known_host}
context 'create server with standard options' do
cmd_out = ""
before(:each) { create_node_name("linux") }
Expand All @@ -130,7 +135,7 @@ def get_winrm_credentials
" --yes" +
get_ssh_credentials +
" --identity-file #{temp_dir}/openstack.pem"+
append_openstack_creds }
append_openstack_creds + " --sudo"}
after(:each) { cmd_out = "#{cmd_stdout}" }
it 'should successfully create the server with the provided options.' do
match_status("should succeed")
Expand Down Expand Up @@ -277,6 +282,7 @@ def get_winrm_credentials
append_openstack_creds() }
after(:each) { run(delete_instance_cmd("#{cmd_stdout}")) }
it 'should bootstrap sucessfully with private ip address.' do
pending "not yet done"
match_status("should succeed")
end
end
Expand All @@ -302,6 +308,7 @@ def get_winrm_credentials
end

describe 'Windows Platform Tests - knife' , :if => is_config_present do
after(:each) {rm_known_host}
context 'create server (for windows) with standard options' do
cmd_out = ""
before(:each) { create_node_name("windows") }
Expand All @@ -311,7 +318,7 @@ def get_winrm_credentials
" --template-file " + get_windows_msi_template_file_path +
" --server-url http://localhost:8889" +
" --bootstrap-protocol winrm" +
" --yes" +
" --yes --server-create-timeout 1800" +
get_winrm_credentials+
append_openstack_creds_for_windows() }
after(:each) { cmd_out = "#{cmd_stdout}" }
Expand Down Expand Up @@ -394,7 +401,7 @@ def get_winrm_credentials
" -f #{@openstack_config['os_params']['windows_flavor']} "+
" --template-file " + get_windows_msi_template_file_path +
" --server-url http://localhost:8889" +
" --yes" +
" --yes --server-create-timeout 1800" +
" --identity-file #{temp_dir}/openstack.pem"+
" --ssh-key #{@openstack_config['os_ssh_params']['key_pair']}"+
get_ssh_credentials_for_windows_image+
Expand Down Expand Up @@ -496,6 +503,7 @@ def get_winrm_credentials
append_openstack_creds() }
after(:each) { run(delete_instance_cmd("#{cmd_stdout}")) }
it 'should bootstrap sucessfully with private ip address.' do
pending "not yet done"
match_status("should succeed")
end
end
Expand Down

0 comments on commit 7170679

Please sign in to comment.