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,174 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/objects/query?category=fact&limit=50&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ - "<X_GDC_AUTHTT>"
20
+ X-Gdc-Request:
21
+ - oTcKo3v63KR_5D8pM_6UwQ:oAYKBObtx9vR4rJfQijsTw
22
+ Host:
23
+ - staging2-lcm-prod.intgdc.com
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Vary:
30
+ - Origin,Accept-Encoding
31
+ Date:
32
+ - Fri, 04 May 2018 09:39:38 GMT
33
+ Server:
34
+ - GoodData WebApp
35
+ Keep-Alive:
36
+ - timeout=5, max=98
37
+ X-Gdc-Log-Header:
38
+ - ''
39
+ Cache-Control:
40
+ - no-cache, no-store, must-revalidate
41
+ Content-Type:
42
+ - application/json;charset=UTF-8
43
+ Transfer-Encoding:
44
+ - chunked
45
+ X-Gdc-Request:
46
+ - oTcKo3v63KR_5D8pM_6UwQ:oAYKBObtx9vR4rJfQijsTw:NjA75StoUuVxuzVV
47
+ X-Gdc-Request-Time:
48
+ - '126'
49
+ Strict-Transport-Security:
50
+ - max-age=10886400; includeSubDomains; preload;
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: '{"objects":{"paging":{"count":4,"offset":0},"items":[{"fact":{"content":{"folders":["/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/106"],"expr":[{"type":"col","data":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/29"}]},"meta":{"flags":["restricted"],"author":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","uri":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/298","tags":"","created":"2018-05-04
54
+ 11:38:58","identifier":"fact.csv_policies.customer_lifetime_value","deprecated":"0","summary":"","isProduction":1,"title":"Customer
55
+ Lifetime Value","category":"fact","updated":"2018-05-04 11:38:58","contributor":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa"}}},{"fact":{"content":{"folders":["/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/106"],"expr":[{"type":"col","data":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/31"}]},"meta":{"flags":["restricted"],"author":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","uri":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/299","tags":"","created":"2018-05-04
56
+ 11:38:58","identifier":"fact.csv_policies.income","deprecated":"0","summary":"","isProduction":1,"title":"Income","category":"fact","updated":"2018-05-04
57
+ 11:38:58","contributor":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa"}}},{"fact":{"content":{"folders":["/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/106"],"expr":[{"type":"col","data":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/33"}]},"meta":{"author":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","uri":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/300","tags":"","created":"2018-05-04
58
+ 11:38:58","identifier":"fact.csv_policies.monthly_premium_auto","deprecated":"0","summary":"","isProduction":1,"title":"Monthly
59
+ Premium Auto","category":"fact","updated":"2018-05-04 11:38:58","contributor":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa"}}},{"fact":{"content":{"folders":["/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/106"],"expr":[{"type":"col","data":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/35"}]},"meta":{"author":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","uri":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/301","tags":"","created":"2018-05-04
60
+ 11:38:58","identifier":"fact.csv_policies.total_claim_amount","deprecated":"0","summary":"","isProduction":1,"title":"Total
61
+ Claim Amount","category":"fact","updated":"2018-05-04 11:38:58","contributor":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa"}}}]}}'
62
+ http_version:
63
+ recorded_at: Fri, 04 May 2018 09:39:38 GMT
64
+ - request:
65
+ method: post
66
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/identifiers
67
+ body:
68
+ encoding: UTF-8
69
+ string: '{"identifierToUri":["fact.csv_policies.customer_lifetime_value"]}'
70
+ headers:
71
+ Accept:
72
+ - application/json, application/zip
73
+ Accept-Encoding:
74
+ - gzip, deflate
75
+ User-Agent:
76
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
77
+ Content-Type:
78
+ - application/json
79
+ X-Gdc-Authtt:
80
+ - "<X_GDC_AUTHTT>"
81
+ X-Gdc-Request:
82
+ - oTcKo3v63KR_5D8pM_6UwQ:RYgalX_25VHpwes1fLw0Bg
83
+ Content-Length:
84
+ - '65'
85
+ Host:
86
+ - staging2-lcm-prod.intgdc.com
87
+ response:
88
+ status:
89
+ code: 200
90
+ message: OK
91
+ headers:
92
+ Vary:
93
+ - Origin
94
+ Date:
95
+ - Fri, 04 May 2018 09:39:39 GMT
96
+ Server:
97
+ - GoodData WebApp
98
+ Keep-Alive:
99
+ - timeout=5, max=99
100
+ X-Gdc-Log-Header:
101
+ - ''
102
+ Cache-Control:
103
+ - no-cache, no-store, must-revalidate
104
+ Content-Type:
105
+ - application/json;charset=UTF-8
106
+ X-Gdc-Request:
107
+ - oTcKo3v63KR_5D8pM_6UwQ:RYgalX_25VHpwes1fLw0Bg:g9YWhfPXaMEH4Zmk
108
+ X-Gdc-Request-Time:
109
+ - '18'
110
+ Transfer-Encoding:
111
+ - chunked
112
+ Strict-Transport-Security:
113
+ - max-age=10886400; includeSubDomains; preload;
114
+ body:
115
+ encoding: ASCII-8BIT
116
+ string: '{"identifiers":[{"identifier":"fact.csv_policies.customer_lifetime_value","uri":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/298"}]}'
117
+ http_version:
118
+ recorded_at: Fri, 04 May 2018 09:39:39 GMT
119
+ - request:
120
+ method: get
121
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/298
122
+ body:
123
+ encoding: US-ASCII
124
+ string: ''
125
+ headers:
126
+ Accept:
127
+ - application/json, application/zip
128
+ Accept-Encoding:
129
+ - gzip, deflate
130
+ User-Agent:
131
+ - gooddata-gem/1.0.2/x86_64-linux/2.3.4
132
+ Content-Type:
133
+ - application/json
134
+ X-Gdc-Authtt:
135
+ - "<X_GDC_AUTHTT>"
136
+ X-Gdc-Request:
137
+ - oTcKo3v63KR_5D8pM_6UwQ:JSuNIOiICYGZlJCCi63Gqg
138
+ Host:
139
+ - staging2-lcm-prod.intgdc.com
140
+ response:
141
+ status:
142
+ code: 200
143
+ message: OK
144
+ headers:
145
+ Vary:
146
+ - Origin
147
+ Date:
148
+ - Fri, 04 May 2018 09:39:40 GMT
149
+ Server:
150
+ - GoodData WebApp
151
+ Keep-Alive:
152
+ - timeout=5, max=99
153
+ X-Gdc-Log-Header:
154
+ - ''
155
+ Cache-Control:
156
+ - no-cache, no-store, must-revalidate
157
+ Content-Type:
158
+ - application/json;charset=UTF-8
159
+ X-Gdc-Request:
160
+ - oTcKo3v63KR_5D8pM_6UwQ:JSuNIOiICYGZlJCCi63Gqg:DoSKrs8HcBCtXu06
161
+ X-Gdc-Request-Time:
162
+ - '113'
163
+ Transfer-Encoding:
164
+ - chunked
165
+ Strict-Transport-Security:
166
+ - max-age=10886400; includeSubDomains; preload;
167
+ body:
168
+ encoding: ASCII-8BIT
169
+ string: '{"fact":{"content":{"folders":["/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/106"],"expr":[{"type":"col","data":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/29"}]},"meta":{"flags":["restricted"],"author":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa","uri":"/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/obj/298","tags":"","created":"2018-05-04
170
+ 11:38:58","identifier":"fact.csv_policies.customer_lifetime_value","deprecated":"0","summary":"","isProduction":1,"title":"Customer
171
+ Lifetime Value","category":"fact","updated":"2018-05-04 11:38:58","contributor":"/gdc/account/profile/5ad80b895edcc438e5a4418e222733fa"}}}'
172
+ http_version:
173
+ recorded_at: Fri, 04 May 2018 09:39:40 GMT
174
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/identifiers
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"identifierToUri":["0"]}'
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
+ - "<X_GDC_AUTHTT>"
20
+ X-Gdc-Request:
21
+ - oTcKo3v63KR_5D8pM_6UwQ:6TklRXHL9ZLDYVrMfG1G2w
22
+ Content-Length:
23
+ - '25'
24
+ Host:
25
+ - staging2-lcm-prod.intgdc.com
26
+ response:
27
+ status:
28
+ code: 200
29
+ message: OK
30
+ headers:
31
+ Vary:
32
+ - Origin
33
+ Date:
34
+ - Fri, 04 May 2018 09:39:38 GMT
35
+ Server:
36
+ - GoodData WebApp
37
+ Keep-Alive:
38
+ - timeout=5, max=99
39
+ X-Gdc-Log-Header:
40
+ - ''
41
+ Cache-Control:
42
+ - no-cache, no-store, must-revalidate
43
+ Content-Type:
44
+ - application/json;charset=UTF-8
45
+ X-Gdc-Request:
46
+ - oTcKo3v63KR_5D8pM_6UwQ:6TklRXHL9ZLDYVrMfG1G2w:vdVLFH4Hqsi1ZoAA
47
+ X-Gdc-Request-Time:
48
+ - '43'
49
+ Transfer-Encoding:
50
+ - chunked
51
+ Strict-Transport-Security:
52
+ - max-age=10886400; includeSubDomains; preload;
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"identifiers":[]}'
56
+ http_version:
57
+ recorded_at: Fri, 04 May 2018 09:39:38 GMT
58
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://staging2-lcm-prod.intgdc.com/gdc/md/fmsa7k9ty8tvwg6h9v4o0nvg071kjd34/identifiers
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"identifierToUri":["-1"]}'
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
+ - "<X_GDC_AUTHTT>"
20
+ X-Gdc-Request:
21
+ - oTcKo3v63KR_5D8pM_6UwQ:1VdVUM7AnY2IQ3zooU9wDg
22
+ Content-Length:
23
+ - '26'
24
+ Host:
25
+ - staging2-lcm-prod.intgdc.com
26
+ response:
27
+ status:
28
+ code: 400
29
+ message: Bad Request
30
+ headers:
31
+ Vary:
32
+ - Origin
33
+ Date:
34
+ - Fri, 04 May 2018 09:39:37 GMT
35
+ Server:
36
+ - GoodData WebApp
37
+ Expires:
38
+ - Mon, 26 Jul 1997 05:00:00 GMT
39
+ Cache-Control:
40
+ - no-store, no-cache, must-revalidate, max-age=0
41
+ Pragma:
42
+ - no-cache
43
+ X-Gdc-Log-Header:
44
+ - ''
45
+ Content-Type:
46
+ - application/json;charset=UTF-8
47
+ X-Gdc-Request:
48
+ - oTcKo3v63KR_5D8pM_6UwQ:1VdVUM7AnY2IQ3zooU9wDg:gst7erITqf5aGuJu
49
+ X-Gdc-Request-Time:
50
+ - '24'
51
+ Transfer-Encoding:
52
+ - chunked
53
+ Strict-Transport-Security:
54
+ - max-age=10886400; includeSubDomains; preload;
55
+ body:
56
+ encoding: ASCII-8BIT
57
+ string: '{"error":{"parameters":["identifierToUri","STRUCTURE INVALID - name
58
+ of structure:''IdentifierToUri''(tag:identifierToUri), /identifierToUri/<list:1>/Identifier:
59
+ STRING|(?^:^[a-zA-Z0-9_\\.]{1,255}$)| does not match with value ''-1''"],"requestId":"oTcKo3v63KR_5D8pM_6UwQ:1VdVUM7AnY2IQ3zooU9wDg:gst7erITqf5aGuJu:elHSgs9ll5ThgK4n:3quju50eyy8d98hv","component":"Apache::REST","errorClass":"GDC::Exception::User","message":"Checking
60
+ ''%s'', result %s"}}'
61
+ http_version:
62
+ recorded_at: Fri, 04 May 2018 09:39:37 GMT
63
+ 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
+ - R2FCnknKBKNxgFA7dUC8Ug:2wJMtPNGXXCdCYSGAElbYg
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:08:02 GMT
53
+ Server:
54
+ - GoodData WebApp
55
+ X-Gdc-Request:
56
+ - R2FCnknKBKNxgFA7dUC8Ug:2wJMtPNGXXCdCYSGAElbYg:XpT4VcDkCq3n8caw
57
+ X-Gdc-Request-Time:
58
+ - '56'
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:08:02 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
+ - R2FCnknKBKNxgFA7dUC8Ug:_ojju_3MJNBswXd5WRLDIg
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:08:02 GMT
116
+ Server:
117
+ - GoodData WebApp
118
+ X-Gdc-Request:
119
+ - R2FCnknKBKNxgFA7dUC8Ug:_ojju_3MJNBswXd5WRLDIg:AhaFgwMe61Mp4Vu8
120
+ X-Gdc-Request-Time:
121
+ - '33'
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:08:03 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
+ - R2FCnknKBKNxgFA7dUC8Ug:Q0iwFCqab3FsfVnf9cNX0g
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:08:03 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
+ - R2FCnknKBKNxgFA7dUC8Ug:Q0iwFCqab3FsfVnf9cNX0g:DIvpSJljvJF2CMWG
173
+ X-Gdc-Request-Time:
174
+ - '33'
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:08:03 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
+ - R2FCnknKBKNxgFA7dUC8Ug:4gIYkv_G6qv4_V_MiRGOAQ
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:08:04 GMT
216
+ Server:
217
+ - GoodData WebApp
218
+ Keep-Alive:
219
+ - timeout=5, max=99
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
+ - R2FCnknKBKNxgFA7dUC8Ug:4gIYkv_G6qv4_V_MiRGOAQ:HP7md539xgKhQyOg
230
+ X-Gdc-Request-Time:
231
+ - '35'
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:08:04 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
+ - tTTusV3gqAMYZiTnWpwL4Q:rlrZyCQ5by5LiaO6PsEh_w
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:08:05 GMT
286
+ Server:
287
+ - GoodData WebApp
288
+ X-Gdc-Request-Time:
289
+ - '16'
290
+ X-Gdc-Request:
291
+ - tTTusV3gqAMYZiTnWpwL4Q:rlrZyCQ5by5LiaO6PsEh_w:j2l6Wh46Zt1vNgVI
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:08:05 GMT
299
+ recorded_with: VCR 4.0.0