-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: Reorganize existing persistent stores for better coverage #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
22b559a to
5328039
Compare
| }) | ||
|
|
||
| t.Run("daemon mode", func(t *ldtest.T) { | ||
| databaseModes := map[string]servicedef.DataStoreMode{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit reorganizes the tests to ensure we have better coverage of shared behavior.
The tests follow the pattern of:
- Run for both read only and read-write.
- Run tests for all cache configurations
- Run a set of tests without a data source
- Run a set of tests with a data source
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought this read out might be helpful. Repeat for consul and dynamodb.
[persistent data store/redis/uses default prefix]
[persistent data store/redis/uses custom prefix]
[persistent data store/redis/store mode read-write - no data source]
[persistent data store/redis/store mode read-write - no data source/no cache - shows changes immediately]
[persistent data store/redis/store mode read-write - no data source/ttl cache - shows changes eventually]
[persistent data store/redis/store mode read-write - no data source/infinite cache - shows changes never]
[persistent data store/redis/store mode read-write - with data source]
[persistent data store/redis/store mode read-write - with data source/no cache - ignores database until init key is set]
[persistent data store/redis/store mode read-write - with data source/no cache - ignores database when ds sends data]
[persistent data store/redis/store mode read-write - with data source/infinite cache - ignores database until init key is set]
[persistent data store/redis/store mode read-write - with data source/infinite cache - ignores database when ds sends data]
[persistent data store/redis/store mode read-write - with data source/ttl cache - ignores database until init key is set]
[persistent data store/redis/store mode read-write - with data source/ttl cache - ignores database when ds sends data]
[persistent data store/redis/store mode read - no data source]
[persistent data store/redis/store mode read - no data source/no cache - shows changes immediately]
[persistent data store/redis/store mode read - no data source/ttl cache - shows changes eventually]
[persistent data store/redis/store mode read - no data source/infinite cache - shows changes never]
[persistent data store/redis/store mode read - with data source]
[persistent data store/redis/store mode read - with data source/ttl cache - ignores database until init key is set]
[persistent data store/redis/store mode read - with data source/ttl cache - ignores database when ds sends data]
[persistent data store/redis/store mode read - with data source/no cache - ignores database until init key is set]
[persistent data store/redis/store mode read - with data source/no cache - ignores database when ds sends data]
[persistent data store/redis/store mode read - with data source/infinite cache - ignores database until init key is set]
[persistent data store/redis/store mode read - with data source/infinite cache - ignores database when ds sends data]
[persistent data store/redis/read-write]
[persistent data store/redis/read-write/initializes store when data received]
[persistent data store/redis/read-write/applies updates to store]
[persistent data store/redis/read-write/data source updates respect versioning]
[persistent data store/redis/read-write/data source deletions respect versioning]
5328039 to
6bd51db
Compare
No description provided.