contile
contile copied to clipboard
Add SOV Remote Configuration Contract Tests
Add contract tests to verify the proper operating condition of SOV remote configuration processing.
Acceptance Criteria
- The test plan bellow is implemented
- The CI contract test job is updated to include the new tests
Test Plan (Scenarios)
Preconditions:
- The following environment variables must be configured as follows:
- ADM_REFRESH_RATE_SECS → 10 seconds
- SOV_REFRESH_RATE_SECS → 10 seconds
|Title|Scenario|Behaviour|
|Test Contile Startup with Missing SOV Remote Configuration
- This test case will require being executed in a distinct process|# Upload a valid settings_from_shepherd_latest.json file
- Start Contile|# The GCS bucket contains only the required ADM configuration file
- Contile fails to start| |Test Contile Startup with Invalid SOV Remote Configuration 【 highlighted #bf2600 】*【 end highlighted 】 【 highlighted #bf2600 】This test case will require being executed in a distinct process【 end highlighted 】|# Upload a valid settings_from_shepherd_latest.json file and a malformed allocation_file_latest.json file to GCS
- Start Contile|# The GCS bucket contains required ADM and SOV configuration files
- Contile fails to start| |Test Contile with Updated SOV Remote Configuration|# Upload a new allocation_file_latest.json file to GCS
- Wait 11 seconds
- Send a request to the v1 tiles Contile endpoint|# The GCS bucket contains the new SOV configuration file
- Contile detects the SOV configuration file change
- Tiles, with the changes, are returned (Status Code 200)| |Test Contile with Missing SOV Remote Configuration (Includes Recovery)|# Remove the allocation_file_latest.json file from GCS
- Wait 11 seconds
- Send a request to the v1 tiles Contile endpoint
- Upload a valid settings_from_shepherd_latest.json file from GCS
- Wait 11 seconds
- Send a request to the v1 tiles Contile endpoint|# The GCS bucket contains the required ADM configuration file, but doesn’t contain the required SOV configuration file
- Contile detects the SOV configuration file change
- Tiles, with no changes, are returned (Status Code 200)
- The GCS bucket contains a valid SOV configuration file
- Contile detects the SOV configuration file change
- Tiles, with the changes, are returned (Status Code 200)| |Test Contile with Invalid SOV Remote Configuration (Includes Recovery)|# Upload a malformed allocation_file_latest.json file from GCS
- Wait 11 seconds
- Send a request to the v1 tiles Contile endpoint
- Upload a valid allocation_file_latest.json file from GCS
- Wait 11 seconds
- Send a request to the v1 tiles Contile endpoint|# The GCS bucket contains a malformed SOV configuration file
- Contile detects the SOV configuration file change
- Tiles, with no changes, are returned (Status Code 200)
- The GCS bucket contains a valid SOV configuration file
- Contile detects the SOV configuration file change
- Tiles, with the changes, are returned (Status Code 200)|
┆Issue is synchronized with this Jira Task ┆Epic: Contile Remote Configuration Contract Tests