Sha256: cfe25568dd406619a993fa991614a82425bee99152beb6955ad36c48b647ab11
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
require 'logger' require 'helper' require 'gooddata/command' GoodData.logger = Logger.new(STDOUT) class TestRestApiBasic < Test::Unit::TestCase context "GoodData REST Client" do # Initialize a GoodData connection using the credential # stored in ~/.gooddata setup do GoodData::Command::connect end should "get the FoodMartDemo" do p_by_hash = GoodData::Project['FoodMartDemo'] p_by_uri = GoodData::Project['/gdc/projects/FoodMartDemo'] p_by_md_uri = GoodData::Project['/gdc/md/FoodMartDemo'] assert_not_nil p_by_hash assert_equal p_by_hash.uri, p_by_uri.uri assert_equal p_by_hash.title, p_by_uri.title assert_equal p_by_hash.title, p_by_md_uri.title end should "connect to the FoodMartDemo" do GoodData.use 'FoodMartDemo' GoodData.project.datasets # should not fail on unknown project or access denied # TODO: should be equal to Dataset.all once implemented end # Not supported yet # should "fetch dataset by numerical or string identifier" do # GoodData.use 'FoodMartDemo' # ds_by_hash = Dataset['amJoIYHjgESv'] # ds_by_id = Dataset[34] # assert_not_nil ds_by_hash # assert_equal ds_by_hash.uri, ds_by_id.uri # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.2.0 | test/test_rest_api_basic.rb |