Commit Graph

493 Commits

Author SHA1 Message Date
Mahesh V Kelkar b3306537d3 Merge branch 'master' into issues/162-impl-manual-promotion
Conflicts:
	docs/html5/internals.html
	src/asciidoc/internals.ad
	src/test/groovy/deploydb/models/PromotionSpec.groovy
2015-04-22 09:00:06 -04:00
maheshkelkar 81d9e37b12 Merge pull request #160 from maheshkelkar/issues/159-manual-promotion
Added doc for manual promotion and added spock unit tests
2015-04-22 08:51:30 -04:00
Mahesh V Kelkar 80c2f789b8 Added PromotionImpl, ManualPromotionImpl, BasicPromotionImpl for manual promotion
This is documented as a part of issue 159

References #162
2015-04-21 16:12:55 -04:00
Mahesh V Kelkar bdb5a7bb3d Added TBD and issue number for all the missing pieces in documentation
References #159
2015-04-21 14:23:20 -04:00
Giri Dandu 5e2439f329 Update after code review comments.
- Make sure cucumber files belong to package deploydb.cucumber not package deploydb.
 - Fixes #145
2015-04-21 14:03:55 -04:00
Giri Dandu 23ef2facdd rootProject dependency not required to make the multi project gradle work
for deploydb
 - Fixes #145
2015-04-21 08:07:54 -04:00
Giri Dandu f7572388cf Merge branch 'master' into issue-145-spock-webhook-end-to-end 2015-04-20 14:22:27 -04:00
Giri Dandu 1ba91c75d6 Remove the tests from cukes that are covered by spock integration tests
- Fixes #145
2015-04-20 13:46:30 -04:00
Giri Dandu a0417a83f1 Add promotion and multiple environment webhook integration tests
- Fixes #145
2015-04-20 13:37:00 -04:00
Mahesh V Kelkar 1785930eeb Update internals.html for the changes in internals.ad
References #159
2015-04-20 10:01:39 -04:00
Mahesh V Kelkar 23d636a4db Merge remote-tracking branch 'upstream/master' into issues/159-manual-promotion 2015-04-20 09:55:43 -04:00
Mahesh V Kelkar bed32cedc9 Removed WebhookPromotion and JenkinsPromotion sections from DOC
Fixed Spock unit tests based on feedback comments

References #159
2015-04-20 09:54:23 -04:00
R. Tyler Croy b8fcd9e8c0 Merge pull request #158 from maheshkelkar/issues/157-ldap-authentication
Added support for LDAP authentication
2015-04-19 22:00:36 -07:00
Giri Dandu 982135de85 Add deployment webhook integration tests
- Fixes #145
2015-04-17 14:47:47 -04:00
Mahesh V Kelkar a9135f10e6 Updating missing internals.html file for manual promotion doc
References #159
2015-04-17 14:18:59 -04:00
Mahesh V Kelkar f0db65e7fa Added doc for manual promotion and added spock unit tests
References #159
2015-04-17 14:16:03 -04:00
Mahesh V Kelkar 26dc40f302 Disable the negative auth scenario for the timebeing
Investigating into what needs to be done to disable a negative
auth scenario in case authenitcation is disabled

References #157 and #158
2015-04-17 11:01:50 -04:00
Giri Dandu aa1da308a8 Initial commit to use the dropwizard-integtest in spock
- Cleanup StubAppRunner to do database migration before loading of models
 - Fixes #145
2015-04-16 17:24:35 -04:00
Mahesh V Kelkar 79edb89482 Simplified spock tests for LdapAuthenticator and added lot of javadocs
Added new cucumber step to enable basic HTTP auth credentials.

References #157 and #158
2015-04-16 16:29:51 -04:00
Giri Dandu 1b6bb48a5f Move the StubAppRunner to dropwizard-integtest, both cukes and spock will use this
- Fixes 145
2015-04-16 10:29:02 -04:00
Giri Dandu 36a6b0eac6 Initial checkin to move the TestWebhookServer out of cukes
- Move the TestWebhookServer under new subproject dropwizard-integtest
 - Use multi project gradle to fix the dependency issue of the dropwizard-integtest
 - Fixes 145
2015-04-15 16:51:39 -04:00
Mahesh V Kelkar b47715e782 Fix the exception raised by the absence of ldap configuration
References #157 and #158
2015-04-14 21:09:11 -04:00
Mahesh V Kelkar ed6880672e Added support for LDAP authentication
This can be used for authentication required for manual promotion or for all
REST apis in future

- Added LDAP client support using JNDI.
- Using dropwizard basic HTTP authenticator support for fetching the attributes from client.
- Added LDAP test server using unboundid's in-memory ldap server.
- Added spock and cucumber tests

References #157
2015-04-14 15:45:43 -04:00
R. Tyler Croy ecec786b7b Merge pull request #152 from maheshkelkar/doc-for-auth
Added doc for DeployDB authentication
2015-04-13 19:22:59 -07:00
R. Tyler Croy 27b5f2a658 Merge pull request #156 from GiriDandu/issue-155-out-of-order-webhooks-for-multiple-environments
In a flow, the deployments should be processed in the insertion order
2015-04-13 18:37:35 -07:00
Giri Dandu 90a6d1bfaa In a flow, the deployments should be processed in the insertion order
- Add cucumber scenarios to test the webhook execution order
  - Fixes #155
