Commit a8f3a260fc5d68da412212e43f3e37d45b9b96fe
1 parent
2e481354
Exists in
colab
and in
4 other branches
Updated KalibroGatekeeperClient (Using KalibroProcessor)
Showing
21 changed files
with
73 additions
and
58 deletions
Show diff stats
.gitignore
| @@ -20,6 +20,7 @@ coverage | @@ -20,6 +20,7 @@ coverage | ||
| 20 | database.yml | 20 | database.yml |
| 21 | database.yml~ | 21 | database.yml~ |
| 22 | kalibro.yml | 22 | kalibro.yml |
| 23 | +kalibro_processor.yml | ||
| 23 | kalibro_cucumber_helpers.yml | 24 | kalibro_cucumber_helpers.yml |
| 24 | KalibroService.tar.gz | 25 | KalibroService.tar.gz |
| 25 | KalibroService/ | 26 | KalibroService/ |
.travis.yml
| @@ -4,6 +4,7 @@ rvm: | @@ -4,6 +4,7 @@ rvm: | ||
| 4 | 4 | ||
| 5 | before_script: | 5 | before_script: |
| 6 | - "cp config/database.yml.sample config/database.yml" | 6 | - "cp config/database.yml.sample config/database.yml" |
| 7 | + - "cp config/kalibro_processor.yml.sample config/kalibro_processor.yml" | ||
| 7 | - "bundle exec rake db:migrate RAILS_ENV=test" | 8 | - "bundle exec rake db:migrate RAILS_ENV=test" |
| 8 | - git clone https://gist.github.com/0c4ad3b5700c6364abf1.git -b v1.0 kalibro_install | 9 | - git clone https://gist.github.com/0c4ad3b5700c6364abf1.git -b v1.0 kalibro_install |
| 9 | - pushd kalibro_install | 10 | - pushd kalibro_install |
| @@ -12,13 +13,28 @@ before_script: | @@ -12,13 +13,28 @@ before_script: | ||
| 12 | - bash install.sh | 13 | - bash install.sh |
| 13 | - popd | 14 | - popd |
| 14 | - cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml | 15 | - cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml |
| 15 | - - git clone https://github.com/mezuro/kalibro_gatekeeper.git -b v0.0.1 kalibro_gatekeeper | ||
| 16 | - - pushd kalibro_gatekeeper | 16 | + # Gatekeeper |
| 17 | + - git clone https://github.com/mezuro/kalibro_gatekeeper.git -b v0.1.1 kalibro_gatekeeper | ||
| 18 | + - cd kalibro_gatekeeper | ||
| 17 | - cp config/database.yml.sample config/database.yml | 19 | - cp config/database.yml.sample config/database.yml |
| 20 | + - cp config/kalibro_processor.yml.sample config/kalibro_processor.yml | ||
| 18 | - export BUNDLE_GEMFILE=$PWD/Gemfile | 21 | - export BUNDLE_GEMFILE=$PWD/Gemfile |
| 19 | - bundle install | 22 | - bundle install |
| 20 | - - bundle exec rails s -p 8081 -d | ||
| 21 | - - popd | 23 | + - RAILS_ENV=local bundle exec rails s -p 8081 -d |
| 24 | + - cd .. | ||
| 25 | + - export BUNDLE_GEMFILE=$PWD/Gemfile | ||
| 26 | + # Processor | ||
| 27 | + - git clone https://github.com/mezuro/kalibro_processor.git -b v0.0.2 kalibro_processor | ||
| 28 | + - cd kalibro_processor | ||
| 29 | + - psql -c "create role kalibro_processor with createdb login password 'kalibro_processor'" -U postgres | ||
| 30 | + - cp config/database.yml.postgresql_sample config/database.yml | ||
| 31 | + - cp config/repositories.yml.sample config/repositories.yml | ||
| 32 | + - export BUNDLE_GEMFILE=$PWD/Gemfile | ||
| 33 | + - bundle install | ||
| 34 | + - bundle exec rake db:setup db:migrate | ||
| 35 | + - bundle exec rails s -p 8082 -d | ||
| 36 | + - bundle exec bin/delayed_job start | ||
| 37 | + - cd .. | ||
| 22 | - export BUNDLE_GEMFILE=$PWD/Gemfile | 38 | - export BUNDLE_GEMFILE=$PWD/Gemfile |
| 23 | 39 | ||
| 24 | script: | 40 | script: |
Gemfile
| @@ -31,7 +31,7 @@ gem 'jbuilder', '~> 2.1.2' | @@ -31,7 +31,7 @@ gem 'jbuilder', '~> 2.1.2' | ||
| 31 | gem 'devise', '~> 3.2.4' | 31 | gem 'devise', '~> 3.2.4' |
| 32 | 32 | ||
| 33 | # Kalibro integration | 33 | # Kalibro integration |
| 34 | -gem 'kalibro_gatekeeper_client', "~> 0.1.0" | 34 | +gem 'kalibro_gatekeeper_client', "~> 0.2.1" |
| 35 | 35 | ||
| 36 | # PostgreSQL integration | 36 | # PostgreSQL integration |
| 37 | gem "pg", "~> 0.17.0" | 37 | gem "pg", "~> 0.17.0" |
Gemfile.lock
| @@ -130,7 +130,7 @@ GEM | @@ -130,7 +130,7 @@ GEM | ||
| 130 | jquery-ui-rails (4.2.1) | 130 | jquery-ui-rails (4.2.1) |
| 131 | railties (>= 3.2.16) | 131 | railties (>= 3.2.16) |
| 132 | json (1.8.1) | 132 | json (1.8.1) |
| 133 | - kalibro_gatekeeper_client (0.1.1) | 133 | + kalibro_gatekeeper_client (0.2.1) |
| 134 | activesupport (>= 2.2.1) | 134 | activesupport (>= 2.2.1) |
| 135 | faraday_middleware (~> 0.9.0) | 135 | faraday_middleware (~> 0.9.0) |
| 136 | konacha (3.2.3) | 136 | konacha (3.2.3) |
| @@ -284,7 +284,7 @@ DEPENDENCIES | @@ -284,7 +284,7 @@ DEPENDENCIES | ||
| 284 | jbuilder (~> 2.1.2) | 284 | jbuilder (~> 2.1.2) |
| 285 | jquery-rails | 285 | jquery-rails |
| 286 | jquery-ui-rails (~> 4.2.1) | 286 | jquery-ui-rails (~> 4.2.1) |
| 287 | - kalibro_gatekeeper_client (~> 0.1.0) | 287 | + kalibro_gatekeeper_client (~> 0.2.1) |
| 288 | konacha (~> 3.2.0) | 288 | konacha (~> 3.2.0) |
| 289 | mocha | 289 | mocha |
| 290 | pg (~> 0.17.0) | 290 | pg (~> 0.17.0) |
config/deploy.rb
| @@ -48,6 +48,7 @@ namespace :deploy do | @@ -48,6 +48,7 @@ namespace :deploy do | ||
| 48 | on roles(:web) do | 48 | on roles(:web) do |
| 49 | execute "ln -s #{File.join(deploy_to, 'shared', 'config/database.yml')} #{File.join(release_path, 'config/database.yml')}" | 49 | execute "ln -s #{File.join(deploy_to, 'shared', 'config/database.yml')} #{File.join(release_path, 'config/database.yml')}" |
| 50 | execute "ln -s #{File.join(deploy_to, 'shared', 'config/kalibro_gatekeeper.yml')} #{File.join(release_path, 'config/kalibro_gatekeeper.yml')}" | 50 | execute "ln -s #{File.join(deploy_to, 'shared', 'config/kalibro_gatekeeper.yml')} #{File.join(release_path, 'config/kalibro_gatekeeper.yml')}" |
| 51 | + execute "ln -s #{File.join(deploy_to, 'shared', 'config/kalibro_processor.yml')} #{File.join(release_path, 'config/kalibro_processor.yml')}" | ||
| 51 | end | 52 | end |
| 52 | end | 53 | end |
| 53 | 54 |
features/metric_configuration/create.feature
| @@ -40,9 +40,3 @@ Feature: Metric Configuration Creation | @@ -40,9 +40,3 @@ Feature: Metric Configuration Creation | ||
| 40 | And I click the Total Lines of Code link | 40 | And I click the Total Lines of Code link |
| 41 | When I click the Back link | 41 | When I click the Back link |
| 42 | Then I should be at the choose metric page | 42 | Then I should be at the choose metric page |
| 43 | - # Checks for error loading metrics with '' characters | ||
| 44 | - When I click the "Checkstyle" h3 | ||
| 45 | - And I click the Average 'if' Depth link | ||
| 46 | - And I wait for "1" seconds | ||
| 47 | - Then I should see "Average nested depth of all 'if-else' blocks. Default maximum: 1." | ||
| 48 | - |
features/project/create.feature
| @@ -3,12 +3,11 @@ Feature: Project Creation | @@ -3,12 +3,11 @@ Feature: Project Creation | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should be able to create projects | 4 | I should be able to create projects |
| 5 | 5 | ||
| 6 | - @kalibro_restart | ||
| 7 | Scenario: Should not create project without login | 6 | Scenario: Should not create project without login |
| 8 | Given I am at the All Projects page | 7 | Given I am at the All Projects page |
| 9 | Then I should not see New Project | 8 | Then I should not see New Project |
| 10 | 9 | ||
| 11 | - @kalibro_restart | 10 | + @kalibro_processor_restart |
| 12 | Scenario: project creation | 11 | Scenario: project creation |
| 13 | Given I am a regular user | 12 | Given I am a regular user |
| 14 | And I am signed in | 13 | And I am signed in |
| @@ -19,7 +18,7 @@ Feature: Project Creation | @@ -19,7 +18,7 @@ Feature: Project Creation | ||
| 19 | Then I should see "Kalibro" | 18 | Then I should see "Kalibro" |
| 20 | And I should see "Web Service to collect metrics" | 19 | And I should see "Web Service to collect metrics" |
| 21 | 20 | ||
| 22 | - @kalibro_restart | 21 | + @kalibro_processor_restart |
| 23 | Scenario: project creation with already taken name | 22 | Scenario: project creation with already taken name |
| 24 | Given I am a regular user | 23 | Given I am a regular user |
| 25 | And I am signed in | 24 | And I am signed in |
| @@ -30,7 +29,6 @@ Feature: Project Creation | @@ -30,7 +29,6 @@ Feature: Project Creation | ||
| 30 | When I press the Save button | 29 | When I press the Save button |
| 31 | Then I should see "There's already" | 30 | Then I should see "There's already" |
| 32 | 31 | ||
| 33 | - @kalibro_restart | ||
| 34 | Scenario: project creation with blank name | 32 | Scenario: project creation with blank name |
| 35 | Given I am a regular user | 33 | Given I am a regular user |
| 36 | And I am signed in | 34 | And I am signed in |
features/project/deletion.feature
| @@ -3,13 +3,13 @@ Feature: Project Deletion | @@ -3,13 +3,13 @@ Feature: Project Deletion | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | The system should have an interface to it | 4 | The system should have an interface to it |
| 5 | 5 | ||
| 6 | - @kalibro_restart | 6 | + @kalibro_processor_restart |
| 7 | Scenario: Should not delete a project without user authetication | 7 | Scenario: Should not delete a project without user authetication |
| 8 | Given I have a sample project | 8 | Given I have a sample project |
| 9 | When I am at the Sample Project page | 9 | When I am at the Sample Project page |
| 10 | Then I should not see Destroy | 10 | Then I should not see Destroy |
| 11 | 11 | ||
| 12 | - @kalibro_restart | 12 | + @kalibro_processor_restart |
| 13 | Scenario: Should not delete a project that doesn't belongs to user | 13 | Scenario: Should not delete a project that doesn't belongs to user |
| 14 | Given I am a regular user | 14 | Given I am a regular user |
| 15 | And I am signed in | 15 | And I am signed in |
| @@ -17,7 +17,7 @@ Feature: Project Deletion | @@ -17,7 +17,7 @@ Feature: Project Deletion | ||
| 17 | When I am at the Sample Project page | 17 | When I am at the Sample Project page |
| 18 | Then I should not see Destroy | 18 | Then I should not see Destroy |
| 19 | 19 | ||
| 20 | - @kalibro_restart | 20 | + @kalibro_processor_restart |
| 21 | Scenario: Should delete a project that I own | 21 | Scenario: Should delete a project that I own |
| 22 | Given I am a regular user | 22 | Given I am a regular user |
| 23 | And I am signed in | 23 | And I am signed in |
features/project/edition.feature
| @@ -3,7 +3,7 @@ Feature: Project | @@ -3,7 +3,7 @@ Feature: Project | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should be able to edit my projects | 4 | I should be able to edit my projects |
| 5 | 5 | ||
| 6 | - @kalibro_restarts | 6 | + @kalibro_processor_restart |
| 7 | Scenario: Should go to the edit page from a project that I own | 7 | Scenario: Should go to the edit page from a project that I own |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I am signed in | 9 | And I am signed in |
| @@ -12,7 +12,7 @@ Feature: Project | @@ -12,7 +12,7 @@ Feature: Project | ||
| 12 | When I click the Edit link | 12 | When I click the Edit link |
| 13 | Then I should be in the Edit Project page | 13 | Then I should be in the Edit Project page |
| 14 | 14 | ||
| 15 | - @kalibro_restart | 15 | + @kalibro_processor_restart |
| 16 | Scenario: Should not show edit links from projects that doesn't belongs to me | 16 | Scenario: Should not show edit links from projects that doesn't belongs to me |
| 17 | Given I am a regular user | 17 | Given I am a regular user |
| 18 | And I am signed in | 18 | And I am signed in |
| @@ -20,7 +20,7 @@ Feature: Project | @@ -20,7 +20,7 @@ Feature: Project | ||
| 20 | And I am at the All Projects page | 20 | And I am at the All Projects page |
| 21 | Then I should not see "Edit" within "table tr td" | 21 | Then I should not see "Edit" within "table tr td" |
| 22 | 22 | ||
| 23 | - @kalibro_restart | 23 | + @kalibro_processor_restart |
| 24 | Scenario: Should not render the edit page if the project doesn't belongs to the current user | 24 | Scenario: Should not render the edit page if the project doesn't belongs to the current user |
| 25 | Given I am a regular user | 25 | Given I am a regular user |
| 26 | And I am signed in | 26 | And I am signed in |
| @@ -29,7 +29,7 @@ Feature: Project | @@ -29,7 +29,7 @@ Feature: Project | ||
| 29 | When I visit the sample project edit page | 29 | When I visit the sample project edit page |
| 30 | Then I should see "You're not allowed to do this operation" | 30 | Then I should see "You're not allowed to do this operation" |
| 31 | 31 | ||
| 32 | - @kalibro_restart | 32 | + @kalibro_processor_restart |
| 33 | Scenario: Filling up the form | 33 | Scenario: Filling up the form |
| 34 | Given I am a regular user | 34 | Given I am a regular user |
| 35 | And I am signed in | 35 | And I am signed in |
| @@ -39,7 +39,7 @@ Feature: Project | @@ -39,7 +39,7 @@ Feature: Project | ||
| 39 | Then The field "project[name]" should be filled with the sample project "name" | 39 | Then The field "project[name]" should be filled with the sample project "name" |
| 40 | And The field "project[description]" should be filled with the sample project "description" | 40 | And The field "project[description]" should be filled with the sample project "description" |
| 41 | 41 | ||
| 42 | - @kalibro_restart | 42 | + @kalibro_processor_restart |
| 43 | Scenario: With valid attributes | 43 | Scenario: With valid attributes |
| 44 | Given I am a regular user | 44 | Given I am a regular user |
| 45 | And I am signed in | 45 | And I am signed in |
| @@ -51,7 +51,7 @@ Feature: Project | @@ -51,7 +51,7 @@ Feature: Project | ||
| 51 | Then I should see "Kalibro" | 51 | Then I should see "Kalibro" |
| 52 | And I should see "Web Service to collect metrics" | 52 | And I should see "Web Service to collect metrics" |
| 53 | 53 | ||
| 54 | - @kalibro_restart | 54 | + @kalibro_processor_restart |
| 55 | Scenario: With project name already taken | 55 | Scenario: With project name already taken |
| 56 | Given I am a regular user | 56 | Given I am a regular user |
| 57 | And I am signed in | 57 | And I am signed in |
| @@ -62,7 +62,7 @@ Feature: Project | @@ -62,7 +62,7 @@ Feature: Project | ||
| 62 | When I press the Save button | 62 | When I press the Save button |
| 63 | Then I should see "There's already" | 63 | Then I should see "There's already" |
| 64 | 64 | ||
| 65 | - @kalibro_restart | 65 | + @kalibro_processor_restart |
| 66 | Scenario: Editing just the description | 66 | Scenario: Editing just the description |
| 67 | Given I am a regular user | 67 | Given I am a regular user |
| 68 | And I am signed in | 68 | And I am signed in |
| @@ -72,7 +72,7 @@ Feature: Project | @@ -72,7 +72,7 @@ Feature: Project | ||
| 72 | When I press the Save button | 72 | When I press the Save button |
| 73 | And I should see "Web Service to collect metrics" | 73 | And I should see "Web Service to collect metrics" |
| 74 | 74 | ||
| 75 | - @kalibro_restart | 75 | + @kalibro_processor_restart |
| 76 | Scenario: With blank project name | 76 | Scenario: With blank project name |
| 77 | Given I am a regular user | 77 | Given I am a regular user |
| 78 | And I am signed in | 78 | And I am signed in |
features/project/listing.feature
| @@ -3,7 +3,7 @@ Feature: Project listing | @@ -3,7 +3,7 @@ Feature: Project listing | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should have various listings | 4 | I should have various listings |
| 5 | 5 | ||
| 6 | - Scenario: Listing projects | 6 | + Scenario: Listing projects |
| 7 | Given I am at the homepage | 7 | Given I am at the homepage |
| 8 | When I click the Project link | 8 | When I click the Project link |
| 9 | Then I should see "Projects" | 9 | Then I should see "Projects" |
| @@ -11,7 +11,7 @@ Feature: Project listing | @@ -11,7 +11,7 @@ Feature: Project listing | ||
| 11 | And I should see "Description" | 11 | And I should see "Description" |
| 12 | And I should see "To create new projects you must be logged in page." | 12 | And I should see "To create new projects you must be logged in page." |
| 13 | 13 | ||
| 14 | - @kalibro_restart | 14 | + @kalibro_processor_restart |
| 15 | Scenario: Should list the existing projects | 15 | Scenario: Should list the existing projects |
| 16 | Given I am a regular user | 16 | Given I am a regular user |
| 17 | And I am signed in | 17 | And I am signed in |
| @@ -20,7 +20,7 @@ Feature: Project listing | @@ -20,7 +20,7 @@ Feature: Project listing | ||
| 20 | Then the sample project should be there | 20 | Then the sample project should be there |
| 21 | And I should not see "To create new projects you must be logged in page." | 21 | And I should not see "To create new projects you must be logged in page." |
| 22 | 22 | ||
| 23 | - @kalibro_restart | 23 | + @kalibro_processor_restart |
| 24 | Scenario: Should show the existing project | 24 | Scenario: Should show the existing project |
| 25 | Given I am a regular user | 25 | Given I am a regular user |
| 26 | And I am signed in | 26 | And I am signed in |
features/project/show.feature
| @@ -3,7 +3,7 @@ Feature: Show Project | @@ -3,7 +3,7 @@ Feature: Show Project | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should be able to see each of them | 4 | I should be able to see each of them |
| 5 | 5 | ||
| 6 | -@kalibro_restart | 6 | +@kalibro_restart @kalibro_processor_restart |
| 7 | Scenario: Should not show the create repository link to user that doesn't own the project | 7 | Scenario: Should not show the create repository link to user that doesn't own the project |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I have a sample project | 9 | And I have a sample project |
| @@ -14,7 +14,7 @@ Scenario: Should not show the create repository link to user that doesn't own th | @@ -14,7 +14,7 @@ Scenario: Should not show the create repository link to user that doesn't own th | ||
| 14 | And I should not see Destroy project | 14 | And I should not see Destroy project |
| 15 | And I should not see Edit | 15 | And I should not see Edit |
| 16 | 16 | ||
| 17 | -@kalibro_restart | 17 | +@kalibro_processor_restart |
| 18 | Scenario: Should show the create repository link the project owner | 18 | Scenario: Should show the create repository link the project owner |
| 19 | Given I am a regular user | 19 | Given I am a regular user |
| 20 | And I am signed in | 20 | And I am signed in |
| @@ -23,13 +23,13 @@ Scenario: Should show the create repository link the project owner | @@ -23,13 +23,13 @@ Scenario: Should show the create repository link the project owner | ||
| 23 | Then I should see "New Repository" | 23 | Then I should see "New Repository" |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | -@kalibro_restart | 26 | +@kalibro_processor_restart |
| 27 | Scenario: Considering the project has no repositories | 27 | Scenario: Considering the project has no repositories |
| 28 | Given I have a sample project | 28 | Given I have a sample project |
| 29 | When I am at the Sample Project page | 29 | When I am at the Sample Project page |
| 30 | Then I should see "There are no repositories yet!" | 30 | Then I should see "There are no repositories yet!" |
| 31 | 31 | ||
| 32 | -@kalibro_restart | 32 | +@kalibro_restart @kalibro_processor_restart |
| 33 | Scenario: Considering the project has repositories | 33 | Scenario: Considering the project has repositories |
| 34 | Given I have a sample project | 34 | Given I have a sample project |
| 35 | And I have a sample configuration with native metrics | 35 | And I have a sample configuration with native metrics |
| @@ -37,7 +37,7 @@ Scenario: Considering the project has repositories | @@ -37,7 +37,7 @@ Scenario: Considering the project has repositories | ||
| 37 | When I am at the Sample Project page | 37 | When I am at the Sample Project page |
| 38 | Then I should not see There are no repositories yet! | 38 | Then I should not see There are no repositories yet! |
| 39 | 39 | ||
| 40 | -@kalibro_restart | 40 | +@kalibro_processor_restart |
| 41 | Scenario: Checking project contents | 41 | Scenario: Checking project contents |
| 42 | Given I have a sample project | 42 | Given I have a sample project |
| 43 | When I am at the Sample Project page | 43 | When I am at the Sample Project page |
features/repository/create.feature
| @@ -3,7 +3,7 @@ Feature: Repository Creation | @@ -3,7 +3,7 @@ Feature: Repository Creation | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should be able to create repositories | 4 | I should be able to create repositories |
| 5 | 5 | ||
| 6 | -@kalibro_restart @javascript | 6 | +@kalibro_restart @kalibro_processor_restart @javascript |
| 7 | Scenario: repository creation | 7 | Scenario: repository creation |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I am signed in | 9 | And I am signed in |
| @@ -20,7 +20,7 @@ Scenario: repository creation | @@ -20,7 +20,7 @@ Scenario: repository creation | ||
| 20 | When I press the Save button | 20 | When I press the Save button |
| 21 | Then I should see the saved repository's content | 21 | Then I should see the saved repository's content |
| 22 | 22 | ||
| 23 | -@kalibro_restart @javascript | 23 | +@kalibro_restart @kalibro_processor_restart @javascript |
| 24 | Scenario: repository creation blank validations | 24 | Scenario: repository creation blank validations |
| 25 | Given I am a regular user | 25 | Given I am a regular user |
| 26 | And I am signed in | 26 | And I am signed in |
| @@ -35,7 +35,7 @@ Scenario: repository creation blank validations | @@ -35,7 +35,7 @@ Scenario: repository creation blank validations | ||
| 35 | Then I should see "Name can't be blank" | 35 | Then I should see "Name can't be blank" |
| 36 | And I should see "Address can't be blank" | 36 | And I should see "Address can't be blank" |
| 37 | 37 | ||
| 38 | -@kalibro_restart @javascript | 38 | +@kalibro_restart @kalibro_processor_restart @javascript |
| 39 | Scenario: repository creation with name already taken | 39 | Scenario: repository creation with name already taken |
| 40 | Given I am a regular user | 40 | Given I am a regular user |
| 41 | And I am signed in | 41 | And I am signed in |
features/repository/delete.feature
| @@ -3,7 +3,7 @@ Feature: Project Deletion | @@ -3,7 +3,7 @@ Feature: Project Deletion | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | The system should have an interface to it | 4 | The system should have an interface to it |
| 5 | 5 | ||
| 6 | - @kalibro_restart | 6 | + @kalibro_restart @kalibro_processor_restart |
| 7 | Scenario: Should delete a project that I own | 7 | Scenario: Should delete a project that I own |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I am signed in | 9 | And I am signed in |
features/repository/edit.feature
| @@ -3,7 +3,7 @@ Feature: Repository Edit | @@ -3,7 +3,7 @@ Feature: Repository Edit | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should be able to edit my repositories | 4 | I should be able to edit my repositories |
| 5 | 5 | ||
| 6 | - @kalibro_restart | 6 | + @kalibro_restart @kalibro_processor_restart |
| 7 | Scenario: editing a repository successfully | 7 | Scenario: editing a repository successfully |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I am signed in | 9 | And I am signed in |
| @@ -25,7 +25,7 @@ Feature: Repository Edit | @@ -25,7 +25,7 @@ Feature: Repository Edit | ||
| 25 | And I should see "Weekly" | 25 | And I should see "Weekly" |
| 26 | And I should see "EU DataGrid Software License (EUDatagrid)" | 26 | And I should see "EU DataGrid Software License (EUDatagrid)" |
| 27 | 27 | ||
| 28 | - @kalibro_restart | 28 | + @kalibro_restart @kalibro_processor_restart |
| 29 | Scenario: editing a repository with blank fields | 29 | Scenario: editing a repository with blank fields |
| 30 | Given I am a regular user | 30 | Given I am a regular user |
| 31 | And I am signed in | 31 | And I am signed in |
| @@ -39,7 +39,7 @@ Feature: Repository Edit | @@ -39,7 +39,7 @@ Feature: Repository Edit | ||
| 39 | Then I should see "Name can't be blank" | 39 | Then I should see "Name can't be blank" |
| 40 | And I should see "Address can't be blank" | 40 | And I should see "Address can't be blank" |
| 41 | 41 | ||
| 42 | - @kalibro_restart | 42 | + @kalibro_restart @kalibro_processor_restart |
| 43 | Scenario: editing a repository with already taken name | 43 | Scenario: editing a repository with already taken name |
| 44 | Given I am a regular user | 44 | Given I am a regular user |
| 45 | And I am signed in | 45 | And I am signed in |
features/repository/show/date_select.feature
| @@ -3,7 +3,7 @@ Feature: Date Select | @@ -3,7 +3,7 @@ Feature: Date Select | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should be able to select a specific date | 4 | I should be able to select a specific date |
| 5 | 5 | ||
| 6 | - @kalibro_restart @javascript | 6 | + @kalibro_restart @kalibro_processor_restart @javascript |
| 7 | Scenario: With a specific date selected | 7 | Scenario: With a specific date selected |
| 8 | Given I have a sample project | 8 | Given I have a sample project |
| 9 | And I have a sample configuration with native metrics | 9 | And I have a sample configuration with native metrics |
features/repository/show/metric_results.feature
| @@ -3,7 +3,7 @@ Feature: Repository metric results | @@ -3,7 +3,7 @@ Feature: Repository metric results | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should see the metric results table with its graphics | 4 | I should see the metric results table with its graphics |
| 5 | 5 | ||
| 6 | - @kalibro_restart @javascript | 6 | + @kalibro_restart @kalibro_processor_restart @javascript |
| 7 | Scenario: Should show the message when the graphic of the given metric have only a single point | 7 | Scenario: Should show the message when the graphic of the given metric have only a single point |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I am signed in | 9 | And I am signed in |
features/repository/show/modules_tree.feature
| @@ -3,7 +3,7 @@ Feature: Repository modules tree | @@ -3,7 +3,7 @@ Feature: Repository modules tree | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should see the tree and be able to navigate over it | 4 | I should see the tree and be able to navigate over it |
| 5 | 5 | ||
| 6 | - @kalibro_restart @javascript | 6 | + @kalibro_restart @kalibro_processor_restart @javascript |
| 7 | Scenario: Should show modules directories root when the process has been finished | 7 | Scenario: Should show modules directories root when the process has been finished |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I am signed in | 9 | And I am signed in |
| @@ -17,7 +17,7 @@ Feature: Repository modules tree | @@ -17,7 +17,7 @@ Feature: Repository modules tree | ||
| 17 | When I visit the repository show page | 17 | When I visit the repository show page |
| 18 | Then I should see the given module result | 18 | Then I should see the given module result |
| 19 | 19 | ||
| 20 | - @kalibro_restart @javascript | 20 | + @kalibro_restart @kalibro_processor_restart @javascript |
| 21 | Scenario: Should show children of root when the process has been finished | 21 | Scenario: Should show children of root when the process has been finished |
| 22 | Given I am a regular user | 22 | Given I am a regular user |
| 23 | And I am signed in | 23 | And I am signed in |
| @@ -36,7 +36,7 @@ Feature: Repository modules tree | @@ -36,7 +36,7 @@ Feature: Repository modules tree | ||
| 36 | And I should see "Granularity" | 36 | And I should see "Granularity" |
| 37 | And I should see "Grade" | 37 | And I should see "Grade" |
| 38 | 38 | ||
| 39 | - @kalibro_restart @javascript | 39 | + @kalibro_restart @kalibro_processor_restart @javascript |
| 40 | Scenario: Module navigation | 40 | Scenario: Module navigation |
| 41 | Given I am a regular user | 41 | Given I am a regular user |
| 42 | And I am signed in | 42 | And I am signed in |
features/repository/show/repository_info.feature
| @@ -3,7 +3,7 @@ Feature: Show Repository | @@ -3,7 +3,7 @@ Feature: Show Repository | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I should see it's informations | 4 | I should see it's informations |
| 5 | 5 | ||
| 6 | - @kalibro_restart @javascript | 6 | + @kalibro_restart @kalibro_processor_restart @javascript |
| 7 | Scenario: Testing the repository values | 7 | Scenario: Testing the repository values |
| 8 | Given I have a sample project | 8 | Given I have a sample project |
| 9 | And I have a sample configuration with native metrics | 9 | And I have a sample configuration with native metrics |
| @@ -19,7 +19,7 @@ Feature: Show Repository | @@ -19,7 +19,7 @@ Feature: Show Repository | ||
| 19 | And I should see "License" | 19 | And I should see "License" |
| 20 | And I should see the given repository's content | 20 | And I should see the given repository's content |
| 21 | 21 | ||
| 22 | - @kalibro_restart @javascript | 22 | + @kalibro_restart @kalibro_processor_restart @javascript |
| 23 | Scenario: With a ready processing and asking to reprocess | 23 | Scenario: With a ready processing and asking to reprocess |
| 24 | Given I am a regular user | 24 | Given I am a regular user |
| 25 | And I am signed in | 25 | And I am signed in |
| @@ -32,9 +32,12 @@ Feature: Show Repository | @@ -32,9 +32,12 @@ Feature: Show Repository | ||
| 32 | Then I should see the sample repository name | 32 | Then I should see the sample repository name |
| 33 | And I should see "State" | 33 | And I should see "State" |
| 34 | And I should see "Creation date" | 34 | And I should see "Creation date" |
| 35 | - And I should see "LOADING time" | 35 | + And I should see "PREPARING time" |
| 36 | And I should see "COLLECTING time" | 36 | And I should see "COLLECTING time" |
| 37 | - And I should see "ANALYZING time" | 37 | + And I should see "BUILDING time" |
| 38 | + And I should see "AGGREGATING time" | ||
| 39 | + And I should see "CALCULATING time" | ||
| 40 | + And I should see "INTERPRETATING time" | ||
| 38 | When I click the "Metric Results" h3 | 41 | When I click the "Metric Results" h3 |
| 39 | And I click the "Modules Tree" h3 | 42 | And I click the "Modules Tree" h3 |
| 40 | Then I should see "Metric" | 43 | Then I should see "Metric" |
| @@ -45,9 +48,9 @@ Feature: Show Repository | @@ -45,9 +48,9 @@ Feature: Show Repository | ||
| 45 | And I should see "Granularity" | 48 | And I should see "Granularity" |
| 46 | And I should see "Grade" | 49 | And I should see "Grade" |
| 47 | When I click the Reprocess link | 50 | When I click the Reprocess link |
| 48 | - Then I should see "LOADING" | 51 | + Then I should see "PREPARING" |
| 49 | 52 | ||
| 50 | - @kalibro_restart @javascript | 53 | + @kalibro_restart @kalibro_processor_restart @javascript |
| 51 | Scenario: Just after start to process | 54 | Scenario: Just after start to process |
| 52 | Given I am a regular user | 55 | Given I am a regular user |
| 53 | And I am signed in | 56 | And I am signed in |
| @@ -57,7 +60,7 @@ Feature: Show Repository | @@ -57,7 +60,7 @@ Feature: Show Repository | ||
| 57 | And I start to process that repository | 60 | And I start to process that repository |
| 58 | When I visit the repository show page | 61 | When I visit the repository show page |
| 59 | Then I should see the sample repository name | 62 | Then I should see the sample repository name |
| 60 | - And I should see "LOADING" | 63 | + And I should see "PREPARING" |
| 61 | And I should see "Address" | 64 | And I should see "Address" |
| 62 | And I should see "Configuration" | 65 | And I should see "Configuration" |
| 63 | And I should see "State" | 66 | And I should see "State" |
| @@ -67,5 +70,5 @@ Feature: Show Repository | @@ -67,5 +70,5 @@ Feature: Show Repository | ||
| 67 | When I click the "Modules Tree" h3 | 70 | When I click the "Modules Tree" h3 |
| 68 | Then I should see "Loading data. Please, wait." | 71 | Then I should see "Loading data. Please, wait." |
| 69 | And I wait for "75" seconds or until I see "COLLECTING" | 72 | And I wait for "75" seconds or until I see "COLLECTING" |
| 70 | - And I wait for "60" seconds or until I see "ANALYZING" | 73 | + And I wait for "60" seconds or until I see "AGGREGATING" |
| 71 | And I wait for "400" seconds or until I see "READY" | 74 | And I wait for "400" seconds or until I see "READY" |
features/step_definitions/repository_steps.rb
| @@ -6,7 +6,8 @@ Given(/^I have a sample configuration with native metrics$/) do | @@ -6,7 +6,8 @@ Given(/^I have a sample configuration with native metrics$/) do | ||
| 6 | {id: nil, | 6 | {id: nil, |
| 7 | metric: FactoryGirl.build(:loc), | 7 | metric: FactoryGirl.build(:loc), |
| 8 | reading_group_id: reading_group.id, | 8 | reading_group_id: reading_group.id, |
| 9 | - configuration_id: @configuration.id}) | 9 | + configuration_id: @configuration.id, |
| 10 | + code: 'loc'}) | ||
| 10 | range = FactoryGirl.build(:mezuro_range, {id: nil, reading_id: reading.id, beginning: '-INF', :end => 'INF', metric_configuration_id: metric_configuration.id}) | 11 | range = FactoryGirl.build(:mezuro_range, {id: nil, reading_id: reading.id, beginning: '-INF', :end => 'INF', metric_configuration_id: metric_configuration.id}) |
| 11 | range.save | 12 | range.save |
| 12 | end | 13 | end |
features/users/user_projects.feature
| @@ -3,7 +3,7 @@ Feature: User projects list | @@ -3,7 +3,7 @@ Feature: User projects list | ||
| 3 | As a regular user | 3 | As a regular user |
| 4 | I want to have a page with a list of my projects | 4 | I want to have a page with a list of my projects |
| 5 | 5 | ||
| 6 | - @kalibro_restart | 6 | + @kalibro_processor_restart |
| 7 | Scenario: with current password | 7 | Scenario: with current password |
| 8 | Given I am a regular user | 8 | Given I am a regular user |
| 9 | And I own a sample project | 9 | And I own a sample project |