Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/pdct 1274 Fix logic for validating corpora IDs (#348)
* Rename function from decode_configuration_token * Remove space between hyphen and command * Raise custom HTTP exception on decode error & reuse config vars * Remove commented out code * Apply custom app config token to search query * Bump CPR SDK to 1.4.3 * Don't mock vespa search adapter * Revert "Don't mock vespa search adapter" This reverts commit 358d1c2. * Raise HTTPException in router not service layer * Bump CPR SDK to 1.4.4 * Wrap decode in try except block * Make all vespa search tests use valid_token * Reduce duplication * Use fastAPI status for contextualising HTTP return code * Move corpus verification to search router * Move metadata vespa tests into separate file * Raise 400 error if corpus validation fails * Make sure ruff version is compatible with VScode ext * Consolidate steps as make start includes vespa_setup * Use different secret key for custom app token * Make audience localhost:3000 for test token * Fix validate_corpora_ids * Log actual JWT error to console * Remove validation of corpora from decode tests * Bump to 1.16.1 * Use fastapi status to contextualise http error code * Add tests for vespa search returning 400 when config token invalid * Make sure audience has trailing slash * Rename from SECRET_KEY to differentiate between keys * Bump to 1.16.0 * Fix decode token unit tests * Calculate valid config token for tests on the fly * Update debug message * Validate corpora IDs against db by default * Bump to 1.16.1 * Bump to 1.16.3 * Remove debug
- Loading branch information