2015-04-13 18:28:11 -04:00
R. Tyler Croy 00ab2ddd73 Merge pull request #154 from GiriDandu/issue-153-creating-duplicate-should-return-409
Deploydb should gracefully handle error when create artifact is called twice for the same artifact
2015-04-10 13:14:46 -07:00
Giri Dandu f57e7a7541 Add spock test for test coverage
- Fixes 153
2015-04-10 15:28:41 -04:00
Giri Dandu 6878fcb6a5 Deploydb should gracefully handle error when create artifact is called twice
for the same artifact
  - Fixes #153
2015-04-10 15:05:05 -04:00
R. Tyler Croy 6cf305a1ad Merge pull request #149 from GiriDandu/issue-127-travis-testing-using-multiple-database-providers
Issue 127 travis testing using multiple database providers
2015-04-10 07:16:08 -07:00
Mahesh V Kelkar 9a811009fd Removed basic authentication section
References #152
2015-04-10 09:06:13 -04:00
Giri Dandu a75daf1df2 Travis can't deal with sudo comand in install. If sudo is there it
uses old infrastructure and they tests fail because of that. So
  - Remove the sudo and hence mysql 5.6.x
  - To make the cukes pass the test without 5.6, remove the
    timestamp precision in DDL and ignore the timestamp during
    model creation and cukes verification steps
  - fixes #127
2015-04-09 16:38:26 -04:00
Giri Dandu a8981f7a8a Travis supports only mysql 5.5 by default. 5.5 doesn't support
precision in timestamp, so we have to manually install the mysql
version 5.6.14
 - Fixes #127
2015-04-09 00:23:44 -04:00
Giri Dandu dcf517450e Precision paramter for timestamp is not working on travis mysql
- Fixes #127
2015-04-08 23:54:20 -04:00
Giri Dandu c36e4ff3a4 before_script in travis is not creating the database, so switching
to before_install
 - Fixes #127
2015-04-08 23:13:55 -04:00
Giri Dandu c126286b1f Merge branch 'master' into issue-127-travis-testing-using-multiple-database-providers
Conflicts:
	build.gradle
2015-04-08 15:06:05 -04:00
Giri Dandu 221246d2bf Make deploydb work with h2, postgresql and mysql db proviers
- Let the application specify created timestamp to avoid different
   db providers handling timestamps differently
 - Use order by id instead of createdAt to make it sequential retrival
   of model objects
 - Fixes #127
2015-04-08 13:50:39 -04:00
Mahesh V Kelkar 8dac2135bc Added doc for DeployDB authentication 2015-04-08 10:54:05 -04:00
Giri Dandu 6846e068d2 All the database providers can be tested but not all tests are passing for following
reasons
  - Timestamp mismatch for mysql
  - Oder in the list returns is not consistent for postgresql and h2
  - Fixes #127
2015-04-07 18:20:55 -04:00
R. Tyler Croy cdaf2ee063 Merge pull request #150 from rtyler/dropwizard-081
Upgrade to Dropwizard 0.8.1
2015-04-07 09:11:23 -07:00
R. Tyler Croy 01a3e54358 Merge pull request #151 from mbbx6spp/fix-gradle-dependencies
Fix Gradle JDBC driver dependencies to be runtime
2015-04-07 08:58:27 -07:00
Susan Potter 4184717c71 Fix Gradle JDBC driver dependencies to be runtime
It is generally bad practice to define JDBC or other dynamically loaded with
standard API to be required as compile time dependencies as the purpose of
these is to load them in at runtime and only rely on their generic API. When
you define a dependency like this as compile scope instead of runtime you
open yourself up to developers using MySQL, or H2 specific APIs without
realizing this dependency because the build will never catch it.
2015-04-07 10:34:27 -05:00
R. Tyler Croy 23aa811c2e Upgrade to Dropwizard 0.8.1
See the release notes, a good minor release which does address some of the
logging bugs we encountered with the 0.8.0 upgrade
    <https://github.com/dropwizard/dropwizard/blob/master/docs/source/about/release-notes.rst>
2015-04-07 08:05:18 -07:00
Giri Dandu 1a17588973 Fix the jdbc connection for postgresql and mysql and create databases
before the deploydb is started
 - Fixes #127
2015-04-07 08:13:15 -04:00
Giri Dandu ab8262e7ca Use the correct postgres file
- Fixes #127
2015-04-06 19:11:54 -04:00
Giri Dandu 7c4bed703d Sigh. Add renamed file
- Fixes #127
2015-04-06 19:03:05 -04:00
Giri Dandu 0e40f12e15 Fix the mysql yml file name
- Fixes #127
2015-04-06 18:59:07 -04:00
Giri Dandu 496c0c1ac7 Test deploydb using different database providers using travis.
- Fixes #127
2015-04-06 18:52:48 -04:00
GiriDandu beeac6fc29 Merge pull request #148 from GiriDandu/issue-108-code-cleanup
Issue 108 code cleanup
2015-04-06 18:04:18 -04:00
Giri Dandu a22015d6e8 Merge remote-tracking branch 'upstream/master' into issue-108-code-cleanup
Conflicts:
	src/cucumber/groovy/deploydb/cucumber/StubAppRunner.groovy
	src/cucumber/groovy/step_definitions/FlowSteps.groovy
	src/cucumber/groovy/step_definitions/WebhookSteps.groovy
	src/main/groovy/deploydb/WorkFlow.groovy
2015-04-06 14:26:20 -04:00