Commit graph

11 commits

Author SHA1 Message Date
Brad Rydzewski
5660634c29 refactor datastore structure for consistency 2015-04-30 21:08:42 -07:00
Daniel Oliveira
24a0d15281 solved SetBuildTask() test, properly populating Tasks 2015-04-27 12:34:33 -06:00
Daniel Oliveira
987e85f261 About this commit:
1. server/builds.go:92 used SetStatus(). Replaced with SetBuildStatus().
2. Added a index check in SetBuildTask() and return an error in case the tasks number is > than build.tasks size.
2015-04-23 13:39:36 -06:00
Daniel Oliveira
4edf385d1c About this commit:
1. server/builds.go:92 used SetStatus(). Replaced with SetBuildStatus().
2. Added a index check in SetBuildTask() and return an error in case the tasks number is > than build.tasks size.
2015-04-23 12:15:17 -06:00
Daniel Oliveira
f74ca63359 Disabled SetBuildTask() test until we get the nil ptr crash addressed 2015-04-23 10:04:31 -06:00
Daniel Oliveira
d13c1caebf About this commit:
1. server/builds.go:92 uses SetStatus().
2. The other APIs we talked about: Status(), StatusList(), we were able to move out.
3. The repo_del_test.go code merge into repo_test.go
4. Unit tests for the other build APIs added.
   - We are facing a crash in: github.com/drone/drone/datastore/bolt.(*DB).SetBuildTask(0xc208056080, 0x5e15d0, 0x15, 0x1, 0xc208036940, 0x0, 0x0)
     which seems to be related to the note in: build.go:207 (// TODO check index to prevent nil pointer / panic)
5. With these new tests we get over 86% plus test cover for bolt package.
2015-04-22 19:49:16 -06:00
Brad Rydzewski
0c3f9e5bde REST cleanup. Idiomatic naming of datastore funcs 2015-04-14 22:04:38 -07:00
Brad Rydzewski
ab3df4bd65 added some initial code for build list. will revisit. 2015-04-10 23:11:41 -07:00
Brad Rydzewski
087f92f41f tokens, last build 2015-04-10 22:22:55 -07:00
Ben Schumacher
7bff8b3185 Add sequencing logic into the InsertBuild and test 2015-04-10 10:14:02 -06:00
Brad Rydzewski
d9fd23a6df experimental branch. playing around with boltdb 2015-04-07 01:20:55 -07:00