Commit Graph

6 Commits

Author SHA1 Message Date
Giri Dandu 58ad5ba062 Updated after review comments.
- Fixes #163
2015-05-07 19:10:48 -04:00
Giri Dandu 90584ef1a4 Merge branch 'master' into issue-163-uat-artifact-for-deploydb 2015-05-06 15:49:27 -04:00
Giri Dandu b7366a00dd For UAT artifact, we need to remove the existing artifact, deplopyments and flow.
This allows running of UAT artifact in an existing long running environemts
  - Fixes #163
2015-05-05 12:15:47 -04:00
Mahesh V Kelkar ac04cc2f44 Allow Models-config to change (configReload) while deployments are in progress
- Added ModelConfig model, DB table, etc to keep track of old configs.

- Added checksum calculations to keep track of each configReload
  iteration. This calculation reads all the directories and files
  in a deterministic order and computes checksum, which should remain
  same for given config on any platform.

- The checksum is stored in the DeployDB app object as well Flow object
  in order to associate them with the given iteration of config.

- On the subsequent Flow/Deployment transitions, if checksum from the
  Flow matches with that in the App object, then in-memory (i.e. registry)
  Model objects are used. Otherwise Model objects are read from the
  ModelConfig objects.

- In loadConfigModels, moved code repetitions such as loading from
  string, inserting into registry, checksum calculations, etc.
  to common function

- Added cucumber and spock tests to validate the code.

References #126
2015-04-02 15:58:58 -04:00
Mahesh V Kelkar 8dd3f44135 Merge branch 'master' into issues/48-update-deployment
Conflicts:
	src/main/groovy/deploydb/DeployDBApp.groovy
	src/main/groovy/deploydb/models/Deployment.groovy
2015-03-02 15:24:57 -05:00
Giri Dandu 27633e6399 Add spock test for Flow model
-Fixes #68
2015-03-02 11:05:02 -05:00