Commit Graph

493 Commits

Author SHA1 Message Date
GiriDandu fc622c687c Merge pull request #98 from maheshkelkar/issues/77-location-new-get-apis
Return location header in created response and implemented API for promotion results
2015-03-11 16:39:13 -04:00
Mahesh V Kelkar 17b348da99 Removed temp variable in the location URL computation
Based on the feedback comments

References #77 and #98
2015-03-11 16:26:16 -04:00
Mahesh V Kelkar 2bda99e5be Merge branch 'master' into issues/77-location-new-get-apis 2015-03-11 11:24:48 -04:00
maheshkelkar 778aa08623 Merge pull request #97 from GiriDandu/issue-74-webhook-for-promotion-completed
Add support for webhook for promotion completed
2015-03-11 11:22:32 -04:00
Giri Dandu cb49d2f223 Update after code review comments
- Fixes #74
2015-03-11 11:02:09 -04:00
Mahesh V Kelkar b3942072a0 Return location header in created response and implemented new API for promotion results
Location header will be added to artifact and promotion result created response. Other
REST APIs updated as defined in issue 95

References #77
2015-03-11 10:07:41 -04:00
GiriDandu 21918a6e1c Merge pull request #96 from maheshkelkar/issues/95-promo-results-get-api
Define REST API to GET results of a promotion assoc with the deployment
2015-03-11 09:54:12 -04:00
Mahesh V Kelkar b060e69bed Fixed errors in description of the deployment updating REST APIs
References #95 and #96
2015-03-11 09:31:04 -04:00
Giri Dandu baacd32184 Add support for webhook for promotion completed
- Refactor the code to handle deployment and promotion in a webhook object
 - Add cucumber tests for both success and failure
 - Fixes #74
2015-03-10 18:58:16 -04:00
Mahesh V Kelkar 2b9e675460 Define REST API to GET Results of a promotion associated with the deployment
References #95
2015-03-10 16:28:12 -04:00
maheshkelkar f48322e606 Merge pull request #94 from maheshkelkar/issues/90-test-deploydb-in-aws
Setup flyway object in the deploydb app
2015-03-10 13:07:24 -04:00
Mahesh V Kelkar ea078a4ce8 Setup flyway object in the deploydb app
References #90
2015-03-10 10:45:12 -04:00
GiriDandu 072b3a5807 Merge pull request #93 from maheshkelkar/issues/45-load-models-cli
Added configDirectory parameter to load yaml config during launch
2015-03-10 09:44:10 -04:00
Mahesh V Kelkar 3d9312ee38 Moved common code in loadConfigModels in WorkFlow object to a closure
Updated based on review comments

References #45 and #93
2015-03-10 09:34:43 -04:00
Mahesh V Kelkar 94c79bb48f Merge branch 'master' into issues/45-load-models-cli
Conflicts:
	src/main/groovy/deploydb/DeployDBApp.groovy
	src/main/groovy/deploydb/WorkFlow.groovy
2015-03-09 22:31:24 -04:00
Mahesh V Kelkar db041e3fd2 Added test config files to load config into models during deploydb init
References #45
2015-03-09 18:43:39 -04:00
Mahesh V Kelkar 729ce7ccc2 Added configDirectory parameter to load yaml config during launch
Added a new parameter, iterating through directories and loading configuration,
configuration validation and sanitization, etc

References #45
2015-03-09 18:40:15 -04:00
R. Tyler Croy 5c023bc81b Update the REST API documentation 2015-03-09 10:40:46 -07:00
R. Tyler Croy d25ab9b8f5 Rename the promotion result creation .feature file to make more sense 2015-03-09 10:38:45 -07:00
R. Tyler Croy 8076bc3c5e Merge pull request #89 from GiriDandu/issue-73-webhook-for-deployment-completed
Issue 73 webhook for deployment completed
2015-03-09 10:37:01 -07:00
Giri Dandu 76020d6619 Add cucumber test for environment based webhook for deployment completed
- Refactor the path extraction from webhook and environment configuration in
     feature file
   - Fixes 73
2015-03-09 12:24:40 -04:00
Giri Dandu 807a20868c Add support for deployment completed webhook
- Fixes #73
2015-03-09 08:57:35 -04:00
GiriDandu 77d5d0bdbf Merge pull request #88 from GiriDandu/issue-72-webhook-for-deployment-started
Add support for deployment started webhook notification
2015-03-06 18:28:42 -05:00
Giri Dandu 5721502e19 Update after code review comments.
- Remove the cascaded ternary for readablity and repalce it with
    if statement
  - Fixes #72
2015-03-06 18:15:32 -05:00
Giri Dandu bf69c07291 Add support for notifies deployment started webhook.
- Updated the cucumber tests
 - Fixes #72
