Add pluggable TSS backend support to smoke test infrastructure#1
Open
cnewkirk wants to merge 1 commit into
Open
Add pluggable TSS backend support to smoke test infrastructure#1cnewkirk wants to merge 1 commit into
cnewkirk wants to merge 1 commit into
Conversation
Owner
Author
|
Related PR: cnewkirk/opennms-cortex-tss-plugin#1 — Cortex TSS plugin changes including label values discovery optimization, multi-backend E2E smoke test harness (45 tests), and comprehensive architecture documentation. The two PRs are complementary:
|
Open
4 tasks
cnewkirk
force-pushed
the
feature/tss-smoke-test-infrastructure
branch
5 times, most recently
from
March 16, 2026 04:27
f29064f to
e971fce
Compare
cnewkirk
force-pushed
the
feature/tss-smoke-test-infrastructure
branch
from
March 29, 2026 01:37
426319f to
16b0a9a
Compare
Adds INTEGRATION time series strategy with Prometheus-compatible backend containers for end-to-end testing of TSS plugins via the Integration API: - INTEGRATION enum value for TimeSeriesStrategy - ThanosReceiveContainer (write endpoint) and ThanosQueryContainer (read endpoint) - PrometheusContainer as standalone building block - OpenNMSContainer/OpenNMSStack wiring for INTEGRATION strategy with Cortex plugin config, meta tags, and features-on-boot - CortexTestUtils with shared resolveKarFile() for KAR resolution - TimeSeriesValidationUtils for strategy-agnostic validation (resource tree, measurements, metadata) - Expanded CortexTssPluginIT with comprehensive coverage: write/read path, meta tags, metric sanitization, label ordering, resource discovery, two-phase discovery, data consistency - smoke-test README with INTEGRATION section and architecture diagram
cnewkirk
force-pushed
the
feature/tss-smoke-test-infrastructure
branch
from
March 29, 2026 01:50
16b0a9a to
555f52f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
INTEGRATIONstrategy toTimeSeriesStrategyenum, enabling smoke tests to run against pluggable TSS backends (Cortex TSS plugin with Prometheus/Thanos)ThanosReceiveContainerandThanosQueryContainerfor distributed Thanos backend testingPrometheusContaineras a standalone building block (not wired into default INTEGRATION stack)TimeSeriesValidationUtilswith strategy-agnostic validation methods for resource trees, measurements, metadata, and all aggregation typesCortexTestUtils.resolveKarFile()shared utility for KAR file resolutionOpenNMSStackandOpenNMSContainerfor INTEGRATION strategy (cortex.cfg overlay, opennms.properties, features boot)CortexTssPluginITto 26 test methods covering plugin lifecycle, write/read path, meta tags, metric sanitization, label ordering, resource discovery, two-phase discovery, and data consistencyCortexTssTimeseriesPluginITto use sharedCortexTestUtilssmoke-test/README.mdwith INTEGRATION section, Mermaid architecture diagram, prerequisites, and validation utilitiesCompanion PR
KAR File Resolution
Tests use
CortexTestUtils.resolveKarFile()to find the Cortex TSS plugin KAR:-Dcortex.kar=/path/to/plugin.kar— explicit path (throws if path invalid)-Dorg.opennms.dev.m2=$HOME/.m2/repository— bind-mount Maven repo for Karaf resolutionTest plan
-Dsmoke --projects :smoke-test./compile.pl -DskipTests install)./assemble.pl -Dopennms.home=/opt/opennms -DskipTests)queryThanos()checks HTTP response code and includes error bodyresolveKarFile()deduplicated intoCortexTestUtilswith consistent error handlingopennms/deploy-baseamd64-only limitation