Sha256: 43b04b5c9ae688dc655e54d47a03b1ae35c60e86753793b0aa4dc3b66f7d7f11
Contents?: true
Size: 986 Bytes
Versions: 6
Compression:
Stored size: 986 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 it "should be able to regenerate TT" do regular_client = ConnectionHelper::create_default_connection projects = regular_client.projects regular_client.connection.cookies[:cookies].delete('GDCAuthTT') regular_client.get('/gdc/md') expect(regular_client.connection.cookies[:cookies]).to have_key 'GDCAuthTT' end end
Version data entries
6 entries across 6 versions & 1 rubygems