2015-03-06 15:26:17 -05:00
maheshkelkar 1522fa6eef Merge pull request #87 from GiriDandu/issue-71-webhook-for-deployment-created
Issue 71 webhook for deployment created
2015-03-06 14:07:19 -05:00
Giri Dandu e3b3b8385d Update after next set of code reivew comments
- Fixes #71
2015-03-06 12:39:44 -05:00
Giri Dandu ef2185560d Update after code review comments
- Fixes #71
2015-03-06 09:42:03 -05:00
Giri Dandu d06cf5d291 Add support for environment based webhooks
- Fixes #71
2015-03-05 19:21:40 -05:00
Giri Dandu c2a24e8e20 Merge branch 'master' of git://github.com/lookout/deploydb into issue-71-webhook-for-deployment-created
Conflicts:
	docs/html5/restapi/report.js
	src/cucumber/groovy/deploydb/cucumber/AppHelper.groovy
	src/cucumber/groovy/deploydb/cucumber/StubAppRunner.groovy
	src/cucumber/groovy/step_definitions/ServiceSteps.groovy
	src/main/groovy/deploydb/DeployDBApp.groovy
	src/main/groovy/deploydb/models/Deployment.groovy
	src/main/groovy/deploydb/resources/ArtifactResource.groovy
	src/main/groovy/deploydb/resources/DeploymentResource.groovy
	src/test/groovy/deploydb/resources/ArtifactResourceSpec.groovy
2015-03-05 17:41:08 -05:00
GiriDandu 3eb0d314da Merge pull request #86 from maheshkelkar/issues/83-add-workflows
Added WorkFlow object to piece all the objects together
2015-03-05 14:12:07 -05:00
Giri Dandu 34616dc809 Set the configured URI of the feature file in TestWebhookServer's RequestWebhookObject
- Fixes #71
2015-03-05 13:49:27 -05:00
Mahesh V Kelkar d313ac3002 Fixed the spock tests for the Artifact and Deployment Resource Spec
References #83 and #86
2015-03-05 13:28:21 -05:00
Mahesh V Kelkar 523c29ef7c Changed variables names, comments, dead code in WorkFlow object
Updated after feedback comments

References #83 and #86
2015-03-05 12:14:26 -05:00
Mahesh V Kelkar bce29d0bc7 Added WorkFlow object to piece all the objects together
WorkFlow contains all the internal workflow documented

References #83
2015-03-05 10:08:34 -05:00
Giri Dandu 253cb8f6ed Add missing file
- Fixes #71
2015-03-04 17:13:39 -05:00
Giri Dandu 63df8014e7 Code refactor in TestWebhookServer
- Make the models consistent - RequestWebhookObject and
   ResponseWebhookObject
 - Fixes #71
2015-03-04 17:12:18 -05:00
maheshkelkar 7dafe16156 Merge pull request #78 from GiriDandu/issue-66-model-pipeline
Issue 66 model pipeline
2015-03-04 13:03:26 -05:00
Giri Dandu 910d82c6ca Merge remote-tracking branch 'upstream/master' into issue-71-webhook-for-deployment-created
Conflicts:
	src/main/groovy/deploydb/resources/DeploymentResource.groovy
2015-03-04 12:17:21 -05:00
Giri Dandu 4833306e3d Merge branch 'master' into issue-66-model-pipeline
Conflicts:
	docs/html5/restapi/report.js
2015-03-04 11:23:59 -05:00
Giri Dandu 0921cd915c Update after code review comments
- Make the pipeline step definitions text consistent with rest of the models
  - Fixes #66
2015-03-04 11:13:38 -05:00
R. Tyler Croy a860427d64 Merge pull request #84 from maheshkelkar/issues/82-add-prom-stat-to-dep
Add promotion results, received via REST API, to deployment
2015-03-04 07:43:29 -08:00
Giri Dandu 9ab0581860 Fix the build issue and add wait step for webhook
- Fixes #71
2015-03-04 09:01:17 -05:00
Giri Dandu 6df08ca92b Merge branch 'master' of git://github.com/lookout/deploydb into issue-71-webhook-for-deployment-created
Conflicts:
	src/main/groovy/deploydb/DeployDBApp.groovy
	src/main/groovy/deploydb/mappers/DeploymentMapper.groovy
	src/main/groovy/deploydb/models/Deployment.groovy
2015-03-04 08:28:38 -05:00
Giri Dandu cf88e830f6 Update after code review
- Upated cucumber test to have no promotions for environemt
 - Fix the indentation and changed the directory name to lowercase
 - Fixes #66
2015-03-03 23:57:25 -05:00
Giri Dandu 5976465a66 Add support for deployment created webhook.
- Lot of scafloding code in webhook manager
 - Add/refactor WebHookTestServer lot of code for end to end testing
 - We need this code to be refactored again once the latest code from issue #48 is merged
 - Fixes #71
2015-03-03 16:45:02 -05:00
Mahesh V Kelkar 83482b3919 Use contains instead of containsAll for lookup in StatusTransition Set
References #82, #84
2015-03-03 16:37:28 -05:00
Mahesh V Kelkar 66d67256b7 Moved the StatusTransitionPairs to Deployment and PromotionResult classes
References #82, #84
2015-03-03 16:25:24 -05:00
Mahesh V Kelkar f9375afa9a Add promotion results, received via REST API, to deployment
The issue 19 implemented the REST APIs and this code processes
the promotion status updates

References #82.
2015-03-03 15:31:19 -05:00
R. Tyler Croy 6b39d1d083 Merge pull request #80 from maheshkelkar/issues/48-update-deployment
Add service, promotionResults SET, Status to Deployment
2015-03-03 12:13:15 -08:00