kalibro_client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/features/kalibro_configuration/all.feature +6 -6
- data/features/kalibro_configuration/creation.feature +5 -5
- data/features/kalibro_configuration/destroy.feature +6 -6
- data/features/kalibro_configuration/metric_configurations.feature +4 -4
- data/features/{range → kalibro_range}/destroy.feature +2 -2
- data/features/{range → kalibro_range}/exists.feature +2 -2
- data/features/{range → kalibro_range}/find.feature +2 -2
- data/features/{range → kalibro_range}/ranges_of.feature +4 -4
- data/features/{range → kalibro_range}/save.feature +2 -2
- data/features/kalibro_range/update.feature +54 -0
- data/features/metric_configuration/creation.feature +2 -2
- data/features/metric_configuration/destroy.feature +2 -2
- data/features/metric_configuration/find.feature +2 -2
- data/features/metric_configuration/metric_configurations_of.feature +8 -8
- data/features/metric_result/descendant_values.feature +2 -2
- data/features/metric_result/history_of.feature +2 -2
- data/features/metric_result/metric_results_of.feature +2 -2
- data/features/module_result/children.feature +2 -2
- data/features/module_result/find.feature +2 -2
- data/features/module_result/history_of.feature +2 -2
- data/features/processing/first_processing_after.feature +2 -2
- data/features/processing/first_processing_of.feature +2 -2
- data/features/processing/has_processing.feature +2 -2
- data/features/processing/has_processing_after.feature +2 -2
- data/features/processing/has_processing_before.feature +2 -2
- data/features/processing/has_ready_processing.feature +2 -2
- data/features/processing/last_processing_before.feature +2 -2
- data/features/processing/last_processing_of.feature +2 -2
- data/features/processing/last_processing_state_of.feature +2 -2
- data/features/processing/last_ready_processing_of.feature +2 -2
- data/features/processing/processing_of.feature +4 -4
- data/features/processing/processing_with_date_of.feature +4 -4
- data/features/project/update.feature +13 -0
- data/features/repository/all.feature +1 -1
- data/features/repository/cancel_processing.feature +1 -1
- data/features/repository/destroy.feature +1 -1
- data/features/repository/exists.feature +1 -1
- data/features/repository/find.feature +1 -1
- data/features/repository/of.feature +1 -1
- data/features/repository/process.feature +2 -2
- data/features/step_definitions/kalibro_configuration_steps.rb +40 -0
- data/features/step_definitions/metric_configuration_steps.rb +9 -9
- data/features/step_definitions/module_result_steps.rb +1 -1
- data/features/step_definitions/project_steps.rb +12 -0
- data/features/step_definitions/range_steps.rb +25 -1
- data/features/step_definitions/reading_steps.rb +1 -1
- data/features/step_definitions/repository_steps.rb +1 -1
- data/lib/kalibro_client/entities/base.rb +53 -19
- data/lib/kalibro_client/entities/configurations/base.rb +4 -1
- data/lib/kalibro_client/entities/configurations/kalibro_configuration.rb +1 -1
- data/lib/kalibro_client/entities/configurations/kalibro_range.rb +8 -8
- data/lib/kalibro_client/entities/configurations/metric_configuration.rb +7 -5
- data/lib/kalibro_client/entities/configurations/reading.rb +4 -4
- data/lib/kalibro_client/entities/configurations/reading_group.rb +4 -0
- data/lib/kalibro_client/entities/processor/base.rb +2 -1
- data/lib/kalibro_client/entities/processor/kalibro_module.rb +1 -0
- data/lib/kalibro_client/entities/processor/metric_collector_details.rb +7 -2
- data/lib/kalibro_client/entities/processor/metric_result.rb +9 -10
- data/lib/kalibro_client/entities/processor/module_result.rb +10 -2
- data/lib/kalibro_client/entities/processor/processing.rb +26 -10
- data/lib/kalibro_client/entities/processor/project.rb +4 -0
- data/lib/kalibro_client/entities/processor/repository.rb +63 -4
- data/lib/kalibro_client/helpers/date_attributes.rb +11 -0
- data/lib/kalibro_client/helpers/request_methods.rb +9 -0
- data/lib/kalibro_client/version.rb +1 -1
- data/spec/entities/base_spec.rb +106 -24
- data/spec/entities/configurations/kalibro_configuration_spec.rb +8 -8
- data/spec/entities/configurations/kalibro_range_spec.rb +18 -24
- data/spec/entities/configurations/metric_configuration_spec.rb +22 -23
- data/spec/entities/configurations/reading_group_spec.rb +27 -0
- data/spec/entities/configurations/reading_spec.rb +15 -7
- data/spec/entities/processor/metric_collector_details_spec.rb +19 -7
- data/spec/entities/processor/metric_result_spec.rb +40 -54
- data/spec/entities/processor/module_result_spec.rb +52 -3
- data/spec/entities/processor/processing_spec.rb +35 -92
- data/spec/entities/processor/project_spec.rb +52 -5
- data/spec/entities/processor/repository_spec.rb +255 -5
- data/spec/factories/kalibro_configurations.rb +3 -3
- data/spec/factories/kalibro_ranges.rb +9 -3
- data/spec/factories/metrics.rb +1 -1
- data/spec/factories/readings.rb +1 -1
- data/spec/factories/repositories.rb +1 -1
- data/spec/helpers/date_attributes_spec.rb +30 -0
- metadata +21 -14
- data/features/step_definitions/configuration_steps.rb +0 -40
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kalibro_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego de Araújo Martinez Camarinha
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -180,6 +180,12 @@ files:
|
|
180
180
|
- features/kalibro_configuration/creation.feature
|
181
181
|
- features/kalibro_configuration/destroy.feature
|
182
182
|
- features/kalibro_configuration/metric_configurations.feature
|
183
|
+
- features/kalibro_range/destroy.feature
|
184
|
+
- features/kalibro_range/exists.feature
|
185
|
+
- features/kalibro_range/find.feature
|
186
|
+
- features/kalibro_range/ranges_of.feature
|
187
|
+
- features/kalibro_range/save.feature
|
188
|
+
- features/kalibro_range/update.feature
|
183
189
|
- features/metric_collector_details/all_names.feature
|
184
190
|
- features/metric_collector_details/find_by_name.feature
|
185
191
|
- features/metric_configuration/creation.feature
|
@@ -209,11 +215,7 @@ files:
|
|
209
215
|
- features/project/destroy.feature
|
210
216
|
- features/project/exists.feature
|
211
217
|
- features/project/find.feature
|
212
|
-
- features/
|
213
|
-
- features/range/exists.feature
|
214
|
-
- features/range/find.feature
|
215
|
-
- features/range/ranges_of.feature
|
216
|
-
- features/range/save.feature
|
218
|
+
- features/project/update.feature
|
217
219
|
- features/reading/destroy.feature
|
218
220
|
- features/reading/exists.feature
|
219
221
|
- features/reading/find.feature
|
@@ -229,7 +231,7 @@ files:
|
|
229
231
|
- features/repository/of.feature
|
230
232
|
- features/repository/process.feature
|
231
233
|
- features/repository/types.feature
|
232
|
-
- features/step_definitions/
|
234
|
+
- features/step_definitions/kalibro_configuration_steps.rb
|
233
235
|
- features/step_definitions/metric_collector_details_steps.rb
|
234
236
|
- features/step_definitions/metric_configuration_steps.rb
|
235
237
|
- features/step_definitions/metric_result_steps.rb
|
@@ -274,6 +276,7 @@ files:
|
|
274
276
|
- lib/kalibro_client/errors/record_not_found.rb
|
275
277
|
- lib/kalibro_client/errors/standard.rb
|
276
278
|
- lib/kalibro_client/helpers/aggregation_options.rb
|
279
|
+
- lib/kalibro_client/helpers/date_attributes.rb
|
277
280
|
- lib/kalibro_client/helpers/hash_converters.rb
|
278
281
|
- lib/kalibro_client/helpers/request_methods.rb
|
279
282
|
- lib/kalibro_client/helpers/xml_converters.rb
|
@@ -325,6 +328,7 @@ files:
|
|
325
328
|
- spec/factories/readings.rb
|
326
329
|
- spec/factories/repositories.rb
|
327
330
|
- spec/helpers/aggregation_options_spec.rb
|
331
|
+
- spec/helpers/date_attributes_spec.rb
|
328
332
|
- spec/helpers/hash_converters_spec.rb
|
329
333
|
- spec/helpers/xml_converters_spec.rb
|
330
334
|
- spec/kalibro_entities_spec.rb
|
@@ -363,6 +367,12 @@ test_files:
|
|
363
367
|
- features/kalibro_configuration/creation.feature
|
364
368
|
- features/kalibro_configuration/destroy.feature
|
365
369
|
- features/kalibro_configuration/metric_configurations.feature
|
370
|
+
- features/kalibro_range/destroy.feature
|
371
|
+
- features/kalibro_range/exists.feature
|
372
|
+
- features/kalibro_range/find.feature
|
373
|
+
- features/kalibro_range/ranges_of.feature
|
374
|
+
- features/kalibro_range/save.feature
|
375
|
+
- features/kalibro_range/update.feature
|
366
376
|
- features/metric_collector_details/all_names.feature
|
367
377
|
- features/metric_collector_details/find_by_name.feature
|
368
378
|
- features/metric_configuration/creation.feature
|
@@ -392,11 +402,7 @@ test_files:
|
|
392
402
|
- features/project/destroy.feature
|
393
403
|
- features/project/exists.feature
|
394
404
|
- features/project/find.feature
|
395
|
-
- features/
|
396
|
-
- features/range/exists.feature
|
397
|
-
- features/range/find.feature
|
398
|
-
- features/range/ranges_of.feature
|
399
|
-
- features/range/save.feature
|
405
|
+
- features/project/update.feature
|
400
406
|
- features/reading/destroy.feature
|
401
407
|
- features/reading/exists.feature
|
402
408
|
- features/reading/find.feature
|
@@ -412,7 +418,7 @@ test_files:
|
|
412
418
|
- features/repository/of.feature
|
413
419
|
- features/repository/process.feature
|
414
420
|
- features/repository/types.feature
|
415
|
-
- features/step_definitions/
|
421
|
+
- features/step_definitions/kalibro_configuration_steps.rb
|
416
422
|
- features/step_definitions/metric_collector_details_steps.rb
|
417
423
|
- features/step_definitions/metric_configuration_steps.rb
|
418
424
|
- features/step_definitions/metric_result_steps.rb
|
@@ -469,6 +475,7 @@ test_files:
|
|
469
475
|
- spec/factories/readings.rb
|
470
476
|
- spec/factories/repositories.rb
|
471
477
|
- spec/helpers/aggregation_options_spec.rb
|
478
|
+
- spec/helpers/date_attributes_spec.rb
|
472
479
|
- spec/helpers/hash_converters_spec.rb
|
473
480
|
- spec/helpers/xml_converters_spec.rb
|
474
481
|
- spec/kalibro_entities_spec.rb
|
@@ -1,40 +0,0 @@
|
|
1
|
-
Given(/^I have a configuration with name "(.*?)"$/) do |name|
|
2
|
-
@configuration = FactoryGirl.create(:configuration, {name: name})
|
3
|
-
end
|
4
|
-
|
5
|
-
When(/^I get all the configurations$/) do
|
6
|
-
@all_configurations = KalibroClient::Entities::Configurations::KalibroConfiguration.all
|
7
|
-
end
|
8
|
-
|
9
|
-
When(/^I create the configuration with name "(.*?)"$/) do |name|
|
10
|
-
@configuration = FactoryGirl.create(:configuration, {name: name})
|
11
|
-
end
|
12
|
-
|
13
|
-
Then(/^I should get a list with the given configuration$/) do
|
14
|
-
expect(@all_configurations.include?(@configuration)).to be_truthy
|
15
|
-
end
|
16
|
-
|
17
|
-
Then(/^the configuration should exist$/) do
|
18
|
-
expect(KalibroClient::Entities::Configurations::KalibroConfiguration.exists?(@configuration.id)).to be_truthy
|
19
|
-
end
|
20
|
-
|
21
|
-
When(/^I destroy the configuration$/) do
|
22
|
-
@configuration.destroy
|
23
|
-
end
|
24
|
-
|
25
|
-
Then(/^the configuration should no longer exist$/) do
|
26
|
-
expect(KalibroClient::Entities::Configurations::KalibroConfiguration.exists?(@configuration.id)).to be_falsey
|
27
|
-
end
|
28
|
-
|
29
|
-
Given(/^the configuration has a metric configuration$/) do
|
30
|
-
@metric_configuration = FactoryGirl.create(:metric_configuration, kalibro_configuration_id: @configuration.id)
|
31
|
-
end
|
32
|
-
|
33
|
-
When(/^I list all the metric configurations of the configuration$/) do
|
34
|
-
@metric_configurations = @configuration.metric_configurations
|
35
|
-
end
|
36
|
-
|
37
|
-
Then(/^I should get a list with the given metric configuration$/) do
|
38
|
-
expect(@metric_configurations.include?(@metric_configuration)).to be_truthy
|
39
|
-
end
|
40
|
-
|