gooddata 1.0.2-java → 1.1.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/CONTRIBUTING.md +12 -0
  4. data/README.md +5 -2
  5. data/Rakefile +0 -1
  6. data/dev-gooddata-sso.pub.encrypted +40 -0
  7. data/gooddata.gemspec +3 -3
  8. data/lib/gooddata/connection.rb +23 -13
  9. data/lib/gooddata/helpers/data_helper.rb +0 -1
  10. data/lib/gooddata/lcm/actions/apply_custom_maql.rb +8 -1
  11. data/lib/gooddata/lcm/actions/associate_clients.rb +8 -1
  12. data/lib/gooddata/lcm/actions/base_action.rb +10 -0
  13. data/lib/gooddata/lcm/actions/collect_ca_metrics.rb +7 -1
  14. data/lib/gooddata/lcm/actions/collect_client_projects.rb +3 -0
  15. data/lib/gooddata/lcm/actions/collect_clients.rb +3 -1
  16. data/lib/gooddata/lcm/actions/collect_data_product.rb +10 -2
  17. data/lib/gooddata/lcm/actions/collect_dynamic_schedule_params.rb +12 -1
  18. data/lib/gooddata/lcm/actions/collect_ldm_objects.rb +6 -2
  19. data/lib/gooddata/lcm/actions/collect_meta.rb +1 -1
  20. data/lib/gooddata/lcm/actions/collect_segment_clients.rb +8 -1
  21. data/lib/gooddata/lcm/actions/collect_segments.rb +6 -5
  22. data/lib/gooddata/lcm/actions/collect_tagged_objects.rb +1 -1
  23. data/lib/gooddata/lcm/actions/collect_users_brick_users.rb +10 -4
  24. data/lib/gooddata/lcm/actions/create_segment_masters.rb +12 -2
  25. data/lib/gooddata/lcm/actions/ensure_data_product.rb +10 -0
  26. data/lib/gooddata/lcm/actions/ensure_technical_users_domain.rb +5 -1
  27. data/lib/gooddata/lcm/actions/ensure_technical_users_project.rb +3 -0
  28. data/lib/gooddata/lcm/actions/execute_schedules.rb +10 -0
  29. data/lib/gooddata/lcm/actions/import_object_collections.rb +1 -1
  30. data/lib/gooddata/lcm/actions/provision_clients.rb +12 -2
  31. data/lib/gooddata/lcm/actions/purge_clients.rb +2 -0
  32. data/lib/gooddata/lcm/actions/rename_existing_client_projects.rb +3 -0
  33. data/lib/gooddata/lcm/actions/synchronize_attribute_drillpaths.rb +4 -1
  34. data/lib/gooddata/lcm/actions/synchronize_cas.rb +7 -1
  35. data/lib/gooddata/lcm/actions/synchronize_clients.rb +11 -1
  36. data/lib/gooddata/lcm/actions/synchronize_color_palette.rb +7 -1
  37. data/lib/gooddata/lcm/actions/synchronize_etls_in_segment.rb +12 -7
  38. data/lib/gooddata/lcm/actions/synchronize_label_types.rb +4 -1
  39. data/lib/gooddata/lcm/actions/synchronize_ldm.rb +18 -7
  40. data/lib/gooddata/lcm/actions/synchronize_meta.rb +9 -0
  41. data/lib/gooddata/lcm/actions/synchronize_new_segments.rb +11 -1
  42. data/lib/gooddata/lcm/actions/synchronize_processes.rb +7 -1
  43. data/lib/gooddata/lcm/actions/synchronize_schedules.rb +4 -1
  44. data/lib/gooddata/lcm/actions/synchronize_tag_objects.rb +6 -0
  45. data/lib/gooddata/lcm/actions/synchronize_user_filters.rb +60 -15
  46. data/lib/gooddata/lcm/actions/synchronize_user_groups.rb +7 -1
  47. data/lib/gooddata/lcm/actions/synchronize_users.rb +106 -3
  48. data/lib/gooddata/lcm/actions/update_release_table.rb +19 -0
  49. data/lib/gooddata/lcm/helpers/check_helper.rb +21 -6
  50. data/lib/gooddata/lcm/lcm2.rb +35 -22
  51. data/lib/gooddata/lcm/types/class/gd_logger.rb +23 -0
  52. data/lib/gooddata/lcm/types/class/gd_product.rb +23 -0
  53. data/lib/gooddata/lcm/types/class/gd_project.rb +23 -0
  54. data/lib/gooddata/lcm/types/class/smart_hash.rb +23 -0
  55. data/lib/gooddata/lcm/types/complex/segment.rb +1 -1
  56. data/lib/gooddata/lcm/types/scalar/integer.rb +2 -2
  57. data/lib/gooddata/lcm/types/special/any.rb +18 -0
  58. data/lib/gooddata/models/blueprint/dataset_blueprint.rb +1 -1
  59. data/lib/gooddata/models/blueprint/to_manifest.rb +1 -3
  60. data/lib/gooddata/models/blueprint/to_wire.rb +2 -1
  61. data/lib/gooddata/models/from_wire.rb +13 -1
  62. data/lib/gooddata/models/metadata/folder.rb +22 -0
  63. data/lib/gooddata/models/metadata/metric.rb +5 -8
  64. data/lib/gooddata/models/model.rb +1 -1
  65. data/lib/gooddata/models/process.rb +42 -32
  66. data/lib/gooddata/models/project.rb +19 -36
  67. data/lib/gooddata/models/project_creator.rb +3 -1
  68. data/lib/gooddata/models/project_role.rb +3 -4
  69. data/lib/gooddata/models/schedule.rb +0 -2
  70. data/lib/gooddata/models/user_filters/mandatory_user_filter.rb +9 -1
  71. data/lib/gooddata/models/user_filters/user_filter.rb +1 -2
  72. data/lib/gooddata/models/user_filters/user_filter_builder.rb +18 -6
  73. data/lib/gooddata/rest/client.rb +1 -2
  74. data/lib/gooddata/rest/connection.rb +12 -46
  75. data/lib/gooddata/rest/phmap.rb +101 -56
  76. data/lib/gooddata/version.rb +1 -1
  77. data/rubydev_public.gpg.encrypted +51 -0
  78. data/rubydev_secret_keys.gpg.encrypted +109 -0
  79. data/spec/data/user_filters.csv +2 -0
  80. data/spec/environment/default.rb +2 -2
  81. data/spec/environment/development.rb +1 -1
  82. data/spec/environment/staging.rb +2 -3
  83. data/spec/environment/testing.rb +4 -4
  84. data/spec/integration/connection_spec.rb +37 -0
  85. data/spec/integration/core/connection_spec.rb +1 -1
  86. data/spec/integration/core/logging_spec.rb +8 -6
  87. data/spec/integration/core/project_spec.rb +1 -1
  88. data/spec/integration/mandatory_user_filter_spec.rb +53 -0
  89. data/spec/integration/mixins/id_to_uri_spec.rb +17 -5
  90. data/spec/integration/models/label_spec.rb +9 -0
  91. data/spec/integration/models/metric_spec.rb +24 -0
  92. data/spec/integration/models/process_spec.rb +35 -0
  93. data/spec/integration/models/project_role_spec.rb +1 -1
  94. data/spec/integration/models/schedule_spec.rb +0 -8
  95. data/spec/integration/schedule_spec.rb +4 -6
  96. data/spec/integration/user_filters_spec.rb +20 -16
  97. data/spec/integration/user_group_spec.rb +1 -1
  98. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logger/can_assign_a_custom_logger.yml +2287 -0
  99. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logger/client_logs_when_given_custom_message.yml +2287 -0
  100. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logger/has_the_request_id_logged_when_I_passed_it.yml +2287 -0
  101. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logging_off/Disables_logging.yml +2287 -0
  102. data/spec/integration/vcr_cassettes/GoodData_-_logging/_logging_on/Enables_logging.yml +2287 -0
  103. data/spec/integration/vcr_cassettes/GoodData_-_project/_project/Returns_project_assigned.yml +354 -0
  104. data/spec/integration/vcr_cassettes/GoodData_-_project/_project_/Assigns_nil.yml +299 -0
  105. data/spec/integration/vcr_cassettes/GoodData_-_project/_project_/Assigns_project_directly.yml +354 -0
  106. data/spec/integration/vcr_cassettes/GoodData_-_project/_project_/Assigns_project_using_project_ID.yml +354 -0
  107. data/spec/integration/vcr_cassettes/GoodData_-_project/_project_/Assigns_project_using_project_URL.yml +354 -0
  108. data/spec/integration/vcr_cassettes/GoodData_-_project/_with_project/Uses_project_specified.yml +354 -0
  109. data/spec/integration/vcr_cassettes/GoodData_Metric/all.yml +2065 -0
  110. data/spec/integration/vcr_cassettes/GoodData_Metric/should_be_able_to_update_folders.yml +119 -0
  111. data/spec/integration/vcr_cassettes/GoodData_Mixin_MdIdToUri/all.yml +9812 -0
  112. data/spec/integration/vcr_cassettes/GoodData_Mixin_MdIdToUri/should_get_json_containing_correct_id.yml +174 -0
  113. data/spec/integration/vcr_cassettes/GoodData_Mixin_MdIdToUri/should_return_nil_for_unknown_id.yml +58 -0
  114. data/spec/integration/vcr_cassettes/GoodData_Mixin_MdIdToUri/should_throw_BadRequest_for_-1.yml +63 -0
  115. data/spec/integration/vcr_cassettes/GoodData_Rest_Connection/_connect/Connects_using_username_and_password.yml +299 -0
  116. data/spec/integration/vcr_cassettes/GoodData_Rest_Connection/_disconnect/Connects_using_username_and_password.yml +299 -0
  117. data/spec/integration/vcr_cassettes/GoodData_Rest_Connection/_generate_request_id/Generates_a_non-empty_string.yml +2287 -0
  118. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_/Should_list_user_groups_as_Array.yml +56 -0
  119. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_add_members/Should_add_member.yml +315 -0
  120. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_members/Should_return_members_as_array.yml +54 -0
  121. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_remove_members/Should_remove_existing_members.yml +258 -0
  122. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_save/updates_existing_group.yml +159 -0
  123. data/spec/integration/vcr_cassettes/GoodData_UserGroup/_set_members/Should_set_new_members.yml +158 -0
  124. data/spec/integration/vcr_cassettes/GoodData_UserGroup/all.yml +809 -0
  125. data/spec/spec_helper.rb +46 -2
  126. data/spec/unit/actions/associate_clients_spec.rb +2 -1
  127. data/spec/unit/actions/collect_data_product_spec.rb +3 -1
  128. data/spec/unit/actions/collect_segment_clients_spec.rb +1 -0
  129. data/spec/unit/actions/create_segment_masters_spec.rb +1 -0
  130. data/spec/unit/actions/ensure_data_product_spec.rb +1 -0
  131. data/spec/unit/actions/ensure_technical_users_domain_spec.rb +2 -0
  132. data/spec/unit/actions/ensure_technical_users_project_spec.rb +4 -0
  133. data/spec/unit/actions/provision_clients_spec.rb +2 -1
  134. data/spec/unit/actions/synchronize_etls_in_segment_spec.rb +0 -6
  135. data/spec/unit/actions/synchronize_ldm_spec.rb +20 -7
  136. data/spec/unit/actions/synchronize_user_filters_spec.rb +21 -0
  137. data/spec/unit/helpers/check_helper_production_spec.rb +34 -0
  138. data/spec/unit/helpers/check_helper_spec.rb +97 -9
  139. data/spec/unit/lcm/lcm2_spec.rb +67 -3
  140. data/spec/unit/models/blueprint/to_wire_spec.rb +1 -0
  141. data/spec/unit/models/dataset_blueprint.rb +14 -0
  142. data/spec/unit/models/from_wire_spec.rb +20 -0
  143. data/spec/unit/models/model_spec.rb +10 -0
  144. data/spec/unit/models/to_manifest_spec.rb +29 -0
  145. data/spec/unit/models/user_filters/user_filter_builder_spec.rb +44 -6
  146. data/spec/unit/rest/phmap_spec.rb +117 -0
  147. data/spec/vcr_configurer.rb +63 -0
  148. metadata +283 -24
  149. data/lib/gooddata/lcm/actions/ensure_segments.rb +0 -32
