Add tests for api endpoints: `timeline-event`, `search` (#34072)
* Add a unit test for /api/pulse/preview_card_info/:id For the GET endpoint /api/pulse/preview_card_info/:id * Add a unit test for the GET endpoint /search/models * Add a unit test for DELETE /api/timeline-event/:id * Add a unit test for DELETE /api/timeline-event/:id * Commit Ngoc's suggestion: Update test/metabase/api/timeline_event_test.clj Co-authored-by:Ngoc Khuat <qn.khuat@gmail.com> * Apply Ngoc's suggestion to destructure :timeline_id * Remove test for event that I created in with-temp * Fix failed test I introduced, change collection to collection-id * Test deleting a non-existent timeline event by id * Move my search-models-test lower * Copy-paste Ngoc's query-model-set-test and macro https://github.com/metabase/metabase/pull/32624/files#diff-734923de9c62f49d6b708d64a214ee38d7d0fb1b2c20343bff7b947a6021b021R297-R332 https://github.com/metabase/metabase/pull/32624/files#diff-54344d8b75319d40a4cb2a2afe935500c23d34f0f3c63c51f005493d4dc4f8f1R690-R732 * Remove "database" and "table" from test expectation Those failed in this PR, though they passed in 32624 * Revert test for pulse/preview_card_info/, as it'll be removed * Remove with-verified-cards, which I needlessly copied into this PR That's needed in 32624, but not this PR. * Add a test for the archived-string param --------- Co-authored-by:
Ngoc Khuat <qn.khuat@gmail.com>
Please register or sign in to comment