kalibro_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/.rspec +2 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +27 -0
  7. data/AUTHORS +4 -0
  8. data/COPYING +674 -0
  9. data/COPYING.LESSER +165 -0
  10. data/Gemfile +4 -0
  11. data/README.md +77 -0
  12. data/Rakefile +6 -0
  13. data/cucumber.yml +1 -0
  14. data/features/kalibro_configuration/all.feature +10 -0
  15. data/features/kalibro_configuration/creation.feature +9 -0
  16. data/features/kalibro_configuration/destroy.feature +10 -0
  17. data/features/kalibro_configuration/metric_configurations.feature +12 -0
  18. data/features/metric_collector_details/all_names.feature +8 -0
  19. data/features/metric_collector_details/find_by_name.feature +12 -0
  20. data/features/metric_configuration/creation.feature +11 -0
  21. data/features/metric_configuration/destroy.feature +12 -0
  22. data/features/metric_configuration/find.feature +18 -0
  23. data/features/metric_configuration/metric_configurations_of.feature +18 -0
  24. data/features/metric_result/descendant_values.feature +19 -0
  25. data/features/metric_result/history_of.feature +20 -0
  26. data/features/metric_result/metric_results_of.feature +20 -0
  27. data/features/module_result/children.feature +19 -0
  28. data/features/module_result/find.feature +22 -0
  29. data/features/module_result/history_of.feature +19 -0
  30. data/features/processing/first_processing_after.feature +18 -0
  31. data/features/processing/first_processing_of.feature +18 -0
  32. data/features/processing/has_processing.feature +18 -0
  33. data/features/processing/has_processing_after.feature +18 -0
  34. data/features/processing/has_processing_before.feature +18 -0
  35. data/features/processing/has_ready_processing.feature +18 -0
  36. data/features/processing/last_processing_before.feature +18 -0
  37. data/features/processing/last_processing_of.feature +18 -0
  38. data/features/processing/last_processing_state_of.feature +18 -0
  39. data/features/processing/last_ready_processing_of.feature +19 -0
  40. data/features/processing/processing_of.feature +32 -0
  41. data/features/processing/processing_with_date_of.feature +32 -0
  42. data/features/project/all.feature +10 -0
  43. data/features/project/creation.feature +9 -0
  44. data/features/project/destroy.feature +10 -0
  45. data/features/project/exists.feature +9 -0
  46. data/features/project/find.feature +10 -0
  47. data/features/range/destroy.feature +14 -0
  48. data/features/range/exists.feature +13 -0
  49. data/features/range/find.feature +14 -0
  50. data/features/range/ranges_of.feature +22 -0
  51. data/features/range/save.feature +14 -0
  52. data/features/reading/destroy.feature +13 -0
  53. data/features/reading/exists.feature +13 -0
  54. data/features/reading/find.feature +11 -0
  55. data/features/reading/readings_of.feature +11 -0
  56. data/features/reading_group/all.feature +10 -0
  57. data/features/reading_group/creation.feature +9 -0
  58. data/features/reading_group/destroy.feature +11 -0
  59. data/features/repository/all.feature +14 -0
  60. data/features/repository/cancel_processing.feature +14 -0
  61. data/features/repository/destroy.feature +14 -0
  62. data/features/repository/exists.feature +14 -0
  63. data/features/repository/find.feature +14 -0
  64. data/features/repository/of.feature +15 -0
  65. data/features/repository/process.feature +16 -0
  66. data/features/repository/types.feature +8 -0
  67. data/features/step_definitions/configuration_steps.rb +40 -0
  68. data/features/step_definitions/metric_collector_details_steps.rb +28 -0
  69. data/features/step_definitions/metric_configuration_steps.rb +61 -0
  70. data/features/step_definitions/metric_result_steps.rb +33 -0
  71. data/features/step_definitions/metric_steps.rb +3 -0
  72. data/features/step_definitions/module_result_steps.rb +46 -0
  73. data/features/step_definitions/processing_steps.rb +95 -0
  74. data/features/step_definitions/project_steps.rb +48 -0
  75. data/features/step_definitions/range_steps.rb +72 -0
  76. data/features/step_definitions/reading_group_steps.rb +36 -0
  77. data/features/step_definitions/reading_steps.rb +47 -0
  78. data/features/step_definitions/repository_steps.rb +71 -0
  79. data/features/support/env.rb +25 -0
  80. data/features/support/kalibro_cucumber_helpers.yml.sample +3 -0
  81. data/kalibro_client.gemspec +49 -0
  82. data/lib/kalibro_client.rb +62 -0
  83. data/lib/kalibro_client/entities.rb +40 -0
  84. data/lib/kalibro_client/entities/base.rb +196 -0
  85. data/lib/kalibro_client/entities/configurations/base.rb +13 -0
  86. data/lib/kalibro_client/entities/configurations/kalibro_configuration.rb +37 -0
  87. data/lib/kalibro_client/entities/configurations/kalibro_range.rb +77 -0
  88. data/lib/kalibro_client/entities/configurations/metric_configuration.rb +93 -0
  89. data/lib/kalibro_client/entities/configurations/range_snapshot.rb +37 -0
  90. data/lib/kalibro_client/entities/configurations/reading.rb +56 -0
  91. data/lib/kalibro_client/entities/configurations/reading_group.rb +34 -0
  92. data/lib/kalibro_client/entities/miscellaneous/base.rb +57 -0
  93. data/lib/kalibro_client/entities/miscellaneous/compound_metric.rb +21 -0
  94. data/lib/kalibro_client/entities/miscellaneous/date_metric_result.rb +14 -0
  95. data/lib/kalibro_client/entities/miscellaneous/date_module_result.rb +18 -0
  96. data/lib/kalibro_client/entities/miscellaneous/granularity.rb +54 -0
  97. data/lib/kalibro_client/entities/miscellaneous/metric.rb +19 -0
  98. data/lib/kalibro_client/entities/miscellaneous/native_metric.rb +24 -0
  99. data/lib/kalibro_client/entities/processor/base.rb +16 -0
  100. data/lib/kalibro_client/entities/processor/kalibro_module.rb +27 -0
  101. data/lib/kalibro_client/entities/processor/metric_collector_details.rb +53 -0
  102. data/lib/kalibro_client/entities/processor/metric_result.rb +79 -0
  103. data/lib/kalibro_client/entities/processor/module_result.rb +82 -0
  104. data/lib/kalibro_client/entities/processor/process_time.rb +31 -0
  105. data/lib/kalibro_client/entities/processor/processing.rb +109 -0
  106. data/lib/kalibro_client/entities/processor/project.rb +34 -0
  107. data/lib/kalibro_client/entities/processor/repository.rb +75 -0
  108. data/lib/kalibro_client/errors.rb +18 -0
  109. data/lib/kalibro_client/errors/record_not_found.rb +22 -0
  110. data/lib/kalibro_client/errors/standard.rb +24 -0
  111. data/lib/kalibro_client/helpers/aggregation_options.rb +25 -0
  112. data/lib/kalibro_client/helpers/hash_converters.rb +48 -0
  113. data/lib/kalibro_client/helpers/request_methods.rb +55 -0
  114. data/lib/kalibro_client/helpers/xml_converters.rb +20 -0
  115. data/lib/kalibro_client/kalibro_cucumber_helpers.rb +60 -0
  116. data/lib/kalibro_client/kalibro_cucumber_helpers/configuration.rb +30 -0
  117. data/lib/kalibro_client/kalibro_cucumber_helpers/hooks.rb +25 -0
  118. data/lib/kalibro_client/version.rb +19 -0
  119. data/lib/rake/test_task.rb +57 -0
  120. data/spec/entities/base_spec.rb +313 -0
  121. data/spec/entities/configurations/base_spec.rb +26 -0
  122. data/spec/entities/configurations/kalibro_configuration_spec.rb +91 -0
  123. data/spec/entities/configurations/kalibro_range_spec.rb +174 -0
  124. data/spec/entities/configurations/metric_configuration_spec.rb +230 -0
  125. data/spec/entities/configurations/range_snapshot_spec.rb +50 -0
  126. data/spec/entities/configurations/reading_group_spec.rb +60 -0
  127. data/spec/entities/configurations/reading_spec.rb +87 -0
  128. data/spec/entities/miscellaneous/base_spec.rb +49 -0
  129. data/spec/entities/miscellaneous/compound_metric_spec.rb +36 -0
  130. data/spec/entities/miscellaneous/date_metric_result_spec.rb +4 -0
  131. data/spec/entities/miscellaneous/date_module_result_spec.rb +0 -0
  132. data/spec/entities/miscellaneous/granularity_spec.rb +96 -0
  133. data/spec/entities/miscellaneous/metric_spec.rb +15 -0
  134. data/spec/entities/miscellaneous/native_metric_spec.rb +37 -0
  135. data/spec/entities/processor/base_spec.rb +26 -0
  136. data/spec/entities/processor/metric_collector_details_spec.rb +146 -0
  137. data/spec/entities/processor/metric_result_spec.rb +209 -0
  138. data/spec/entities/processor/module_result_spec.rb +178 -0
  139. data/spec/entities/processor/process_time_spec.rb +33 -0
  140. data/spec/entities/processor/processing_spec.rb +333 -0
  141. data/spec/entities/processor/project_spec.rb +68 -0
  142. data/spec/entities/processor/repository_spec.rb +140 -0
  143. data/spec/factories/date_metric_results.rb +30 -0
  144. data/spec/factories/date_module_results.rb +24 -0
  145. data/spec/factories/granularities.rb +23 -0
  146. data/spec/factories/kalibro_configurations.rb +34 -0
  147. data/spec/factories/kalibro_module.rb +28 -0
  148. data/spec/factories/kalibro_ranges.rb +40 -0
  149. data/spec/factories/metric_collector_details.rb +30 -0
  150. data/spec/factories/metric_configurations.rb +31 -0
  151. data/spec/factories/metric_results.rb +24 -0
  152. data/spec/factories/metrics.rb +48 -0
  153. data/spec/factories/models.rb +23 -0
  154. data/spec/factories/module_results.rb +43 -0
  155. data/spec/factories/process_times.rb +27 -0
  156. data/spec/factories/processings.rb +24 -0
  157. data/spec/factories/projects.rb +35 -0
  158. data/spec/factories/ranges_snapshot.rb +26 -0
  159. data/spec/factories/reading_groups.rb +28 -0
  160. data/spec/factories/readings.rb +30 -0
  161. data/spec/factories/repositories.rb +39 -0
  162. data/spec/helpers/aggregation_options_spec.rb +31 -0
  163. data/spec/helpers/hash_converters_spec.rb +111 -0
  164. data/spec/helpers/xml_converters_spec.rb +64 -0
  165. data/spec/kalibro_entities_spec.rb +112 -0
  166. data/spec/savon/fixtures/config.yml +2 -0
  167. data/spec/savon/fixtures/invalid_config.yml +2 -0
  168. data/spec/savon/fixtures/project/does_not_exists.xml +1 -0
  169. data/spec/savon/savon_test_helper.rb +14 -0
  170. data/spec/spec_helper.rb +111 -0
  171. metadata +479 -0
