Sha256: 1862ca63a43955ed2f3aa4065baae22f3f4acd9e79509eb9d05a83ea05fc4bae
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2018 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_relative '../helpers/connection_helper' describe GoodData do let(:login) { 'rubydev+admin@gooddata.com' } KEYS = ['dev-gooddata-sso.pub', 'rubydev_public.gpg', 'rubydev_secret_keys.gpg'] before do cipher = ENV['GD_SPEC_PASSWORD'] || ENV['BIA_ENCRYPTION_KEY'] KEYS.each do |key| File.write(key, GoodData::Helpers.decrypt(File.read(key + '.encrypted'), cipher)) end `gpg --import #{KEYS.join(' ')}` end it 'can use SSO' do rest_client = GoodData.connect_sso( login, 'test-ruby', GoodData::Environment::ConnectionHelper::DEFAULT_SERVER, server: GoodData::Environment::ConnectionHelper::DEFAULT_SERVER, verify_ssl: false ) user = rest_client.domain(GoodData::Environment::ConnectionHelper::DEFAULT_DOMAIN).users(login, client: rest_client) expect(user).to be_truthy end after do KEYS.each { |key| File.delete(key) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gooddata-1.1.0-java | spec/integration/connection_spec.rb |
gooddata-1.1.0 | spec/integration/connection_spec.rb |