Closed eddbbt closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.90%. Comparing base (
a9e33b4
) to head (cbaed2b
).:exclamation: Current head cbaed2b differs from pull request most recent head 18e67df. Consider uploading reports for the commit 18e67df to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Plugin's queries have been rewritten to work with new keyspace separation logic, a feature that is going to be introduced in astarte.
This edit has become necessary after PR #75 that enabled db access for this repo.
Due to the small size of queries file, the entire keyspace selection is handled by a single private function use_realm/2, so translation is made here. Also, a new env variable named
DOCKER_VERNEMQ_ASTARTE_VMQ_PLUGIN__ASTARTE_INSTANCE_ID
has been added, this works as astarte_instance_id in translation function (see https://github.com/astarte-platform/astarte_core/pull/105 for details), defaults to 'default' string.Tests have been edited to match new db structure, so with a translated keyspace name (in this case, derived from a 'test' realm name).
This PR must not be merged before or after the same feature in main astarte repo, both need to me managed and merged as the same time.
resolves https://github.com/astarte-platform/astarte/issues/924