grafana/pkg/apiserver/rest
Leonor Oliveira dcfaf7e434
Storage: Add dualwriter test mocks (#86243)
* WIP: add mocks for dual writer

* Test dualwriter mode1

* Re-add non implementation errors

* Use testify assert

* Write tests for mode2.

* Lint

* Remove comment

* Update pkg/apiserver/rest/dualwriter_mode2_test.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* [REVIEW improve readability and call fn legacy fn

* [REVIEW] rename mocks and setupFns

* [REVIEW add missing test case

* [REVIEW] add test case with getting object from storage and not legacy

* Add deleteCollection

* Test deleteCollection

* Rename file

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-04-17 11:25:19 +02:00
..
dualwriter_mode1_test.go Storage: Add dualwriter test mocks (#86243) 2024-04-17 11:25:19 +02:00
dualwriter_mode1.go Storage: Add mode-specific DeleteCollection implementations (#86065) 2024-04-16 17:05:31 +02:00
dualwriter_mode2_test.go Storage: Add dualwriter test mocks (#86243) 2024-04-17 11:25:19 +02:00
dualwriter_mode2.go Storage: Add dualwriter test mocks (#86243) 2024-04-17 11:25:19 +02:00
dualwriter_mode3_test.go Storage: Add mode-specific DeleteCollection implementations (#86065) 2024-04-16 17:05:31 +02:00
dualwriter_mode3.go Storage: Add dualwriter test mocks (#86243) 2024-04-17 11:25:19 +02:00
dualwriter_mode4_test.go Storage: Add mode-specific DeleteCollection implementations (#86065) 2024-04-16 17:05:31 +02:00
dualwriter_mode4.go Storage: Add mode-specific DeleteCollection implementations (#86065) 2024-04-16 17:05:31 +02:00
dualwriter.go Storage: Add mode-specific DeleteCollection implementations (#86065) 2024-04-16 17:05:31 +02:00
spy_client.go Storage: Add mode-specific DeleteCollection implementations (#86065) 2024-04-16 17:05:31 +02:00
storage_mocks_test.go Storage: Add dualwriter test mocks (#86243) 2024-04-17 11:25:19 +02:00