Sha256: b124fca492def1f288c68ebb313880de8a5a3c1fbe41a357a3ed2e0c87e60507

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 Bytes

Contents

# encoding: UTF-8

require 'gooddata'
require 'pry'

describe GoodData::Rest::Connection, :constraint => 'slow' do

  it "should log in and disconnect" do
    client = ConnectionHelper::create_default_connection
    expect(client).to be_kind_of(GoodData::Rest::Client)

    client.get("/gdc/md")

    client.disconnect
  end

  it "should log in and disconnect with SST" do
    regular_client = ConnectionHelper::create_default_connection
    sst = regular_client.connection.sst_token

    sst_client = GoodData.connect(sst_token: sst)
    expect(sst_client.projects.count).to be > 0
    sst_client.disconnect

    regular_client.disconnect
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gooddata-0.6.12 spec/logging_in_logging_out_spec.rb
gooddata-0.6.11 spec/logging_in_logging_out_spec.rb
gooddata-0.6.10 spec/logging_in_logging_out_spec.rb
gooddata-0.6.9 spec/logging_in_logging_out_spec.rb
gooddata-0.6.8 spec/logging_in_logging_out_spec.rb