20 Apr, 2016
1 commit
-
Unit tests cannot expects that models will always be fetched. But to make sure things are still well tested, verify the existence of a configuration, project and repository in the homepage feature.
18 Apr, 2016
2 commits
-
Signed-off-by: Heitor Reis <marcheing@gmail.com>
16 Apr, 2016
1 commit
-
It makes it harder for an user to mistakenly add a metric to their script that will never work. Signed-off-by: Eduardo Araújo <duduktamg@hotmail.com>
15 Apr, 2016
1 commit
-
They were moved to mezuro.github.io Signed-off-by: Rafael Reggiani Manzo <rr.manzo@protonmail.com>
13 Apr, 2016
1 commit
-
The acceptance test has been refactored accordingly and got more extended to untested features.
11 Apr, 2016
2 commits
-
The repository/notify_push feature was making post request directly using Rack::Test methods, which is not optimal when we have Capybara to handle all the driver setup and flexibility for us. Change it to use Capybara methods, and fix all the steps accordingly. To make things easier, add some helper methods to deal with headers in different drivers. Also fix a small clarity issue in the notify_push unity tests that also have to set headers.
-
Ensure webhook requests are only accepted after proper verification of expected headers, repository address and branch, using the newly implemented library. To that effect, split up the logic to extract that information from requests to it's own class, and use it in the notify_push action. Also, add factories to make better testing of the notify_push action possible, such as a factory similar to a real request from Gitlab, and one for the Kalibro Client repository on Gitlab. Adding other hook providers should be quite a lot easier after this is applied.
30 Mar, 2016
1 commit
-
Update KalibroClient to version v4.0.0.alpha1 Signed-off-by: Daniel Miranda <danielkza2@gmail.com>
29 Jan, 2016
1 commit
-
This is expected to improve compatibility with reverse-proxies. Still, for full compatibility, regarding redirections, we still may need to set the default url options with the proxy host. Signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
20 Jan, 2016
8 commits
-
Test the path where the provided metric's type is different from the controller's one. Signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
-
We were not testing the case when the returned metric_configuration was from a different KalibroConfiguration. This prevents different ownership MetricConfiguration editions and false positives for ownership_authentication helper. Signed off by: Heitor Reis <marcheing@gmail.com>
-
There was no test case for failed_action when the action was neither create or update. The coverage was achieved through show action with invalid reading group id. Signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
-
It was missing proper mocks for the set_metric! before_action from BaseMetricConfigurationsController. Signed off by: Heitor Reis <marcheing@gmail.com>
-
All of it's code is covered by the concrete class tests, and the abstract class tests were nothing like real usage, and will be made totally obsolete with the refactor. Signed off by: Daniel Miranda <danielkza2@gmail.com>
-
- Fix usage of MetricConfiguration models converted directly to hashes as parameters. It didn't reflect how they are actually sent and omitted some necessary parameters like metric_collector_name and metric_name/metric_code, which are now passed. - Fix KalibroConfigurations not being searched by the controller methods. We must be sure they exist, and fail with a 404 if they don't instead of failing only in one of the ownership testing methods. - Update the expectations for cache cleaning to include both Hotspot and Tree MetricConfigurations Signed off by: Daniel Miranda <danielkza2@gmail.com>
-
Now it doesn't redirect to the tree metric configuration creation page after choosing a hotspot metric configuration Adds a bunch of code from removed commit ec4c3ef6f29aa34f3c58819df4f84725aff8bd60 that fixed the view after the modification introduced by 39bc97f568d6989ae98b1f5fd5452515ee54045f. It fixes the view to properly work with the path helper. This is a squash of two commits. Signed off by: Diego Araújo <diegoamc90@gmail.com> Signed off by: Heitor Reis <marcheing@gmail.com>
23 Nov, 2015
2 commits
-
Signed off by: Daniel Miranda <danielkza2@gmail.com>
-
Gitlab sends the 'X-Gitlab-Event' header for all the webhook requests. Verify it so we reduce the chance that robots call the hooks accidentally. Signed off by: Daniel Miranda <danielkza2@gmail.com>
19 Nov, 2015
1 commit
-
* Includes this action in the list of actions that do not need user authentication. Signed-off-by: Heitor Reis <marcheing@gmail.com>
18 Nov, 2015
1 commit
-
* Still needs the action implementation on repository controller Signed off by: Eduardo Araújo <duduktamg@hotmail.com>
09 Nov, 2015
1 commit
-
* Renamed ProjectAttributes' column hidden to public and inverted default values * Implemented Project#"public_or_owned_by_user" * All features now create ProjectAttributes after creating a Project * Implemented ProjectAttributes#project and ProjectAttributes#project= * Fix Project#attributes to return nil when there is no ProjectAttribute * Fixes #263 Signed off by: Diego Araújo <diegoamc90@gmail.com>
26 Oct, 2015
3 commits
-
The search and replace missed this. Now when a new CompoundMetriConfiguration gets created or updated the KalibroConfiguration show page gets a clear cache. Signed off by: Heitor Reis <marcheing@gmail.com>
-
The mock used was outdated regarding new KalibroClient API. Signed off by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
-
* Also created date_metric_result factory and started using it on the metric history unit test Signed off by: Diego Araújo <diegoamc90@gmail.com>
14 Aug, 2015
1 commit
05 Aug, 2015
1 commit
-
This reverts commit 2da8268dd7171366ea2f7dacbca292a87020a10c.
30 Jul, 2015
2 commits
-
Signed off by: Daniel Miranda <danielkza2@gmail.com>
08 Jul, 2015
1 commit
-
Fixed acceptance tests and removed project list selector from repository form Signed-off-by: Pedro Scocco <pedroscocco@gmail.com> Signed off by: Diego Araújo <diegoamc90@gmail.com>
06 Jul, 2015
1 commit
-
Signed off by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
22 Jun, 2015
1 commit
-
Actions new and create check if project_id was provided before trying to check the project ownership
17 Jun, 2015
2 commits
-
new and create action can be acessed both with or without a project. This enables to have repositories the two ways. The behaviour for the back had to change from going back to a specific project page. To the all projects pages since some repositories may not have a project_id. With the routes, many helpers had to get fixed together with acceptance tests steps (for this a new step was created in order to be able to create RepositoryAttributes). Finally the JS for repository state retrieval needed fixes since it builds the route withot any helper. Same thing for the JS that prevents infinite state queries. Signed off by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
16 Jun, 2015
2 commits
-
Signed-off-by: Pedro Scocco <pedroscocco@gmail.com>
-
Created javascript to show and hide the branch field. Created javascript to fetch the branches of a valid url of a git repository. New route repository_branches to communicate with kalibro_client. TODO: Fix acceptance tests. TODO: Handle errors on javascript. TODO: Extract javascript code to assets. TODO: Create a white list for the action branches of the repository's controller. Signed off by: Pedro Scocco <pedroscocco@gmail.com>
10 Jun, 2015
1 commit
08 Jun, 2015
1 commit
-
Generally rails will deal with this, but since we are already on a rescue it will not handle to avoid an infinite loop. So we need to deal with the error.
22 May, 2015
1 commit
-
group private. Signed off by: Heitor Reis <marcheing@gmail.com>