Matthew Heon
3962d10bd4
Fix gofmt and lint
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #184
Approved by: baude
2018-02-12 14:28:07 +00:00
Matthew Heon
4f225b47c9
Refactor Pod to use a Config struct
...
This allows us to JSON it and stuff it in the DB - previously,
all pod fields were private, so JSON couldn't encode them. This
allows us to keep all pod fields private by having a substruct
with public fields.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #184
Approved by: baude
2018-02-12 14:28:07 +00:00
Matthew Heon
b4cdc27b31
Add implementation for BoltDB-backed state
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #184
Approved by: baude
2018-02-12 14:28:07 +00:00
Matthew Heon
86d549f2cd
Fix gofmt and lint
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
19840e0b3d
Finish unit tests for pods
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
4ecebf20b4
Rework state tests to avoid boilerplate. Begin adding pod tests.
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
54e258bfde
Convert remaining state tests to new style
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00
Matthew Heon
0ae9097b32
Fix gofmt
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00
Matthew Heon
67b6c132d8
Modify unit tests for state to run on all state implementations
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00