storj/satellite/orders
Márton Elek ca6e3a9e88 satellite/orders: create mock based unit test
Most of our (~integration) tests based on testplanet runner.

However running testplanet for each test make the testing process slow.
It seems to be better to use real unit tests (without db dependency) when it's possible.

This patch makes small modification to make it possible to test orders.Service with real unit test.

As the existing unit test of `service.go` is isolated with `_test` package name, it's moved to an `_integration_test.go` file to make place for the unit test.

Change-Id: Ia69f26a34e2c48d230d8d36c2040dd02a60455a6
2023-02-13 13:24:30 +00:00
..
encryptionkey_test.go satellite/orders: add factory function to encryption key 2020-11-20 11:40:15 -08:00
encryptionkey.go satellite/orders: use smaller encrypted metadata 2021-01-08 16:40:31 +00:00
endpoint_test.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
endpoint.go satellite/orders: ignore context canceled when updating bucket bandwidth 2023-02-08 13:21:42 +00:00
mock_test.go satellite/orders: create mock based unit test 2023-02-13 13:24:30 +00:00
orders_test.go satellites/orders: populate egress_dead in project_bandwidth_daily_rollups 2021-10-06 16:54:49 +00:00
rollups_chore.go satellite/orders: Flush all pending bandwidth rollup writes on shutdown 2020-01-23 08:12:41 -07:00
rollups_write_cache_test.go satellite/orders: ignore context canceled when updating bucket bandwidth 2023-02-08 13:21:42 +00:00
rollups_write_cache.go satellite/orders: log bandwidth values we are dropping 2023-01-20 09:28:25 +00:00
service_integration_test.go satellite/orders: create mock based unit test 2023-02-13 13:24:30 +00:00
service_test.go satellite/orders: create mock based unit test 2023-02-13 13:24:30 +00:00
service.go satellite/orders: create mock based unit test 2023-02-13 13:24:30 +00:00
signer_test.go satellite/overlay: return noise info with selected nodes 2023-02-02 15:46:27 +00:00
signer.go satellite/overlay: return noise info with selected nodes 2023-02-02 15:46:27 +00:00
window_endpoint_phase.go satellite/orders: 3-phase rollout 2020-08-03 17:01:42 +00:00