summaryrefslogtreecommitdiff
path: root/spec/services/create_deployment_service_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix more testsLin Jen-Shin2017-08-111-0/+4
|
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-271-1/+1
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Instead of adding master, stub_not_protect_default_branchLin Jen-Shin2017-07-181-1/+3
|
* Update tests due to permission changesLin Jen-Shin2017-07-041-1/+1
|
* Expand with all the variables so that things likeLin Jen-Shin2017-06-211-1/+20
| | | | | CI_ENVIRONMENT_SLUG is also available. It won't be recursive because we're not putting this value in the variables.
* Move expanded_environment_url to CreateDeploymentServiceLin Jen-Shin2017-06-211-0/+36
| | | | Because that's the only place we need it.
* Correct RSpec/SingleLineHook cop offensesRobert Speicher2017-06-141-1/+3
|
* Only deploy if environment exists; Update tests accordingly25680-CI_ENVIRONMENT_URLLin Jen-Shin2017-06-031-108/+70
|
* Fix other use of CreateDeploymentService and makeLin Jen-Shin2017-06-021-1/+0
| | | | | it a bit more robust against missing options, which we did guard on for some cases.
* Simplify CreateDeploymentService so that it usesLin Jen-Shin2017-06-011-52/+33
| | | | methods directly from job, avoid duplicating the works.
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Futher rename the CI variableszj-rename-ci-varsZ.J. van de Weg2017-03-161-4/+4
|
* Enable Style/MultilineHashBraceLayoutDouwe Maan2017-02-231-4/+7
|
* Prefer using `project.add_developer` in specsGrzegorz Bizon2017-02-151-1/+1
|
* Fix envs and deploys specs related to build retryGrzegorz Bizon2017-02-131-1/+5
|
* Merge remote-tracking branch 'origin/master' into 22191-delete-dynamic-envs-mr22191-delete-dynamic-envs-mrKamil Trzcinski2016-10-181-3/+3
|\
| * Add a be_like_time matcher and use it in specsNick Thomas2016-10-171-3/+3
| | | | | | | | | | | | The amount of precision times have in databases is variable, so we need tolerances when comparing in specs. It's better to have the tolerance defined in one place than several.
* | Fix environments specsKamil Trzcinski2016-10-171-3/+5
| |
* | Work on specsKamil Trzcinski2016-10-171-1/+60
|/
* Check if project exists before creating deploymentGrzegorz Bizon2016-10-141-3/+14
|
* Fix `CreateDeploymentService` spec.Timothy Andrew2016-09-211-1/+4
| | | | | | | | | | | | | 1. The spec tests that if: - The merge request is merged - The target branch is deployed to production - The `first_deployed_to_production_at` metric is `nil` (for some reason) - The target branch is deployed to production again - The `first_deployed_to_production_at` metric stays as `nil` (and is not overwritten). 2. Failure only on MySQL due to some datetime weirdness.
* Fix build.Timothy Andrew2016-09-211-3/+3
|
* Fix spec failures.Timothy Andrew2016-09-201-3/+3
|
* Merge remote-tracking branch 'origin/master' into 21170-cycle-analyticsTimothy Andrew2016-09-201-3/+40
|\
| * Fix specs failuresreview-appsKamil Trzcinski2016-09-191-1/+1
| |
| * Update support for dynamic environmentsKamil Trzcinski2016-09-191-7/+14
| |
| * Verify expandability of variables defined as part of environmentKamil Trzcinski2016-09-191-1/+31
| |
* | Test all cycle analytics pre-calculation code.Timothy Andrew2016-09-191-0/+76
|/ | | | | | | | | | | | | All the code that pre-calculates metrics for use in the cycle analytics page. - Ci::Pipeline -> build start/finish - Ci::Pipeline#merge_requests - Issue -> record default metrics after save - MergeRequest -> record default metrics after save - Deployment -> Update "first_deployed_to_production_at" for MR metrics - Git Push -> Update "first commit mention" for issue metrics - Merge request create/update/refresh -> Update "merge requests closing issues"
* Fix creation of deployment on build that is retried, redeployed or rollbackfix-deployment-creation-on-build-retryKamil Trzcinski2016-07-161-0/+16
|
* Make `project_id` and `environment_id` nullableenvironments-and-deploymentsKamil Trzcinski2016-06-151-0/+2
| | | | | This is done to make belongs_to with required to properly validate association. Otherwise `ActiveRecord::StatementInvalid` is raised.
* Properly create a new deployment after build successKamil Trzcinski2016-06-141-4/+62
|
* Add specs for models and servicesKamil Trzcinski2016-06-141-0/+59