kalibro_gatekeeper_client 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/features/metric_result/descendant_results.feature +1 -1
  3. data/features/metric_result/history_of.feature +1 -1
  4. data/features/metric_result/metric_results_of.feature +1 -1
  5. data/features/module_result/children.feature +1 -1
  6. data/features/module_result/find.feature +1 -1
  7. data/features/module_result/history_of.feature +1 -1
  8. data/features/processing/first_processing_after.feature +1 -1
  9. data/features/processing/first_processing_of.feature +1 -1
  10. data/features/processing/has_processing.feature +1 -1
  11. data/features/processing/has_processing_after.feature +1 -1
  12. data/features/processing/has_processing_before.feature +1 -1
  13. data/features/processing/has_ready_processing.feature +1 -1
  14. data/features/processing/last_processing_before.feature +1 -1
  15. data/features/processing/last_processing_of.feature +1 -1
  16. data/features/processing/last_processing_state_of.feature +1 -1
  17. data/features/processing/last_ready_processing_of.feature +3 -2
  18. data/features/processing/processing_of.feature +2 -2
  19. data/features/processing/processing_with_date_of.feature +2 -2
  20. data/features/project/all.feature +1 -1
  21. data/features/project/creation.feature +1 -1
  22. data/features/project/destroy.feature +1 -1
  23. data/features/project/exists.feature +1 -1
  24. data/features/project/find.feature +1 -1
  25. data/features/repository/all.feature +1 -1
  26. data/features/repository/cancel_processing.feature +1 -1
  27. data/features/repository/exists.feature +1 -1
  28. data/features/repository/find.feature +1 -1
  29. data/features/repository/of.feature +1 -1
  30. data/features/repository/process.feature +1 -1
  31. data/features/repository/types.feature +0 -1
  32. data/features/step_definitions/processing_steps.rb +4 -0
  33. data/lib/kalibro_gatekeeper_client/kalibro_cucumber_helpers/hooks.rb +3 -0
  34. data/lib/kalibro_gatekeeper_client/version.rb +1 -1
  35. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab0e4a166eae87dc9598bc80e6c980efb7873a79
4
- data.tar.gz: 4a76de5a159d066a3ad56702a1f6f7f6917191fb
3
+ metadata.gz: aaa20e199f506c15470a3f20d19d7b083b856218
4
+ data.tar.gz: 3bd281520297d49c152fd6271d151e909619aa8f
5
5
  SHA512:
6
- metadata.gz: c53cac33dc4cdd44e8bac58c9ae6a7fa8c01d1efc03f046898a88e47dcba50f05086d04ecd264a14d2e168435e75d4dd021c15bb57959f098d84d525ede95ab4
7
- data.tar.gz: 3c7d8523c31c81d2ec5b764ea3934e924cc6a86c6234e96e7c95ffb730b74636d962f581a90868cb23d5fccb893174abcf94a1b064f49344c4fe3a626c4729ae
6
+ metadata.gz: 6ac7ed6b1f86609a832a13ee79ddfc2e4ac2a84c6142c27871d8731092f67530dd6444db6b0585aaccf873b868744805fc6d0b6afefa52ad2d4d68fd8616e2b3
7
+ data.tar.gz: 5ee84a069101a0cad4be5fd7d8ab88588eee0115509e90cab71543005240e622be771d1394e83e76a9b7e06bc206c7946e608e780a3f41e9460c021537bff660
@@ -3,7 +3,7 @@ Feature: Descendant results
3
3
  As a developer
4
4
  I want to get the descendant metric results of the given module result
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: when there is a metric result
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: history of
3
3
  As a developer
4
4
  I want to get the date metric results of the given module result and the given metric name
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: when there is a metric result
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Metric results of
3
3
  As a developer
4
4
  I want to get the metric results of the given module result
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: when there is a metric result
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Children
3
3
  As an developer
4
4
  I want to find children module results
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: find a valid module result
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Find
3
3
  As an developer
4
4
  I want to find module results
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: find a valid module result
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: /history of
3
3
  As an developer
4
4
  I want to get the history of module results
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: get the history of a module result
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: First processing after
3
3
  As a developer
4
4
  I want to be able to retrieve the first processing after a given date
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: First processing of
3
3
  As a developer
4
4
  I want to be able to retrieve the first processing
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Has processing
3
3
  As a developer
4
4
  I want to be able to check if a repository has processings
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository after process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Has processing after
3
3
  As a developer
4
4
  I want to be able to check if a repository has processings after it
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Has processing before
3
3
  As a developer
4
4
  I want to be able to check if a repository has processings before it
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Has ready processing
3
3
  As a developer
4
4
  I want to be able to check if a repository has ready processings
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Last processing before
3
3
  As a developer
4
4
  I want to be able to retrieve the last processing before a given date
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Last processing of
3
3
  As a developer
4
4
  I want to be able to retrieve the last processing
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Last processing state of
3
3
  As a developer
4
4
  I want to be able to check the last processing status
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Last ready processing of
3
3
  As a developer
4
4
  I want to be able to check the last ready processing
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after with ready processing
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -15,4 +15,5 @@ Feature: Last ready processing of
15
15
  And I call the process method for the given repository
16
16
  And I wait up for a ready processing
