Philip O'Toole
3a8808a879
Start Nodes unit testing
10 months ago
Philip O'Toole
bd8297b6d7
Builds, but needs unit tests
10 months ago
Philip O'Toole
a106df55f9
New type for Nodes
...
Make the JSON response construction cleaner.
10 months ago
Philip O'Toole
25ace4b651
Close test port
10 months ago
Philip O'Toole
6c5bdf9f25
Remove obsolete comment
10 months ago
Philip O'Toole
667ca69640
Code to check for HTTP(S) servers
10 months ago
Philip O'Toole
3aa45c8f53
Minor clean-ups
10 months ago
Philip O'Toole
70d5e6de34
Check join and notify addresses are resolvable
10 months ago
Philip O'Toole
002973f787
Merge remote-tracking branch 'origin' into join-raft-port-only
10 months ago
Philip O'Toole
448f9530d7
Correct mTLS log message
10 months ago
Philip O'Toole
312d27778b
Remove obsolete Join and Notify HTTP unit tests
10 months ago
Philip O'Toole
e0825239a2
Merge remote-tracking branch 'origin' into join-raft-port-only
10 months ago
Philip O'Toole
cfd3a7f6a7
Some small changes related to new CORS support
10 months ago
Kai O'Reilly
f1d8fe6770
support accessing rqlite in browsers by setting appropriate Access-Control-Allow headers and handling OPTIONS requests
10 months ago
Philip O'Toole
16052d8020
Start removing HTTP join and notify code
11 months ago
Philip O'Toole
3172ce83cc
Remove obsolete test
1 year ago
Philip O'Toole
e050b9d05f
Always-on expvar and pprof
1 year ago
Philip O'Toole
67e062272b
Smaller chunk sizes restart a lot faster
1 year ago
Philip O'Toole
330492bc1b
More logging
1 year ago
Philip O'Toole
43525010b0
Log performance of chunker in HTTP layer
1 year ago
Philip O'Toole
a55ee4836c
Log how long HTTP load takes
1 year ago
Philip O'Toole
be6c59aac8
Fix comment
1 year ago
Philip O'Toole
4c41cfed8b
Some tweaks
1 year ago
Philip O'Toole
1cc49e7ba2
Load request can control chunking size
1 year ago
Philip O'Toole
1107690c52
Migrate HTTP layer to chunked loading
1 year ago
Philip O'Toole
5df129ff20
Remove no-longer supported command-line options
1 year ago
Philip O'Toole
62fd272897
Fix up logging
1 year ago
Philip O'Toole
2cec05cc80
If no key, return JSON blob unchanged
1 year ago
Philip O'Toole
cba9670c77
Support 'key' param on /status endpoint
1 year ago
Philip O'Toole
4a7ac2850f
rqlite doesn't (yet) support WAL mode SQLite data
1 year ago
Philip O'Toole
c23d3e60b1
Reuse existing consistency level
1 year ago
Philip O'Toole
cfd1fed4e8
go fmt
1 year ago
Philip O'Toole
992750d988
Update service.go
1 year ago
Philip O'Toole
333c7daeed
More HTTP instrumentation for failures
1 year ago
Philip O'Toole
6ab6faaca0
Add missing parenthesis
1 year ago
Philip O'Toole
c8c8617e3f
More HTTP-layer instrumentation
1 year ago
Philip O'Toole
a309f94799
Update service.go
1 year ago
Philip O'Toole
5950001490
Update service.go
1 year ago
Philip O'Toole
b1bdb52b9d
Update service.go
1 year ago
Philip O'Toole
1a7af225f2
Unit test ExecuteQuery
1 year ago
Philip O'Toole
7ee6036476
/db/request compiles and all existing tests pass
1 year ago
Philip O'Toole
2e140af463
Some unit tests of /db/request path
1 year ago
Philip O'Toole
8b7d3ea1f2
Start coding HTTP layer
1 year ago
Philip O'Toole
92a604c4ec
Move SQLite validity checks to db module
1 year ago
Philip O'Toole
57ca03014b
More integration and testing of Store readiness
1 year ago
Philip O'Toole
95a689b3cf
Some improvements thanks to ChatGPT 4
2 years ago
Philip O'Toole
8f17d125ec
Update request_parser.go
2 years ago
Philip O'Toole
4ddb59cf3a
Update request_parser.go
2 years ago
Philip O'Toole
25d0d39ed1
Fix bug spotted by ChatGPT 4.0!
2 years ago
Philip O'Toole
ff001bc5a8
Migrate to a Protos data model for Notify Requests
2 years ago
Philip O'Toole
a782513a11
Migrate to a join-request proto
2 years ago
Philip O'Toole
a97c803489
Protect against future changes
2 years ago
Philip O'Toole
7be34d23ca
Support handling of large numbers
...
Thanks to 706eb2b3f6
2 years ago
Philip O'Toole
fb0d8c5cf0
Remove superfluous comment
2 years ago
Philip O'Toole
c219027336
Fix parsing of nil named parameter values
2 years ago
Philip O'Toole
3e84139290
Default to mutual TLS off for node-to-node
2 years ago
Philip O'Toole
cb1b398f76
ABL
2 years ago
Philip O'Toole
68c7bc41b9
Remove deprecated functions
2 years ago
Philip O'Toole
3d31d22de6
Implement -http-verify-client
2 years ago
Philip O'Toole
d8982d044e
Consolidate TLS config creation
2 years ago
Philip O'Toole
de0d0f63ad
Fix HTTP no-verify of client certs
2 years ago
Philip O'Toole
c8231596ac
Use central TLS config creation
2 years ago
Philip O'Toole
9e1f6c0a76
tls -> rtls
2 years ago
Philip O'Toole
8225ff838c
Fix mutual TLS testing
...
All certs in chain needed to have ExtKeyUsageClientAuth set.
2 years ago
Philip O'Toole
6dbe180bff
Confirm everything works when verify=false
...
But this isn't affecting the HTTP server, so fails client verification.
HTTP TLS config getting complicated, feels like it needs a dedicated
config object now.
2 years ago
Philip O'Toole
7852b27dcb
mTLS unit tests
...
Client cert not trusted yet.
2 years ago
Philip O'Toole
05a7663a93
Actually enable HTTP client cert verification
2 years ago
Philip O'Toole
39259bca8a
Start mutual TLS testing
...
Lots of boilerplate moving from PEMs, to certs, to bytes. Factor it out.
2 years ago
Philip O'Toole
eab0fc60ee
Fix test
2 years ago
Philip O'Toole
5a7a2f3102
Start testing with on-the-fly certs
2 years ago
Philip O'Toole
828acadb0c
Move HTTP TLS testing to own file
2 years ago
Philip O'Toole
08fe787c0a
More queued write counters
2 years ago
Philip O'Toole
f6eefd1690
Close HTTP service on shutdown
2 years ago
Philip O'Toole
70ea78fd6c
More Queued Writes instrumentation
2 years ago
Philip O'Toole
8fd877b1d6
Fix typo in expvar variable name
2 years ago
Philip O'Toole
0702e39ace
Add ResetStats
2 years ago
Philip O'Toole
0b8fde1dfb
Log node address
2 years ago
Philip O'Toole
4b5987a085
Fix logic
2 years ago
Philip O'Toole
cf3fa8eedb
Clearer runQueue logic
2 years ago
Philip O'Toole
1877bcc7ff
Support keyed fetches of expvar information
2 years ago
Philip O'Toole
98575d727b
Start adding remote remove node
...
More testing, including unit testing, required.
2 years ago
Philip O'Toole
f9b46165f9
Comments
2 years ago
Philip O'Toole
038812b4cb
Use standard library redaction functionality
2 years ago
Philip O'Toole
9c68b13868
Better error from /nodes when Store is not open
2 years ago
Eng Zer Jun
5141eff5fc
test: use `T.TempDir` to create temporary test directory
...
This commit replaces `ioutil.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.
Prior to this commit, temporary directory created using `ioutil.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
defer func() {
if err := os.RemoveAll(dir); err != nil {
t.Fatal(err)
}
}
is also tedious, but `t.TempDir` handles this for us nicely.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2 years ago
Philip O'Toole
3a261ce16e
Unit test remote load error handling
2 years ago
Philip O'Toole
d6b8390658
Handle remote backup errors correctly
2 years ago
Philip O'Toole
65cd556549
Fix remote-load error handling
...
Error from remote node was being dropped.
2 years ago
Philip O'Toole
5a3c639164
Fix HTTP unit tests
2 years ago
Philip O'Toole
5f33bffa0f
More logging and resolution checks
2 years ago
Philip O'Toole
06e098e41a
Mostly better logging
2 years ago
Philip O'Toole
eee9541545
Merge remote-tracking branch 'origin' into resolve-notifier
2 years ago
Philip O'Toole
b0f17b86c7
Notified node checks address resolution
...
If a non-resolvable address is passed to the Store, and then Store then
adds that to the config, it can result in a cluster that seems to have
insufficient members (since the remote node can't be contacted). This
may trigger a new leader election.
2 years ago
Philip O'Toole
9d9ffba7e2
Restoring via follower should have same response
2 years ago
Philip O'Toole
b978e3857d
More HTTP-level testing of Load
2 years ago
Philip O'Toole
27587634c6
Hook in HTTP layer
2 years ago
Philip O'Toole
8a69aa53aa
HTTP-level unit testing of remote backup
2 years ago
Philip O'Toole
31bba4c577
Move to Backup proto model
2 years ago
Philip O'Toole
2d762202b3
Flatten some if blocks
2 years ago
Philip O'Toole
221907f8a9
Support nil as paramterized values
2 years ago