Sha256: 43289c6afb87f00b4508818c8a246cd8f63661bd1317ba74e9c6985fa98d3766
Contents?: true
Size: 1.1 KB
Versions: 29
Compression:
Stored size: 1.1 KB
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2015 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/commands/datawarehouse' describe GoodData::Command::DataWarehouse do before(:each) do @client = ConnectionHelper.create_default_connection end after(:each) do @client.disconnect end it "Is Possible to create GoodData::Command::DataWarehouse instance" do cmd = GoodData::Command::DataWarehouse.new() cmd.should be_a(GoodData::Command::DataWarehouse) end it "Can create a data warehouse" do title = 'my warehouse' summary = 'hahahaha' dwh = nil begin dwh = GoodData::Command::DataWarehouse.create(title: title, summary: summary, token: ConnectionHelper::GD_PROJECT_TOKEN, environment: ProjectHelper::ENVIRONMENT, client: @client) expect(dwh.title).to eq(title) expect(dwh.summary).to eq(summary) expect(dwh.id).not_to be_nil expect(dwh.status).to eq('ENABLED') ensure dwh.delete if dwh end end end
Version data entries
29 entries across 29 versions & 2 rubygems