Chris Roberts
ac8978eee3
Generated proto updates
2022-04-25 12:26:05 -05:00
sophia
183ceb85eb
go generate
2022-04-25 12:26:03 -05:00
sophia
9002131281
go generate
2022-04-25 12:26:03 -05:00
Paul Hinze
3df9c55a5c
Service box tests
...
Continuing with the error messages audit, this service came out the same
as the basis one - I haven't yet found any tests I can write that
expose errors we would want to enhance. In the meantime, more tests are
good though!
2022-04-25 12:26:03 -05:00
Paul Hinze
61d2c80813
Tests for the basis service
...
Filling these out as a part of a sweep to ensure we return decent error
messages from our GRPC services.
For this service I didn't come up with any error condition that
warranted changing the code yet. The get -> notfound case seems to be
the main one and the pass through error object seems AOK here.
2022-04-25 12:26:03 -05:00
Chris Roberts
9f3241a5b5
Generated updates
2022-04-25 12:26:01 -05:00
sophia
7aaeaf2e46
Update protos
2022-04-25 12:25:57 -05:00
sophia
a63184ef5f
Test target find and duplicate upserts
2022-04-25 12:25:55 -05:00
sophia
04095d2132
Find targets based on name and project
2022-04-25 12:25:55 -05:00
sophia
eeafbe4954
Search for project and target before upserting
2022-04-25 12:25:55 -05:00
sophia
a99bfc65f9
AUse version constraints to find boxes
2022-04-25 12:25:54 -05:00
sophia
e77cb42171
Add tests
2022-04-25 12:25:54 -05:00
sophia
9d01b2c60e
Add endpoint for finding boxes
2022-04-25 12:25:54 -05:00
sophia
63eb76bd60
Find boxes by name, provider, version
2022-04-25 12:25:54 -05:00
sophia
62d7324bfc
go generate
2022-04-25 12:25:52 -05:00
sophia
a8ce240049
Add tests for box
2022-04-25 12:25:52 -05:00
sophia
5fc9dd94fe
Implement box crub endpoints
2022-04-25 12:25:52 -05:00
sophia
93e94186ba
Add box endpoints
2022-04-25 12:25:52 -05:00
sophia
3e3ab869d4
Add box to bolt
2022-04-25 12:25:52 -05:00
sophia
d7737effbf
Add id to box
2022-04-25 12:25:52 -05:00
sophia
1c27a57213
Use Box as part of machine proto
2022-04-25 12:25:51 -05:00
sophia
ed76183470
Add Box proto message
2022-04-25 12:25:51 -05:00
sophia
92d7c7b291
go generate
2022-04-25 12:24:48 -05:00
Chris Roberts
be4bbe902f
Generated proto updates
2022-04-25 12:24:46 -05:00
sophia
d75f76edf7
Prune old jobs as part of vagrant server clean ups
2022-04-25 12:24:40 -05:00
sophia
b2cce38f48
Add rpc endpoint to prune out old jobs
2022-04-25 12:24:40 -05:00
sophia
57474ac8c8
Periodically prune old jobs from bolt
2022-04-25 12:24:40 -05:00
sophia
2991810e0c
Seperate pruning jobs from memdb and bolt
...
only prune out old queued jobs in memdb
2022-04-25 12:24:40 -05:00
sophia
21c926523f
Count all the entries in jobs bucket
2022-04-25 12:24:40 -05:00
sophia
63dcc9fbf3
Save point: run prune in background
2022-04-25 12:24:40 -05:00
sophia
4205d0e444
Prune old jobs from state
2022-04-25 12:24:40 -05:00
sophia
772e786eee
Import Waypoint state pruning code
...
ref: b333b059a0/internal/server/singleprocess/state/prune.go
b333b059a0/internal/server/singleprocess/state/prune_test.go
4f71748610/internal/server/singleprocess/prune.go
Squash: import prune
2022-04-25 12:24:40 -05:00
sophia
f5fe88de15
Add tests for target
2022-04-25 12:24:39 -05:00
sophia
72225abc28
Add test for basis state
2022-04-25 12:24:39 -05:00
sophia
b30bbcb13a
Don't check for 'found' in basis/project/target query results
2022-04-25 12:24:39 -05:00
sophia
bb336592ea
Remove 'found' from basis/project/target query results
2022-04-25 12:24:39 -05:00
Chris Roberts
c1bbc7284b
Generated proto updates
2022-04-25 12:24:35 -05:00
Chris Roberts
fdfa6f221e
Add disable new line to message proto
2022-04-25 12:24:35 -05:00
sophia
ea87b6824d
Upgrade bolt to bbolt
...
boltdb/bolt is no longer a maintained project. bbolt is the CoreOS
fork that the author of boltdb suggests using as a replacement.
2022-04-25 12:24:34 -05:00
Chris Roberts
df2488e508
Set uuid value on target if unset
2022-04-25 12:24:32 -05:00
Chris Roberts
aaf0ae8504
Generated proto updates
2022-04-25 12:24:31 -05:00
Chris Roberts
097c4547db
Support target lookups via uuid
2022-04-25 12:24:31 -05:00
Chris Roberts
003b06502c
Set provider within target
2022-04-25 12:24:31 -05:00
sophia
f103797592
go generate .
2022-04-25 12:24:27 -05:00
sophia
a5445b708e
go generate
2022-04-25 12:24:26 -05:00
sophia
ea313d1291
Implement service endpoint to delete target
2022-04-25 12:24:25 -05:00
sophia
040f02e60d
Add proto to delete target
2022-04-25 12:24:25 -05:00
Chris Roberts
378019f014
Generated proto updates
2022-04-25 12:24:25 -05:00
Chris Roberts
e9c3494778
Remove path requirement from basis and project in state
2022-04-25 12:24:23 -05:00
Chris Roberts
cad5a7f717
Generated proto update
2022-04-25 12:24:21 -05:00