@@ -0,0 +1,19 @@
1
+ Feature: Children
2
+ In order to be able to have the children of a module result
3
+ As a developer
4
+ I want to find children module results
5
+
6
+ @kalibro_configuration_restart @kalibro_processor_restart
7
+ Scenario: find a valid module result
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up for a ready processing
17
+ When I ask for the children of the processing root module result
18
+ Then I should get a list with the children module results
19
+ And The first children should have a module
@@ -0,0 +1,22 @@
1
+ Feature: Find
2
+ In order to be able to have module result
3
+ As a developer
4
+ I want to find module results
5
+
6
+ @kalibro_configuration_restart @kalibro_processor_restart
7
+ Scenario: find a valid module result
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ When I call the process method for the given repository
16
+ And I wait up for a ready processing
17
+ And I get the module result of the processing
18
+ Then I should get a module_result
19
+
20
+ Scenario: get a module result by inexistent name
21
+ When I ask for an inexistent module result
22
+ Then I should get an error
@@ -0,0 +1,19 @@
1
+ Feature: /history of
2
+ In order to be able to have the history of a module result
3
+ As a developer
4
+ I want to get the history of module results
5
+
6
+ @kalibro_configuration_restart @kalibro_processor_restart
7
+ Scenario: get the history of a module result
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up for a ready processing
17
+ And I get the module result of the processing
18
+ When I ask for the history of the given module result
19
+ Then I should get a list with date module results
@@ -0,0 +1,18 @@
1
+ Feature: First processing after
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to retrieve the first processing after a given date
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the first_processing_after method for the given repository and yesterday's date
18
+ Then I should get a Processing
@@ -0,0 +1,18 @@
1
+ Feature: First processing of
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to retrieve the first processing
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the first_processing_of method for the given repository
18
+ Then I should get a Processing
@@ -0,0 +1,18 @@
1
+ Feature: Has processing
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to check if a repository has processings
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository after process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the has_processing for the given repository
18
+ Then I should get true
@@ -0,0 +1,18 @@
1
+ Feature: Has processing after
2
+ In order to be able to retrieve processing results from a given date
3
+ As a developer
4
+ I want to be able to check if a repository has processings after it
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the has_processing_after for the given repository with yerterday's date
18
+ Then I should get true
@@ -0,0 +1,18 @@
1
+ Feature: Has processing before
2
+ In order to be able to retrieve processing results from a given date
3
+ As a developer
4
+ I want to be able to check if a repository has processings before it
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the has_processing_before for the given repository with tomorrows's date
18
+ Then I should get true
@@ -0,0 +1,18 @@
1
+ Feature: Has ready processing
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to check if a repository has ready processings
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the has_ready_processing for the given repository
18
+ Then I should get false
@@ -0,0 +1,18 @@
1
+ Feature: Last processing before
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to retrieve the last processing before a given date
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the last_processing_before method for the given repository and tomorrow's date
18
+ Then I should get a Processing
@@ -0,0 +1,18 @@
1
+ Feature: Last processing of
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to retrieve the last processing
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the last_processing_of method for the given repository
18
+ Then I should get a Processing
@@ -0,0 +1,18 @@
1
+ Feature: Last processing state of
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to check the last processing status
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the last_processing_state_of method for the given repository
18
+ Then I should get "PREPARING"
@@ -0,0 +1,19 @@
1
+ Feature: Last ready processing of
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to check the last ready processing
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after with ready processing
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up for a ready processing
17
+ When I call the last_ready_processing_of method for the given repository
18
+ Then I should get a Processing
19
+ And this processing should have process times
@@ -0,0 +1,32 @@
1
+ Feature: Processing of
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to retrieve the processing
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the processing_of method for the given repository
18
+ Then I should get a Processing with state "PREPARING"
19
+
20
+ @kalibro_processor_restart @kalibro_configuration_restart
21
+ Scenario: With one repository just after with ready processing
22
+ Given I have a project with name "Kalibro"
23
+ And I have a configuration with name "Java"
24
+ And I have a reading group with name "Group"
25
+ And I have a loc configuration within the given configuration
26
+ And the given project has the following Repositories:
27
+ | name | scm_type | address |
28
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
29
+ And I call the process method for the given repository
30
+ And I wait up for a ready processing
31
+ When I call the processing_of method for the given repository
32
+ Then I should get a Processing with state "READY"
@@ -0,0 +1,32 @@
1
+ Feature: Processing with date of
2
+ In order to be able to retrieve processing results
3
+ As a developer
4
+ I want to be able to retrieve the processing for a given date
5
+
6
+ @kalibro_processor_restart @kalibro_configuration_restart
7
+ Scenario: With one repository just after starting to process and tomorrow's date
8
+ Given I have a project with name "Kalibro"
9
+ And I have a configuration with name "Java"
10
+ And I have a reading group with name "Group"
11
+ And I have a loc configuration within the given configuration
12
+ And the given project has the following Repositories:
13
+ | name | scm_type | address |
14
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
15
+ And I call the process method for the given repository
16
+ And I wait up to 1 seconds
17
+ When I call the processing_with_date_of method for the given repository and tomorrow's date
18
+ Then I should get a Processing
19
+
20
+ @kalibro_processor_restart @kalibro_configuration_restart
21
+ Scenario: With one repository just after starting to process and yesterday's date
22
+ Given I have a project with name "Kalibro"
23
+ And I have a configuration with name "Java"
24
+ And I have a reading group with name "Group"
25
+ And I have a loc configuration within the given configuration
26
+ And the given project has the following Repositories:
27
+ | name | scm_type | address |
28
+ | Kalibro | GIT | https://git.gitorious.org/sbking/sbking.git |
29
+ And I call the process method for the given repository
30
+ And I wait up to 1 seconds
31
+ When I call the processing_with_date_of method for the given repository and yesterday's date
32
+ Then I should get a Processing
@@ -0,0 +1,10 @@
1
+ Feature: All
2
+ In order to be able to have projects
3
+ As a developer
4
+ I want to get all the available projects
5
+
6
+ @kalibro_processor_restart
7
+ Scenario: one project
8
+ Given I have a project with name "Kalibro"
9
+ When I ask for all the projects
10
+ Then I should get a list with the given project
@@ -0,0 +1,9 @@
1
+ Feature: Creation
2
+ In order to be able to have projects
3
+ As a developer
4
+ I want to create projects
5
+
6
+ @kalibro_processor_restart
7
+ Scenario: create a valid project
8
+ When I create the project with name "Kalibro"
9
+ Then the project should exist
@@ -0,0 +1,10 @@
1
+ Feature: Destroy
2
+ In order to be able to have projects
3
+ As a developer
4
+ I want to detroy projects
5
+
6
+ @kalibro_processor_restart
7
+ Scenario: destroy an existing project
8
+ Given I have a project with name "Kalibro"
9
+ When I destroy the project with the same id of the given project
10
+ Then the project should no longer exist
@@ -0,0 +1,9 @@
1
+ Feature: Exists
2
+ In order to be able to have projects
3
+ As a developer
4
+ I want to find wich projects exists
5
+
6
+ @kalibro_processor_restart
7
+ Scenario: check a valid project
8
+ Given I have a project with name "Kalibro"
9
+ Then the project should exist
@@ -0,0 +1,10 @@
1
+ Feature: Find
2
+ In order to be able to have projects
3
+ As a developer
4
+ I want to find projects
5
+
6
+ @kalibro_processor_restart
7
+ Scenario: find a valid project
8
+ Given I have a project with name "Kalibro"
9
+ When I search a project with the same id of the given project
10
+ Then it should return the same project as the given one
@@ -0,0 +1,14 @@
1
+ Feature: Destroy
2
+ In order to be able to have ranges
3
+ As a developer
4
+ I want to destroy ranges
5
+
6
+ @kalibro_configuration_restart
7
+ Scenario: destroying an existing range
8
+ Given I have a configuration with name "Java"
9
+ And I have a reading group with name "Group"
10
+ And I have a metric configuration within the given configuration
11
+ And I have a reading within the given reading group
12
+ And I have a range within the given reading
13
+ When I destroy the range
14
+ Then the range should no longer exist
@@ -0,0 +1,13 @@
1
+ Feature: Exists
2
+ In order to be able to have ranges
3
+ As a developer
4
+ I want to find which range exists
5
+
6
+ @kalibro_configuration_restart
7
+ Scenario: find a valid range
8
+ Given I have a configuration with name "Java"
9
+ And I have a reading group with name "Group"
10
+ And I have a metric configuration within the given configuration
11
+ And I have a reading within the given reading group
12
+ And I have a range within the given reading
13
+ Then the range should exist
@@ -0,0 +1,14 @@
1
+ Feature: Find
2
+ In order to be able to have ranges
3
+ As a developer
4
+ I want to find ranges
5
+
6
+ @kalibro_configuration_restart
7
+ Scenario: find a valid range
8
+ Given I have a configuration with name "Java"
9
+ And I have a reading group with name "Group"
10
+ And I have a metric configuration within the given configuration
11
+ And I have a reading within the given reading group
12
+ And I have a range within the given reading
13
+ When I search a range with the same id of the given range
14
+ Then it should return the same range as the given one
@@ -0,0 +1,22 @@
1
+ Feature: Range of
2
+ In order to be able to get all the ranges of a metric configuration
3
+ As a developer
4
+ I want to see all the ranges of the given metric configuration
5
+
6
+ @kalibro_configuration_restart
7
+ Scenario: With an inexistent range
8
+ Given I have a configuration with name "Java"
9
+ And I have a reading group with name "Group"
10
+ And I have a metric configuration within the given configuration
11
+ When I ask ranges of the given metric configuration
12
+ Then I should get an empty list
13
+
14
+ @kalibro_configuration_restart
15
+ Scenario: With an existing range
16
+ Given I have a configuration with name "Java"
17
+ And I have a reading group with name "Group"
18
+ And I have a metric configuration within the given configuration
19
+ And I have a reading within the given reading group
20
+ And I have a range within the given reading
21
+ When I ask ranges of the given metric configuration
22
+ Then I should get a list with the given range