17
17
  When I call the last_ready_processing_of method for the given repository
18
- Then I should get a Processing
18
+ Then I should get a Processing
19
+ And this processing should have process times
@@ -3,7 +3,7 @@ Feature: Processing of
3
3
  As a developer
4
4
  I want to be able to retrieve the processing
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -17,7 +17,7 @@ Feature: Processing of
17
17
  When I call the processing_of method for the given repository
18
18
  Then I should get a Processing with state "PREPARING"
19
19
 
20
- @kalibro_restart
20
+ @kalibro_restart @kalibro_processor_restart
21
21
  Scenario: With one repository just after with ready processing
22
22
  Given I have a project with name "Kalibro"
23
23
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Processing with date of
3
3
  As a developer
4
4
  I want to be able to retrieve the processing for a given date
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository just after starting to process and tomorrow's date
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -17,7 +17,7 @@ Feature: Processing with date of
17
17
  When I call the processing_with_date_of method for the given repository and tomorrow's date
18
18
  Then I should get a Processing
19
19
 
20
- @kalibro_restart
20
+ @kalibro_restart @kalibro_processor_restart
21
21
  Scenario: With one repository just after starting to process and yesterday's date
22
22
  Given I have a project with name "Kalibro"
23
23
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: All
3
3
  As an developer
4
4
  I want to get all the available projects
5
5
 
6
- @kalibro_restart
6
+ @kalibro_processor_restart
7
7
  Scenario: one project
8
8
  Given I have a project with name "Kalibro"
9
9
  When I ask for all the projects
@@ -3,7 +3,7 @@ Feature: Creation
3
3
  As an developer
4
4
  I want to create projects
5
5
 
6
- @kalibro_restart
6
+ @kalibro_processor_restart
7
7
  Scenario: create a valid project
8
8
  When I create the project with name "Kalibro"
9
9
  Then the project should exist
@@ -3,7 +3,7 @@ Feature: Destroy
3
3
  As an developer
4
4
  I want to detroy projects
5
5
 
6
- @kalibro_restart
6
+ @kalibro_processor_restart
7
7
  Scenario: destroy an existing project
8
8
  Given I have a project with name "Kalibro"
9
9
  When I destroy the project with the same id of the given project
@@ -3,7 +3,7 @@ Feature: Exists
3
3
  As an developer
4
4
  I want to find wich projects exists
5
5
 
6
- @kalibro_restart
6
+ @kalibro_processor_restart
7
7
  Scenario: check a valid project
8
8
  Given I have a project with name "Kalibro"
9
9
  Then the project should exist
@@ -3,7 +3,7 @@ Feature: Find
3
3
  As an developer
4
4
  I want to find projects
5
5
 
6
- @kalibro_restart
6
+ @kalibro_processor_restart
7
7
  Scenario: find a valid project
8
8
  Given I have a project with name "Kalibro"
9
9
  When I search a project with the same id of the given project
@@ -3,7 +3,7 @@ Feature: Repositories listing
3
3
  As a developer
4
4
  I want to see all the repositories on the service
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With existing project repository
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Process
3
3
  As a developer
4
4
  I want to cancel the repository processing
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Repositories listing
3
3
  As a developer
4
4
  I want to check that on the service
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With existing project repository
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Repositories listing
3
3
  As a developer
4
4
  I want to find that repository
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With existing project repository
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Repositories listing
3
3
  As a developer
4
4
  I want to see all the repository from a given project
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With existing project repository
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,7 @@ Feature: Process
3
3
  As a developer
4
4
  I want to start the repository processing
5
5
 
6
- @kalibro_restart
6
+ @kalibro_restart @kalibro_processor_restart
7
7
  Scenario: With one repository
8
8
  Given I have a project with name "Kalibro"
9
9
  And I have a configuration with name "Java"
@@ -3,7 +3,6 @@ Feature: Types listing
3
3
  As a developer
4
4
  I want to see all the repository types available
5
5
 
6
- @kalibro_restart
7
6
  Scenario: listing the types
8
7
  When I list types
9
8
  Then I should get an array of types
@@ -89,3 +89,7 @@ end
89
89
  Then(/^I should get a Processing$/) do
90
90
  expect(@response).to be_a(KalibroGatekeeperClient::Entities::Processing)
91
91
  end
92
+
93
+ Then(/^this processing should have process times$/) do
94
+ expect(@response.process_time.first).to be_a(KalibroGatekeeperClient::Entities::ProcessTime)
95
+ end
@@ -46,6 +46,9 @@ After ('@kalibro_restart') do
46
46
  #{KalibroGatekeeperClient::KalibroCucumberHelpers.configuration.database} \\
47
47
  #{KalibroGatekeeperClient::KalibroCucumberHelpers.configuration.query_file_path}"
48
48
  system command
49
+ end
50
+
51
+ After('@kalibro_processor_restart') do
49
52
  KalibroGatekeeperClient::KalibroCucumberHelpers.clean_processor
50
53
  end
51
54
 
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module KalibroGatekeeperClient
18
- VERSION = "0.2.0"
18
+ VERSION = "0.2.1"
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kalibro_gatekeeper_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Araújo Martinez
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-08-04 00:00:00.000000000 Z
14
+ date: 2014-08-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler