-
Notifications
You must be signed in to change notification settings - Fork 123
/
command_datawarehouse_spec.rb
45 lines (38 loc) · 1.18 KB
/
command_datawarehouse_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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, :vcr 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
expect(cmd).to 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::SECRETS[: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