The tests in restbase-mod-table-cassandra aren't specific to Cassandra, they are applicable to any interface-matching table storage backend. T88191 is an example of such a backend, and could benefit from these tests being reusable.
Steps (WIP)
- The tests, and table spec, should be moved from restbase-mod-table-cassandra into a new npm module (restbase-mod-table-spec).
- Add a restbase-mod-table-cassandra dependency on restbase-mod-table-spec, and import/load spec from there
- Move dbutils#testTidFromDate to restbase-mod-table-spec
- Move the final two tests in test/revision_policies.js into test/dbutils.js (dependencies on dbutil#validateAndNormalizeRevPolicy and dbutil#validateAndNormalizeSchema).
- Start up a service exposing the module, using service-runner and RESTBase (with a custom config.yaml for the implementation)
- Run imported tests from restbase-mod-table-cassandra against this server