1
0
Fork 0

472 Commits (master)

Author SHA1 Message Date
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
Philip O'Toole ebfa38d726 Move to clearer command-line options 7 years ago
Philip O'Toole 4b3fd92b67 Add end-to-end for TLS testing 7 years ago
Philip O'Toole 7d4cd5034e Make end-to-end test more explicit 8 years ago
Philip O Toole 2b34ae3ca6 Rename system package doc file 8 years ago
Philip O Toole 4c8e526198 Correct system doc 8 years ago
Philip O'Toole 5b9dba7a30 Create system_test.go 8 years ago
Philip O'Toole 5f0f89b61c Update helpers.go 8 years ago
Philip O'Toole 6449486a98 Update helpers.go 8 years ago
Philip O'Toole 276814bb61 Tweak end-to-end quick script 8 years ago
Philip O'Toole 8b3665b29c Add script for quick 3-node cluster test 8 years ago
Philip O Toole 75f21718f9 Remove no-longer-valid INSERT test 8 years ago
Tycho Andersen 326ca757d7 add an API for using custom raft.PeerStore/log.Logger
This is useful in case the server needs to store other metadata (e.g. auth
data) along side the peer list.

The logging bit is handy in case something has its own logging framework
that it wants to use.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
8 years ago
Philip O Toole dbbe72dd4a Improve test comment 8 years ago
Philip O'Toole dc00254cdc Remove repeated statement in tests 8 years ago
Philip O'Toole e9dac9ad1b Minor refactor of system test utilities 8 years ago
Philip O'Toole db7af9fb00 Correct typo in comment 8 years ago
Philip O Toole 6085e7f3c1 Unit test DROP TABLE 8 years ago
Philip O'Toole 2e3535e98f Typo in comment 8 years ago
Philip O'Toole 496a1df435 More single-node system tests
These tests check some error-handling situations.
8 years ago
Philip O'Toole e57e5536be Add system test helper function Remove() 8 years ago
Philip O'Toole 5cef5dcc7e Add some cluster-level helpers
Leader forwarding cannot be fully tested yet, as it needs the cluster
service also instantiated.
9 years ago
Philip O'Toole fac48629bc Start initial integration of mux (#109)
Integrate TCP mux with cluster and store

This change allows any node, including followers, to use the Raft log to make changes to a cluster-wide state.
9 years ago
Philip O Toole 5aefda9983 Move to new rqlite org 9 years ago
Philip O'Toole fb5e3c99d3 Bring system-testing into line with new DB layer 9 years ago
Philip O Toole 1d42e24e6d System test GoDoc fixes 9 years ago
Philip O'Toole 7fd7a9a385 Finish multi-node cluster testing 9 years ago
Philip O'Toole d5e2bfadbc Add GoDoc to tests 9 years ago
Philip O'Toole 668f1d96ee 3-node cluster-level testing 9 years ago
Philip O'Toole e0ccd4bd68 Add first cluster-level test 9 years ago
Philip O'Toole 062f3ff5ba Expose Raft address during system test 9 years ago
Philip O'Toole a5ccbede25 More helper functions 9 years ago
Philip O'Toole 12ca0006f0 GoDoc updates 9 years ago
Philip O'Toole af7c0cb1d6 Add system-level single-node test 9 years ago