Sha256: 1d47496650764879442218b3b10ae2fdc87d73c45bb7537a9f973bb71877ae36
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2017 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. require 'gooddata/connection' describe GoodData::Rest::Connection, :vcr do before(:all) do USERNAME = ConnectionHelper::DEFAULT_USERNAME PASSWORD = ConnectionHelper::DEFAULT_PASSWORD end it "Has DEFAULT_URL defined" do GoodData::Rest::Connection::DEFAULT_URL.should be_a(String) end it "Has LOGIN_PATH defined" do GoodData::Rest::Connection::LOGIN_PATH.should be_a(String) end it "Has TOKEN_PATH defined" do GoodData::Rest::Connection::TOKEN_PATH.should be_a(String) end describe '#connect' do it "Connects using username and password" do c = GoodData.connect(ConnectionHelper::DEFAULT_USERNAME, ConnectionHelper::DEFAULT_PASSWORD, :verify_ssl => 0) c.should be_a(GoodData::Rest::Client) c.disconnect end end describe '#disconnect' do it "Connects using username and password" do c = GoodData.connect(ConnectionHelper::DEFAULT_USERNAME, ConnectionHelper::DEFAULT_PASSWORD, :verify_ssl => 0) c.disconnect end end describe '#generate_request_id' do it "Generates a non-empty string" do c = ConnectionHelper.create_default_connection # generate a request id, and pass it to a request id = c.generate_request_id c.get('/gdc/md', :request_id => id) id.should be_a(String) id.should_not be_empty c.disconnect end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gooddata-1.1.0-java | spec/integration/core/connection_spec.rb |
gooddata-1.1.0 | spec/integration/core/connection_spec.rb |