Sha256: df6b64e709aae9ddfbfcfe96cab481b7a2bdabc92738d51a2f3cfdc37ca2a4c5
Contents?: true
Size: 758 Bytes
Versions: 4
Compression:
Stored size: 758 Bytes
Contents
require 'spec_helper' require 'vcloud_network_configurator' describe "happy path" do before :each do WebMock.disable_net_connect! WebMock.reset! session_url = "https://super%40preview:man@www.vcloud.eggplant.com/sessions" stub_request(:post, session_url). with(:headers => {'Accept'=>'application/*+xml;version=5.1', 'User-Agent'=>'Ruby'}). to_return(:status => 401) end it "should abort on failure of authorization" do args = ["-u", "super", "-p", "man", "-U", "123321", "-o", "preview", "-c", "firewall", "https://www.vcloud.eggplant.com"] configurator = VcloudNetworkConfigurator.new(args) expect { configurator.execute }.to raise_error(SystemExit, "Could not authenticate user") end end
Version data entries
4 entries across 4 versions & 1 rubygems