Philip O'Toole
e204c0b1ad
Fix rookie mistake
2 years ago
Philip O'Toole
9e4fc80216
Tidy up
2 years ago
Philip O'Toole
8f41cbef23
Refactor large Queued Writes test
2 years ago
Philip O'Toole
8f89c6a8ba
Add larger concurrent Queued Writes test
2 years ago
Philip O'Toole
d333a28a3f
wait_for_leader needs logging flexibility
2 years ago
Philip O'Toole
d649d16ab7
HTTP server now up faster, Store may not be ready
2 years ago
Philip O'Toole
fe5d21ef57
Dump log if node fails to start during testing
2 years ago
Philip O'Toole
4942292490
More system-level bootstrap testing
2 years ago
Philip O'Toole
2cfabf3a32
Update test function prototypes
2 years ago
Philip O'Toole
25085c13cf
Extend liveness testing
2 years ago
Philip O'Toole
7b142a7f90
Fix end-to-end restore test
2 years ago
Philip O'Toole
40c3cf03bf
Add (currently failing) end-to-end restore test
2 years ago
Philip O'Toole
eb5519eb13
Correct node ID in test
2 years ago
Philip O'Toole
3cc6593ec7
Remove unneeded node params
2 years ago
Philip O'Toole
f7800633ea
More end-to-end backup testing
2 years ago
Philip O'Toole
f652adc2e0
End-to-end testing of remote backup fetch
2 years ago
Philip O'Toole
df96475511
End-to-end named parameter Null
2 years ago
Philip O'Toole
711584c865
End-to-end test for Null parameter
2 years ago
Philip O'Toole
221907f8a9
Support nil as paramterized values
2 years ago
Philip O'Toole
95dfead226
Integrate SQL rewrite with rqlite for RANDOM ( #1046 )
2 years ago
Philip O'Toole
aed4028c5e
Remove unneeded test code
2 years ago
Philip O'Toole
fb159f6d6e
Use NO_CREDS
2 years ago
Philip O'Toole
f7958da1a9
More use of cluster.Credentials
2 years ago
Neal Harrington
c0b1b6c762
write some tests, make them pass
2 years ago
Neal Harrington
7cceb822a4
First things
2 years ago
Philip O'Toole
44230c98b5
Allow configurable cluster-connect timeout
...
Fixes https://github.com/rqlite/rqlite/issues/1042
2 years ago
Philip O'Toole
d3bf2d719e
Use a single Response type for HTTP
2 years ago
Philip O'Toole
f6254d3aa1
ABL
2 years ago
Philip O'Toole
a0b0d60df9
Longer queued-write test
2 years ago
Philip O'Toole
dc388c3521
Add queued write load test
2 years ago
Philip O'Toole
53f44f47e6
More testing
2 years ago
Philip O'Toole
ecb640abff
Check that queue and transactions work
2 years ago
Philip O'Toole
1210749e60
Load the queue during end-to-end testing
2 years ago
Philip O'Toole
c8e5a76c78
Fix end-to-end queue wait tests
2 years ago
Philip O'Toole
2fcd934497
End-to-end queued write and wait
2 years ago
Philip O'Toole
bbaee35b83
End-to-end testing of sequence numbers
2 years ago
Philip O'Toole
4d83c6432e
First system-level test for sequence number
2 years ago
Philip O'Toole
543efe0077
Add parameterized queued write test
2 years ago
Philip O'Toole
5e24af2636
Better API shape for queued Executes
2 years ago
Philip O'Toole
78bdf5c36e
End-to-end queue write test
2 years ago
Philip O'Toole
00d71ac7ab
Fix typo
2 years ago
Philip O'Toole
370cc6c36c
Better test polling
2 years ago
Philip O'Toole
5c7aeda86b
Cluster-level test of queued writes
2 years ago
Philip O'Toole
24757559ca
Single-node system testing of queued writes
2 years ago
Philip O'Toole
a6ac6bccfc
Autodetect data format during load operation
2 years ago
Philip O'Toole
a068c39d19
End-to-end test of restore using a SQLite file
2 years ago
Philip O'Toole
c8b9fd72da
Sanity check supplied SQLite data
2 years ago
Philip O'Toole
8e59390c2a
Clean up test resource
3 years ago
Philip O'Toole
47a1b88a64
More end-to-end node encryption testing
3 years ago
Philip O'Toole
2c2be47ede
And end-to-end node encryption test
3 years ago
Philip O'Toole
861347a4be
Update full_system_test.py
3 years ago
Philip O'Toole
a2f1773f33
De-race a snapshot test
3 years ago
Philip O'Toole
168c62edef
Better handling of timeouts
3 years ago
Philip O'Toole
4d9971d6a3
Make end-to-end test less racy
3 years ago
Philip O'Toole
06154aa6e8
Simple end-to-end check of /readyz
3 years ago
Philip O'Toole
bba69d6300
Add support for DNS-based autoclustering ( #979 )
...
New disco-bootstrapping hybrid to autoclustering, which uses DNS A Records to find nodes.
3 years ago
Philip O'Toole
e4a0a5ecca
Possible help for racy (?) end-to-end test
3 years ago
Philip O'Toole
e4fed0cee3
Add bootstrap-expect ( #974 )
...
Add cluster-boostrap
3 years ago
Philip O'Toole
e7046ca560
Better coding of disco-mode names
3 years ago
Philip O'Toole
4aea326959
Consul and etcd autoclustering ( #957 )
...
This PR introduces new node-discovery integration with Consul and etcd. By using one of those systems with rqlite, automatic clustering of rqlite is much easier.
3 years ago
Philip O'Toole
62cf2f44a5
Add simple end-to-end cluster restart test
3 years ago
Philip O'Toole
2208e75188
Fix system-level tests
3 years ago
Philip O'Toole
860999951d
Enhance Authentication and Authorization system ( #940 )
3 years ago
Philip O'Toole
9160928750
Use literal_eval, which is safer
3 years ago
Philip O'Toole
2c8eb6880a
Intepret expected results as dict and comp
...
This was done to migrate from Python2 to Python3, which changed the
order of keys in the dict. This was always fragile, and now dictionaries
are compared instead.
Most of this migration was done using sed, which is a great tool. The
command issued was:
sed 's/self\.assertEqual(str(j), "\(.\+\)")/self\.assertEqual(j, d_("\1"))/'
3 years ago
Philip O'Toole
628f4a044b
First pass at conversion
...
2to3
Added d_ eval-based function
3 years ago
Philip O'Toole
dde1aa5044
Remove u'
3 years ago
Philip O'Toole
4f92d91a63
Use correct MIME media type for JSON
...
https://www.ietf.org/rfc/rfc4627.txt
https://github.com/rqlite/rqlite/issues/933
3 years ago
Philip O'Toole
2e7c26f4b2
Create request body correctly during testing
3 years ago
Philip O'Toole
a9748acdee
Help with better testing
3 years ago
Philip O'Toole
d64b6e140a
Append non-list as object
3 years ago
Philip O'Toole
2f3382fea6
End-to-end named parameter testing
3 years ago
Philip O'Toole
cdf15c172b
System-level single-node named param testing
3 years ago
Philip O'Toole
5ce51bc2ba
Better comments
3 years ago
Philip O'Toole
ddde0b1447
Write one more entry to log to force set fsm_index
3 years ago
Philip O'Toole
64be88fd9c
More waits and Python3 work
3 years ago
Philip O'Toole
c572be9a02
More detail exception message
3 years ago
Philip O'Toole
be5ef533cc
Wait until node applies all leader's entries
3 years ago
Philip O'Toole
37ff662f71
Wait for FSM in snap test
3 years ago
Philip O'Toole
9143172c1c
DRY up test
3 years ago
Philip O'Toole
3ef3a5369b
End-to-end cluster-recovery test
3 years ago
Philip O'Toole
7e81fa88b6
ABL
3 years ago
Philip O'Toole
4446c3b5bd
Explicitly close listeners
3 years ago
Philip O'Toole
eaad57f610
Full cluster-recovery system-level test
3 years ago
Philip O'Toole
662008d49c
System-level test of cluster recovery
3 years ago
Philip O'Toole
bc8e16328c
Use proper string compare in end-to-end testing
3 years ago
Philip O'Toole
e0e2572464
More testing and docs for /readyz
3 years ago
Philip O'Toole
c254603eaa
Reraise HTTP exceptions
3 years ago
Philip O'Toole
dd71c07c73
ABL
3 years ago
Philip O'Toole
0e50ab255d
Better HTTP logging during end-to-end tests
3 years ago
Philip O'Toole
0b5d80c604
Add Error information to nodes/ output
3 years ago
Philip O'Toole
33073bc63c
Move test to different place
3 years ago
Philip O'Toole
548527a59d
Add e2e test for nodes/
3 years ago
Philip O'Toole
d7500c2f5f
Revert to simpler nodes/ system test
...
This is something that will have to be in the end-to-end test.
3 years ago
Philip O'Toole
d45bdfed7f
System-level testing of nodes/
...
Fails right now because there is no way to actually shutdown the node
from answering cluster requests.
3 years ago
Philip O'Toole
e79fe9d372
Fix test comment
3 years ago
Philip O'Toole
7b52753c1b
Close listeners after test
3 years ago
Philip O'Toole
b909cd4f74
Tighthen up Raft advertised testing
3 years ago
Philip O'Toole
a6346ba9d4
Fix unit test -- start muxes
3 years ago
Philip O'Toole
e64c1a086a
Initial test, doesn't work
3 years ago
Philip O'Toole
961a31149b
Strong query test
3 years ago
Philip O'Toole
88b80cffa6
Clearer system-level test
3 years ago
Philip O'Toole
bf003e4f40
Better test comments
3 years ago
Philip O'Toole
7b2e711c73
Remove constraint check
...
It's too clever, and causing test practicality issues.
3 years ago
Philip O'Toole
6e17295913
Group network-related params together
3 years ago
Philip O'Toole
0b8beb6a5d
Implmenet Request Forwarding timeout support
3 years ago
Philip O'Toole
6fd775b1d7
End-to-end testing of request forwarding
3 years ago
Philip O'Toole
c017d11c22
Enable transparent request forwarding
3 years ago
Philip O'Toole
bedd9132e6
Rename file testing request forwarding
3 years ago
Philip O'Toole
d7932a6986
More side-by-side tests
3 years ago
Philip O'Toole
373f78b0fe
System-level tests build
3 years ago
Philip O'Toole
bfacedb0e7
Fix system-level testing
3 years ago
Philip O'Toole
db938f420f
Cleaner control during e2e testing
3 years ago
Philip O'Toole
ffec37fa88
Test end-to-end pretty queries
3 years ago
Philip O'Toole
b8d72f3fc4
New DB and FSM indexes to track state
3 years ago
Philip O'Toole
eec7494d62
DB size requires a read-write connection
3 years ago
Philip O'Toole
6edff5ba24
Deal with SQLite connection "caching"?
...
https://github.com/mattn/go-sqlite3/issues/966
3 years ago
Philip O'Toole
fda093b073
Remove reference to DSN in system test
3 years ago
Philip O'Toole
4c49fc6c29
End-to-end test new join metrics
3 years ago
Philip O'Toole
950062329f
Test rejoining with changed network addresses
3 years ago
Philip O'Toole
e91f0e16e7
Simplify join end-to-end testing
...
Test now just makes sure stuff doesn't blow up. Need more extensive
testing of this operation.
3 years ago
Philip O'Toole
8dc8788f37
ABL
3 years ago
Philip O'Toole
2837713c40
Don't always run leader-constraint check
...
Some testing involves changing leaders, and some API checks will be
inherently racy.
3 years ago
Philip O'Toole
166bddab8b
Add API adv test
3 years ago
Philip O'Toole
37995908e5
Add end-to-end test of redirected join via follower
3 years ago
Philip O'Toole
87c9f81a07
Fix comment
3 years ago
Philip O'Toole
5d8fafab98
Get nodes/ for all nodes.
...
It makes testing easier, and this flag is tested in unit tests.
3 years ago
Philip O'Toole
b6e0f46f30
Support non-voting nodes optionally in nodes/
3 years ago
Philip O'Toole
ffa23d1dae
End-to-end testing of nodes/ API
3 years ago
Philip O'Toole
4cff27f91f
Fix bugs in Goroutine logic
...
Testing never fails to produce results.
3 years ago
Philip O'Toole
7218a40ed1
Cluster system test for nodes/
...
It's failing however.
3 years ago
Philip O'Toole
e5c80faa0c
Fix pydoc
3 years ago
Philip O'Toole
dbd1c0a254
Remove 'redirect' from HTTP status
...
Getting the redirect information requires accessing other nodes, which
could block if those nodes are not up.
3 years ago
Philip O'Toole
7280ff26b8
Add back node restart test
3 years ago
Philip O'Toole
0d533dfa4c
Some cleanup
3 years ago
Philip O'Toole
f939d33fe5
Remove Metadata concept from system
...
System testing passes.
3 years ago
Philip O'Toole
30d4d63ebb
System tests pass
3 years ago
Philip O'Toole
38b2abca84
Remove older TCP transport code
...
Still unclear about whether tn.Open() is required with new mux.
3 years ago
Philip O'Toole
8e918ceb55
System testing of internode encryption
3 years ago
Philip O'Toole
8276ec653b
Fix up system test
3 years ago
Philip O'Toole
cb6d11ab4f
Remove superfluous blank line
3 years ago
Philip O'Toole
81cee7dd70
Merge branch 'master' of github.com:rqlite/rqlite into test-concurrent-compress
3 years ago
Philip O'Toole
f9df604efc
Test concurrent requests with compression on
3 years ago
Philip O'Toole
ee7be58207
Remove superfluous blank line
3 years ago
Philip O'Toole
3d3bbabaeb
Direct HTTP requests to avoid races during testing
3 years ago
Philip O'Toole
9ca9a3f1fd
Add test of concurrent Execute requests
3 years ago
Philip O'Toole
83c15368fa
Check if node has attributes before deprovision
4 years ago
Philip O'Toole
73663ccc58
Shutdown gracefully to prevent races
...
See https://app.circleci.com/pipelines/github/rqlite/rqlite/428/workflows/794131c2-372b-4fb0-8c92-6e3dc0709cb9/jobs/4512
4 years ago
Philip O'Toole
dbcaec623c
Update helpers.go
4 years ago
Philip O'Toole
3ff13cda74
More system testing
4 years ago
Philip O'Toole
fe8db65f20
Test database is functional after system test
4 years ago
Philip O'Toole
51c745ea23
More in-mem and on-disk system test
4 years ago
Philip O'Toole
8049d35431
More tests
4 years ago
Philip O'Toole
ae16a65d8d
Handle snapshots with database data
...
This shouldn't happen normally, but technically could.
4 years ago
Philip O'Toole
91d2506ca9
Transport creation convenience functions
4 years ago
Philip O'Toole
a4f1d14eb9
Refactor some tests for future use
4 years ago
Philip O'Toole
85f175dcba
Add a test script for PR739
4 years ago
Philip O'Toole
2e19df93de
Correct comment
4 years ago
Philip O'Toole
8dbd2678dd
More end-to-end snapshot and restore testing
4 years ago
Philip O'Toole
be0286fd4b
More extensive end-to-end snapshot testing
4 years ago
Philip O'Toole
56cb9321d2
End-to-end test of idempotent join
4 years ago
Philip O'Toole
72ae509389
Consolidate helper functions
4 years ago
Philip O'Toole
a5cd120296
ABL
4 years ago
Philip O'Toole
05cce7c6fc
Fix restart test logic
4 years ago
Philip O'Toole
1b2e4612f7
Add system-level restart test ( #707 )
...
Add system-level restart test
4 years ago
Philip O'Toole
ee64fa3e80
Merge pull request #686 from rqlite/mixed_params
...
Test mixing parameterized and non-parameterized queries
4 years ago
Philip O'Toole
9ba6a71789
End-to-end test mixed queries
4 years ago
Philip O'Toole
0b14265d5f
Add on-disk end-to-end test
4 years ago
Philip O'Toole
d8ab494e92
Test snapshotting in a simpler manner
...
The previous way is to racy.
4 years ago
Philip O'Toole
cf7a9e41e4
Add parameterized query testing to end-to-end
4 years ago
Philip O'Toole
42083aa36d
Include comment re load API
4 years ago
Philip O'Toole
cf469ff750
Merge branch 'master' into support_param_queries
4 years ago
Philip O'Toole
74cfa96c62
Derace Multi-node snapshot test
4 years ago
Philip O'Toole
1981770b71
Add SQL injection demonstration tests
4 years ago
Philip O'Toole
ac862e4091
Add system test for parameterized statements
...
Fix some bugs along the way too.
4 years ago
Philip O'Toole
231b99b1a0
Test protocol during redirect testing
4 years ago
Philip O'Toole
30e0780b88
Add a little more testing
4 years ago
Philip O'Toole
c9de4c2941
Test node supports enabling HTTPS
4 years ago
Philip O'Toole
c4e127c467
Refactor tests to use common node start code
4 years ago
Philip O'Toole
ef6b81d832
Function for bringing up encryted test node
4 years ago
Philip O'Toole
dcc88a5e54
Bump wait-for-snap timeout to 10 seconds
...
Don't fully understand (yet) why we need to wait this long.
4 years ago
Philip O'Toole
65ebe8a1b9
Better Exception message if snap test fails
4 years ago
Philip O'Toole
998c951d16
Extensive testing of Raft snapshots and log truncation ( #639 )
...
Extensive testing of Raft snapshots and log truncation
Added both system-level tests and end-to-end tests.
5 years ago
Philip O'Toole
abb7772105
Support leader freshness with None consistency
...
This change allows the read request to specify the maximum time the node
receiving the request may have last heard from the cluster leader. It
only applies to a read consistency selection of None.
5 years ago
Philip O'Toole
67e4ff6ff5
Add end-to-end non-voter follows leader test
5 years ago
Philip O'Toole
81f5f6faf1
Add support for non-voting nodes
...
A non-voting node doesn't participate in Raft consensus, but does
subscribe to the committed log entries originating with the leader.
This means a non-voting node keeps up-to-date with the state machine,
without impacting write-latency. These non-voting nodes can provide
read scalability for the cluster.
5 years ago
Philip O'Toole
f71b587392
Delete end_to_end.sh
...
Remove obsolete test file
5 years ago
Philip O'Toole
f57ace7da2
Broadcast Store meta via standard consensus
...
With this change the cluster metadata (arbitrary key-value data associated with each node) is now broadcast across the cluster using the standard consensus mechanism. Specifically the use case for this metadata is to allow all nodes know the HTTP API address of all other nodes, for the purpose of redirecting requests to the leader.
This change removed the need for multiplexing two logical connections
over the single Raft TCP connection, which greatly simplifies the
networking code generally.
Original PR https://github.com/rqlite/rqlite/pull/434
5 years ago
Philip O'Toole
8a0e1ce8f0
Move to Hashicorp Raft v1
5 years ago
Philip O'Toole
a4b0645ff7
Remove non-applicable test
5 years ago
Philip O'Toole
dd0162b6da
Remove old files
5 years ago
Philip O'Toole
0d0d5e6fa3
Add Python end-to-end test
5 years ago
Philip O'Toole
657c76e376
Correct GoDoc comment
7 years ago
Philip O Toole
653a850dfc
Add multi-table SELECT unit test
7 years ago
Philip O Toole
cec32298cd
Support multiple queries in system testing
7 years ago
Philip O Toole
6d644a4f64
Enable expvar endpoint for testing
7 years ago
Philip O Toole
16d33255a3
Remove blank line
7 years ago
Philip O Toole
48ff96027c
Go fmt
7 years ago
Philip O Toole
787a6b1c7d
Check JSON validity of endpoint output
7 years ago
Philip O Toole
5060e318b7
Add test coverage for some endpoints
7 years ago