Jim
980a55a4e3
Added DeleteScope() with tests and TestVerifyOplog() for easier testing ( #49 )
2020-05-18 17:51:09 -04:00
Michael Gaffney
8d7f24268c
Return url of test database ( #48 )
...
It is helpful to connect to a database when tests have failed.
2020-05-12 15:49:37 -04:00
Jim
c04c73453f
refactor Update/Delete to return the number of rows affected. ( #46 )
2020-05-12 11:57:28 -04:00
Jim
61ca88dac9
refactor to use db.New() and clean up error msgs ( #45 )
2020-05-12 06:51:02 -04:00
Jeff Mitchell
062ce6079f
Create dev org in database ( #41 )
...
These changes create a dev org in the database on startup.
They also plumb through a dev-org-id flag that allows specifying a chosen org ID in dev mode.
The logic will allow us to let people specify a default org ID in the config file too, although currently that's not enabled.
Several other improvements were made as well:
* Consolidation of some code from across the server commands
* Plumbing shutdownch through so we can use it for canceling contexts during startup
2020-05-11 17:03:23 -04:00
Jeff Mitchell
670abaed88
Rename GormReadWriter -> Db
2020-05-11 16:54:05 -04:00
Jim
ee4a0d3f45
refactor lookups so we can easily check for not found and do the "right" thing in the repos ( #42 )
2020-05-11 16:21:09 -04:00
Michael Gaffney
98cd37da97
Rename test files to match the name of the file they test ( #43 )
...
Rename test files to follow the convention of 'foo.go' and
'foo_test.go'.
2020-05-11 16:01:49 -04:00
Jim
cd74d7f0ef
refactor ClonableResource to just be a clonable interface ( #40 )
2020-05-11 14:11:21 -04:00
Jeff Mitchell
7f2aa5ca8f
Add httpfs DB migrations and generate the input ( #35 )
2020-05-11 12:42:10 -04:00
Jim
bd5ddea6e4
refactor clonable to not rely on the resource interface ( #36 )
2020-05-11 10:31:15 -04:00
Jim
8a5197e39e
implement schema, store and repository for IAM scopes of organization and project
2020-05-08 11:36:28 -04:00