Skip to content

Add test asserting old metric name is NOT present in output #425

@mvillmow

Description

@mvillmow

The current test only checks that homeric_exporter_scrape_timestamp_seconds is present. It does not verify that the old name homeric_exporter_scrape_timestamp (without _seconds) is absent, which would catch a regression where both names are emitted. Add a assertNotIn('homeric_exporter_scrape_timestamp{', self.output) guard that distinguishes the bare name from the suffixed one.

Follow-up from #156

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingTesting finding

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions