Sha256: 1b562a044367dd9c1680ded84674333c6874ce5e7d9eda94bf4bf3f43e41ea64

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2017 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", broken: true 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

2 entries across 2 versions & 1 rubygems

Version Path
gooddata-0.6.51 spec/integration/command_datawarehouse_spec.rb
gooddata-0.6.50 spec/integration/command_datawarehouse_spec.rb