@@ -0,0 +1,354 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/account/login
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"postUserLogin":{"login":"rubydev+admin@gooddata.com","password":"<PASSWORD>","remember":1,"verify_level":2}}'
9
+ headers:
10
+ Accept:
11
+ - application/json, application/zip
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
16
+ Content-Type:
17
+ - application/json
18
+ X-Gdc-Authtt:
19
+ - ''
20
+ X-Gdc-Request:
21
+ - ZxbVv73OV5rY9gk7DZxI4A:Ah43EpKhdg5dEWl4EC9tJw
22
+ Dont-Reauth:
23
+ - 'true'
24
+ Content-Length:
25
+ - '113'
26
+ Host:
27
+ - staging2-lcm-prod.intgdc.com
28
+ response:
29
+ status:
30
+ code: 200
31
+ message: OK
32
+ headers:
33
+ Vary:
34
+ - Origin
35
+ X-Gdc-Authsst:
36
+ - "<X_GDC_AUTHSST>"
37
+ X-Gdc-Authtt:
38
+ - "<X_GDC_AUTHTT>"
39
+ Expires:
40
+ - Thu, 01 Jan 1970 00:00:00 GMT
41
+ Cache-Control:
42
+ - no-store, no-cache, must-revalidate, max-age=0
43
+ Pragma:
44
+ - no-cache
45
+ P3p:
46
+ - CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'
47
+ X-Gdc-Log-Header:
48
+ - ''
49
+ Content-Type:
50
+ - application/json;charset=UTF-8
51
+ Date:
52
+ - Fri, 04 May 2018 06:25:34 GMT
53
+ Server:
54
+ - GoodData WebApp
55
+ X-Gdc-Request:
56
+ - ZxbVv73OV5rY9gk7DZxI4A:Ah43EpKhdg5dEWl4EC9tJw:Tl5P9RG5TPrAmmj0
57
+ X-Gdc-Request-Time:
58
+ - '15'
59
+ Transfer-Encoding:
60
+ - chunked
61
+ Strict-Transport-Security:
62
+ - max-age=10886400; includeSubDomains; preload;
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '{"userLogin":{"profile":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","state":"/gdc/account/login/5ad80b895edcc438e5a4418e222733fa","token":"<TOKEN>"}}'
66
+ http_version:
67
+ recorded_at: Fri, 04 May 2018 06:25:34 GMT
68
+ - request:
69
+ method: get
70
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/account/token
71
+ body:
72
+ encoding: US-ASCII
73
+ string: ''
74
+ headers:
75
+ Accept:
76
+ - application/json, application/zip
77
+ Accept-Encoding:
78
+ - gzip, deflate
79
+ User-Agent:
80
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
81
+ Content-Type:
82
+ - application/json
83
+ X-Gdc-Authtt:
84
+ - "<X_GDC_AUTHTT>"
85
+ X-Gdc-Request:
86
+ - ZxbVv73OV5rY9gk7DZxI4A:dssTslC-CVi5oIdAg534Bw
87
+ X-Gdc-Authsst:
88
+ - "<X_GDC_AUTHSST>"
89
+ Dont-Reauth:
90
+ - 'true'
91
+ Host:
92
+ - staging2-lcm-prod.intgdc.com
93
+ response:
94
+ status:
95
+ code: 200
96
+ message: OK
97
+ headers:
98
+ Vary:
99
+ - Origin
100
+ Expires:
101
+ - Thu, 01 Jan 1970 00:00:00 GMT
102
+ Cache-Control:
103
+ - no-store, no-cache, must-revalidate, max-age=0
104
+ Pragma:
105
+ - no-cache
106
+ P3p:
107
+ - CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'
108
+ X-Gdc-Authtt:
109
+ - "<X_GDC_AUTHTT>"
110
+ X-Gdc-Log-Header:
111
+ - ''
112
+ Content-Type:
113
+ - application/json
114
+ Date:
115
+ - Fri, 04 May 2018 06:25:34 GMT
116
+ Server:
117
+ - GoodData WebApp
118
+ X-Gdc-Request:
119
+ - ZxbVv73OV5rY9gk7DZxI4A:dssTslC-CVi5oIdAg534Bw:4PbRVYiBodLns5AQ
120
+ X-Gdc-Request-Time:
121
+ - '12'
122
+ Transfer-Encoding:
123
+ - chunked
124
+ Strict-Transport-Security:
125
+ - max-age=10886400; includeSubDomains; preload;
126
+ body:
127
+ encoding: ASCII-8BIT
128
+ string: '{"userToken":{"token":"<TOKEN>"}}'
129
+ http_version:
130
+ recorded_at: Fri, 04 May 2018 06:25:34 GMT
131
+ - request:
132
+ method: get
133
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa
134
+ body:
135
+ encoding: US-ASCII
136
+ string: ''
137
+ headers:
138
+ Accept:
139
+ - application/json, application/zip
140
+ Accept-Encoding:
141
+ - gzip, deflate
142
+ User-Agent:
143
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
144
+ Content-Type:
145
+ - application/json
146
+ X-Gdc-Authtt:
147
+ - "<X_GDC_AUTHTT>"
148
+ X-Gdc-Request:
149
+ - ZxbVv73OV5rY9gk7DZxI4A:W2za4-ctXueL2QJ-yLHPQA
150
+ Host:
151
+ - staging2-lcm-prod.intgdc.com
152
+ response:
153
+ status:
154
+ code: 200
155
+ message: OK
156
+ headers:
157
+ Vary:
158
+ - Origin
159
+ Date:
160
+ - Fri, 04 May 2018 06:25:35 GMT
161
+ Server:
162
+ - GoodData WebApp
163
+ Keep-Alive:
164
+ - timeout=5, max=93
165
+ X-Gdc-Log-Header:
166
+ - ''
167
+ Cache-Control:
168
+ - no-cache, no-store, must-revalidate
169
+ Content-Type:
170
+ - application/json;charset=UTF-8
171
+ X-Gdc-Request:
172
+ - ZxbVv73OV5rY9gk7DZxI4A:W2za4-ctXueL2QJ-yLHPQA:0AEF9oKfdH2Jj57u
173
+ X-Gdc-Request-Time:
174
+ - '19'
175
+ Transfer-Encoding:
176
+ - chunked
177
+ Strict-Transport-Security:
178
+ - max-age=10886400; includeSubDomains; preload;
179
+ body:
180
+ encoding: ASCII-8BIT
181
+ string: '{"accountSetting":{"position":null,"effectiveIpWhitelist":null,"email":"rubydev+admin@gooddata.com","updated":"2018-05-03
182
+ 15:33:57","lastName":"1","phoneNumber":"","links":{"auditEvents":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa/auditEvents","domain":"/gdc/domains/staging2-lcm-prod","self":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","projects":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa/projects"},"firstName":"the","country":null,"ssoProvider":"test-ruby","language":"en-US","timezone":null,"ipWhitelist":null,"companyName":"","authenticationModes":["PASSWORD","SSO"],"login":"rubydev+admin@gooddata.com","created":"2017-02-10
183
+ 12:18:01"}}'
184
+ http_version:
185
+ recorded_at: Fri, 04 May 2018 06:25:35 GMT
186
+ - request:
187
+ method: get
188
+ uri: https://staging2-lcm-prod.intgdc.com/gdc
189
+ body:
190
+ encoding: US-ASCII
191
+ string: ''
192
+ headers:
193
+ Accept:
194
+ - application/json, application/zip
195
+ Accept-Encoding:
196
+ - gzip, deflate
197
+ User-Agent:
198
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
199
+ Content-Type:
200
+ - application/json
201
+ X-Gdc-Authtt:
202
+ - "<X_GDC_AUTHTT>"
203
+ X-Gdc-Request:
204
+ - ZxbVv73OV5rY9gk7DZxI4A:UP4cEZ6BzzmBInJeJVIKIw
205
+ Host:
206
+ - staging2-lcm-prod.intgdc.com
207
+ response:
208
+ status:
209
+ code: 200
210
+ message: OK
211
+ headers:
212
+ Vary:
213
+ - Origin,Accept-Encoding
214
+ Date:
215
+ - Fri, 04 May 2018 06:25:35 GMT
216
+ Server:
217
+ - GoodData WebApp
218
+ Keep-Alive:
219
+ - timeout=5, max=92
220
+ X-Gdc-Log-Header:
221
+ - ''
222
+ Cache-Control:
223
+ - no-cache, no-store, must-revalidate
224
+ Content-Type:
225
+ - application/json;charset=UTF-8
226
+ Transfer-Encoding:
227
+ - chunked
228
+ X-Gdc-Request:
229
+ - ZxbVv73OV5rY9gk7DZxI4A:UP4cEZ6BzzmBInJeJVIKIw:CxZwQJ8deumcv3Qn
230
+ X-Gdc-Request-Time:
231
+ - '21'
232
+ Strict-Transport-Security:
233
+ - max-age=10886400; includeSubDomains; preload;
234
+ body:
235
+ encoding: ASCII-8BIT
236
+ string: '{"about":{"summary":"Use links to navigate the services.","category":"GoodData
237
+ API root","links":[{"link":"/gdc/","summary":"","category":"home","title":"home"},{"link":"/gdc/account/token","summary":"Temporary
238
+ token generator.","category":"token","title":"token"},{"link":"/gdc/account/login","summary":"Authentication
239
+ service.","category":"login","title":"login"},{"link":"/gdc/md","summary":"Metadata
240
+ resources.","category":"md","title":"metadata"},{"link":"/gdc/xtab2","summary":"Report
241
+ execution resource.","category":"xtab","title":"xtab"},{"link":"/gdc/exporter","summary":"Report
242
+ exporting resource.","category":"report-exporter","title":"exporter"},{"link":"/gdc/account","summary":"Resource
243
+ for logged in account manipulation.","category":"account","title":"account"},{"link":"/gdc/projects","summary":"Resource
244
+ for user and project management.","category":"projects","title":"projects"},{"link":"/gdc/tool","summary":"Miscellaneous
245
+ resources.","category":"tool","title":"tool"},{"link":"/gdc/releaseInfo","summary":"Release
246
+ information.","category":"releaseInfo","title":"releaseInfo"},{"link":"/gdc/uploads","summary":"User
247
+ data staging area.","category":"uploads","title":"user-uploads"}]}}'
248
+ http_version:
249
+ recorded_at: Fri, 04 May 2018 06:25:35 GMT
250
+ - request:
251
+ method: get
252
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6
253
+ body:
254
+ encoding: US-ASCII
255
+ string: ''
256
+ headers:
257
+ Accept:
258
+ - application/json, application/zip
259
+ Accept-Encoding:
260
+ - gzip, deflate
261
+ User-Agent:
262
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
263
+ Content-Type:
264
+ - application/json
265
+ X-Gdc-Authtt:
266
+ - "<X_GDC_AUTHTT>"
267
+ X-Gdc-Request:
268
+ - ZxbVv73OV5rY9gk7DZxI4A:5T2IP64j9Gb9Mv3EGwOddg
269
+ Host:
270
+ - staging2-lcm-prod.intgdc.com
271
+ response:
272
+ status:
273
+ code: 200
274
+ message: OK
275
+ headers:
276
+ Vary:
277
+ - Origin,Accept-Encoding
278
+ Date:
279
+ - Fri, 04 May 2018 06:25:36 GMT
280
+ Server:
281
+ - GoodData WebApp
282
+ Keep-Alive:
283
+ - timeout=5, max=96
284
+ X-Gdc-Log-Header:
285
+ - ''
286
+ Cache-Control:
287
+ - no-cache, no-store, must-revalidate
288
+ Content-Type:
289
+ - application/json;charset=UTF-8
290
+ Transfer-Encoding:
291
+ - chunked
292
+ X-Gdc-Request:
293
+ - ZxbVv73OV5rY9gk7DZxI4A:5T2IP64j9Gb9Mv3EGwOddg:8E9B1fBLbCR6vkxH
294
+ X-Gdc-Request-Time:
295
+ - '24'
296
+ Strict-Transport-Security:
297
+ - max-age=10886400; includeSubDomains; preload;
298
+ body:
299
+ encoding: ASCII-8BIT
300
+ string: '{"project":{"content":{"environment":"PRODUCTION","cluster":"","authorizationToken":"<AUTHORIZATION_TOKEN>","guidedNavigation":"1","isPublic":"0","driver":"Pg","state":"ENABLED"},"links":{"ldm_thumbnail":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/ldm?thumbnail=1","self":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6","clearCaches":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/clearCaches","invitations":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/invitations","users":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/users?link=1&offset=0&limit=100","uploads":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/uploads/","ldm":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/ldm","metadata":"/gdc/md/voyb6fcvdngwfyf722vn9cmbv7sq6mf6","publicartifacts":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/publicartifacts","roles":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/roles","userRoles":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/users/5ad80b895edcc438e5a4418e222733fa/roles","userPermissions":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/users/5ad80b895edcc438e5a4418e222733fa/permissions","dataload":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/dataload","connectors":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/connectors","execute":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/execute","config":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/config","projectFeatureFlags":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/projectFeatureFlags","schedules":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/schedules","templates":"/gdc/md/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/templates","eventstores":"/gdc/projects/voyb6fcvdngwfyf722vn9cmbv7sq6mf6/dataload/eventstore/stores"},"meta":{"created":"2018-04-11
301
+ 11:11:20","summary":"Ruby SDK test cornerstone","updated":"2018-04-11 11:11:27","author":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","title":"Ruby
302
+ SDK test cornerstone","contributor":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa"}}}'
303
+ http_version:
304
+ recorded_at: Fri, 04 May 2018 06:25:36 GMT
305
+ - request:
306
+ method: delete
307
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/account/login/5ad80b895edcc438e5a4418e222733fa
308
+ body:
309
+ encoding: US-ASCII
310
+ string: ''
311
+ headers:
312
+ Accept:
313
+ - application/json, application/zip
314
+ Accept-Encoding:
315
+ - gzip, deflate
316
+ User-Agent:
317
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
318
+ Content-Type:
319
+ - application/json
320
+ X-Gdc-Authtt:
321
+ - "<X_GDC_AUTHTT>"
322
+ X-Gdc-Request:
323
+ - pXQfo98UW5kGFtuzkPStsQ:djaQRYzdx9HMt1zETyIBEw
324
+ X-Gdc-Authsst:
325
+ - "<X_GDC_AUTHSST>"
326
+ Host:
327
+ - staging2-lcm-prod.intgdc.com
328
+ response:
329
+ status:
330
+ code: 204
331
+ message: No Content
332
+ headers:
333
+ Vary:
334
+ - Origin
335
+ X-Gdc-Log-Header:
336
+ - ''
337
+ Cache-Control:
338
+ - no-cache, no-store, must-revalidate
339
+ Date:
340
+ - Fri, 04 May 2018 06:25:35 GMT
341
+ Server:
342
+ - GoodData WebApp
343
+ X-Gdc-Request-Time:
344
+ - '18'
345
+ X-Gdc-Request:
346
+ - pXQfo98UW5kGFtuzkPStsQ:djaQRYzdx9HMt1zETyIBEw:h7lpdFbxsaqGBGI0
347
+ Strict-Transport-Security:
348
+ - max-age=10886400; includeSubDomains; preload;
349
+ body:
350
+ encoding: UTF-8
351
+ string: ''
352
+ http_version:
353
+ recorded_at: Fri, 04 May 2018 06:25:36 GMT
354
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,299 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/account/login
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"postUserLogin":{"login":"rubydev+admin@gooddata.com","password":"<PASSWORD>","remember":1,"verify_level":2}}'
9
+ headers:
10
+ Accept:
11
+ - application/json, application/zip
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
16
+ Content-Type:
17
+ - application/json
18
+ X-Gdc-Authtt:
19
+ - ''
20
+ X-Gdc-Request:
21
+ - 8cdc_39OvVDGl53pQ9gFBg:-yKUNcJG1QuFNfr7sUeBzg
22
+ Dont-Reauth:
23
+ - 'true'
24
+ Content-Length:
25
+ - '113'
26
+ Host:
27
+ - staging2-lcm-prod.intgdc.com
28
+ response:
29
+ status:
30
+ code: 200
31
+ message: OK
32
+ headers:
33
+ Vary:
34
+ - Origin
35
+ X-Gdc-Authsst:
36
+ - "<X_GDC_AUTHSST>"
37
+ X-Gdc-Authtt:
38
+ - "<X_GDC_AUTHTT>"
39
+ Expires:
40
+ - Thu, 01 Jan 1970 00:00:00 GMT
41
+ Cache-Control:
42
+ - no-store, no-cache, must-revalidate, max-age=0
43
+ Pragma:
44
+ - no-cache
45
+ P3p:
46
+ - CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'
47
+ X-Gdc-Log-Header:
48
+ - ''
49
+ Content-Type:
50
+ - application/json;charset=UTF-8
51
+ Date:
52
+ - Fri, 04 May 2018 06:25:22 GMT
53
+ Server:
54
+ - GoodData WebApp
55
+ X-Gdc-Request:
56
+ - 8cdc_39OvVDGl53pQ9gFBg:-yKUNcJG1QuFNfr7sUeBzg:4M6sHsroM6IieqyG
57
+ X-Gdc-Request-Time:
58
+ - '60'
59
+ Transfer-Encoding:
60
+ - chunked
61
+ Strict-Transport-Security:
62
+ - max-age=10886400; includeSubDomains; preload;
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '{"userLogin":{"profile":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","state":"/gdc/account/login/5ad80b895edcc438e5a4418e222733fa","token":"<TOKEN>"}}'
66
+ http_version:
67
+ recorded_at: Fri, 04 May 2018 06:25:22 GMT
68
+ - request:
69
+ method: get
70
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/account/token
71
+ body:
72
+ encoding: US-ASCII
73
+ string: ''
74
+ headers:
75
+ Accept:
76
+ - application/json, application/zip
77
+ Accept-Encoding:
78
+ - gzip, deflate
79
+ User-Agent:
80
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
81
+ Content-Type:
82
+ - application/json
83
+ X-Gdc-Authtt:
84
+ - "<X_GDC_AUTHTT>"
85
+ X-Gdc-Request:
86
+ - 8cdc_39OvVDGl53pQ9gFBg:1J40rujkffjMbh7dJpOVoQ
87
+ X-Gdc-Authsst:
88
+ - "<X_GDC_AUTHSST>"
89
+ Dont-Reauth:
90
+ - 'true'
91
+ Host:
92
+ - staging2-lcm-prod.intgdc.com
93
+ response:
94
+ status:
95
+ code: 200
96
+ message: OK
97
+ headers:
98
+ Vary:
99
+ - Origin
100
+ Expires:
101
+ - Thu, 01 Jan 1970 00:00:00 GMT
102
+ Cache-Control:
103
+ - no-store, no-cache, must-revalidate, max-age=0
104
+ Pragma:
105
+ - no-cache
106
+ P3p:
107
+ - CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'
108
+ X-Gdc-Authtt:
109
+ - "<X_GDC_AUTHTT>"
110
+ X-Gdc-Log-Header:
111
+ - ''
112
+ Content-Type:
113
+ - application/json
114
+ Date:
115
+ - Fri, 04 May 2018 06:25:23 GMT
116
+ Server:
117
+ - GoodData WebApp
118
+ X-Gdc-Request:
119
+ - 8cdc_39OvVDGl53pQ9gFBg:1J40rujkffjMbh7dJpOVoQ:2DPeOnFVyrgip8B5
120
+ X-Gdc-Request-Time:
121
+ - '29'
122
+ Transfer-Encoding:
123
+ - chunked
124
+ Strict-Transport-Security:
125
+ - max-age=10886400; includeSubDomains; preload;
126
+ body:
127
+ encoding: ASCII-8BIT
128
+ string: '{"userToken":{"token":"<TOKEN>"}}'
129
+ http_version:
130
+ recorded_at: Fri, 04 May 2018 06:25:23 GMT
131
+ - request:
132
+ method: get
133
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa
134
+ body:
135
+ encoding: US-ASCII
136
+ string: ''
137
+ headers:
138
+ Accept:
139
+ - application/json, application/zip
140
+ Accept-Encoding:
141
+ - gzip, deflate
142
+ User-Agent:
143
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
144
+ Content-Type:
145
+ - application/json
146
+ X-Gdc-Authtt:
147
+ - "<X_GDC_AUTHTT>"
148
+ X-Gdc-Request:
149
+ - 8cdc_39OvVDGl53pQ9gFBg:gdo3-6w5C6lJtPPQnBBzxQ
150
+ Host:
151
+ - staging2-lcm-prod.intgdc.com
152
+ response:
153
+ status:
154
+ code: 200
155
+ message: OK
156
+ headers:
157
+ Vary:
158
+ - Origin
159
+ Date:
160
+ - Fri, 04 May 2018 06:25:23 GMT
161
+ Server:
162
+ - GoodData WebApp
163
+ Keep-Alive:
164
+ - timeout=5, max=100
165
+ X-Gdc-Log-Header:
166
+ - ''
167
+ Cache-Control:
168
+ - no-cache, no-store, must-revalidate
169
+ Content-Type:
170
+ - application/json;charset=UTF-8
171
+ X-Gdc-Request:
172
+ - 8cdc_39OvVDGl53pQ9gFBg:gdo3-6w5C6lJtPPQnBBzxQ:hJytX80WQX6vcz3n
173
+ X-Gdc-Request-Time:
174
+ - '30'
175
+ Transfer-Encoding:
176
+ - chunked
177
+ Strict-Transport-Security:
178
+ - max-age=10886400; includeSubDomains; preload;
179
+ body:
180
+ encoding: ASCII-8BIT
181
+ string: '{"accountSetting":{"position":null,"effectiveIpWhitelist":null,"email":"rubydev+admin@gooddata.com","updated":"2018-05-03
182
+ 15:33:57","lastName":"1","phoneNumber":"","links":{"auditEvents":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa/auditEvents","domain":"/gdc/domains/staging2-lcm-prod","self":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","projects":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa/projects"},"firstName":"the","country":null,"ssoProvider":"test-ruby","timezone":null,"language":"en-US","ipWhitelist":null,"companyName":"","authenticationModes":["PASSWORD","SSO"],"login":"rubydev+admin@gooddata.com","created":"2017-02-10
183
+ 12:18:01"}}'
184
+ http_version:
185
+ recorded_at: Fri, 04 May 2018 06:25:23 GMT
186
+ - request:
187
+ method: get
188
+ uri: https://staging2-lcm-prod.intgdc.com/gdc
189
+ body:
190
+ encoding: US-ASCII
191
+ string: ''
192
+ headers:
193
+ Accept:
194
+ - application/json, application/zip
195
+ Accept-Encoding:
196
+ - gzip, deflate
197
+ User-Agent:
198
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
199
+ Content-Type:
200
+ - application/json
201
+ X-Gdc-Authtt:
202
+ - "<X_GDC_AUTHTT>"
203
+ X-Gdc-Request:
204
+ - 8cdc_39OvVDGl53pQ9gFBg:9ONG1RqhL4qmXzHWn2NPzw
205
+ Host:
206
+ - staging2-lcm-prod.intgdc.com
207
+ response:
208
+ status:
209
+ code: 200
210
+ message: OK
211
+ headers:
212
+ Vary:
213
+ - Origin,Accept-Encoding
214
+ Date:
215
+ - Fri, 04 May 2018 06:25:24 GMT
216
+ Server:
217
+ - GoodData WebApp
218
+ Keep-Alive:
219
+ - timeout=5, max=100
220
+ X-Gdc-Log-Header:
221
+ - ''
222
+ Cache-Control:
223
+ - no-cache, no-store, must-revalidate
224
+ Content-Type:
225
+ - application/json;charset=UTF-8
226
+ Transfer-Encoding:
227
+ - chunked
228
+ X-Gdc-Request:
229
+ - 8cdc_39OvVDGl53pQ9gFBg:9ONG1RqhL4qmXzHWn2NPzw:LARgEacDXjhL16sw
230
+ X-Gdc-Request-Time:
231
+ - '27'
232
+ Strict-Transport-Security:
233
+ - max-age=10886400; includeSubDomains; preload;
234
+ body:
235
+ encoding: ASCII-8BIT
236
+ string: '{"about":{"summary":"Use links to navigate the services.","category":"GoodData
237
+ API root","links":[{"link":"/gdc/","summary":"","category":"home","title":"home"},{"link":"/gdc/account/token","summary":"Temporary
238
+ token generator.","category":"token","title":"token"},{"link":"/gdc/account/login","summary":"Authentication
239
+ service.","category":"login","title":"login"},{"link":"/gdc/md","summary":"Metadata
240
+ resources.","category":"md","title":"metadata"},{"link":"/gdc/xtab2","summary":"Report
241
+ execution resource.","category":"xtab","title":"xtab"},{"link":"/gdc/exporter","summary":"Report
242
+ exporting resource.","category":"report-exporter","title":"exporter"},{"link":"/gdc/account","summary":"Resource
243
+ for logged in account manipulation.","category":"account","title":"account"},{"link":"/gdc/projects","summary":"Resource
244
+ for user and project management.","category":"projects","title":"projects"},{"link":"/gdc/tool","summary":"Miscellaneous
245
+ resources.","category":"tool","title":"tool"},{"link":"/gdc/releaseInfo","summary":"Release
246
+ information.","category":"releaseInfo","title":"releaseInfo"},{"link":"/gdc/uploads","summary":"User
247
+ data staging area.","category":"uploads","title":"user-uploads"}]}}'
248
+ http_version:
249
+ recorded_at: Fri, 04 May 2018 06:25:24 GMT
250
+ - request:
251
+ method: delete
252
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/account/login/5ad80b895edcc438e5a4418e222733fa
253
+ body:
254
+ encoding: US-ASCII
255
+ string: ''
256
+ headers:
257
+ Accept:
258
+ - application/json, application/zip
259
+ Accept-Encoding:
260
+ - gzip, deflate
261
+ User-Agent:
262
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
263
+ Content-Type:
264
+ - application/json
265
+ X-Gdc-Authtt:
266
+ - "<X_GDC_AUTHTT>"
267
+ X-Gdc-Request:
268
+ - pu9q1_OEr9uQOmGqUrS0Ww:nTaFzZYN5PEhilJGsOTHmA
269
+ X-Gdc-Authsst:
270
+ - "<X_GDC_AUTHSST>"
271
+ Host:
272
+ - staging2-lcm-prod.intgdc.com
273
+ response:
274
+ status:
275
+ code: 204
276
+ message: No Content
277
+ headers:
278
+ Vary:
279
+ - Origin
280
+ X-Gdc-Log-Header:
281
+ - ''
282
+ Cache-Control:
283
+ - no-cache, no-store, must-revalidate
284
+ Date:
285
+ - Fri, 04 May 2018 06:25:24 GMT
286
+ Server:
287
+ - GoodData WebApp
288
+ X-Gdc-Request-Time:
289
+ - '17'
290
+ X-Gdc-Request:
291
+ - pu9q1_OEr9uQOmGqUrS0Ww:nTaFzZYN5PEhilJGsOTHmA:vZLzpqQSC5J6XFFx
292
+ Strict-Transport-Security:
293
+ - max-age=10886400; includeSubDomains; preload;
294
+ body:
295
+ encoding: UTF-8
296
+ string: ''
297
+ http_version:
298
+ recorded_at: Fri, 04 May 2018 06:25:24 GMT
299
+ recorded_with: VCR 4.0.0