Skip to content

test(insurance): regression coverage for oracle-data ingestion and parametric getters - #1071

Open
gbengaeben wants to merge 1 commit into
MettaChain:mainfrom
gbengaeben:fix/1030-insurance-oracle-parametric-tests
Open

test(insurance): regression coverage for oracle-data ingestion and parametric getters#1071
gbengaeben wants to merge 1 commit into
MettaChain:mainfrom
gbengaeben:fix/1030-insurance-oracle-parametric-tests

Conversation

@gbengaeben

Copy link
Copy Markdown

Summary

Adds a focused regression test pinning the insurance oracle-data ingestion and parametric getter paths called out in #1030.

Changes

  • Unauthorized reporter is rejected with InsuranceError::Unauthorized.
  • An authorized oracle's report is stored and readable via get_oracle_data.
  • Multiple parametric policies per property/holder are aggregated by get_property_parametric_policies and get_holder_parametric_policies, and get_parametric_policy returns the expected coverage.

Verification

The test mirrors the existing passing patterns in the same module. Note: the full cargo test -p propchain-insurance gate cannot currently run in this environment — the pinned ink_e2e/subxt dependency chain does not compile under the fresh toolchain (this is the known workspace-wide issue documented in .github/workflows/smoke-ci.yml, which is disabled for the same reason).

Closes #1030

…rametric getters

Add a focused regression test pinning the oracle-data ingestion and parametric
getter paths: an unauthorized reporter is rejected, an authorized oracle's
report is stored and readable via get_oracle_data, and multiple parametric
policies per property/holder are aggregated by get_property_parametric_policies
and get_holder_parametric_policies.

Closes MettaChain#1030
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@gbengaeben Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Insurance oracle-data ingestion is untested: report paths and parametric getters are uncovered

1 participant