Skip to content

Fix tests#273

Open
vmercierfr wants to merge 4 commits into
qonto:mainfrom
vmercierfr:fix-tests
Open

Fix tests#273
vmercierfr wants to merge 4 commits into
qonto:mainfrom
vmercierfr:fix-tests

Conversation

@vmercierfr
Copy link
Copy Markdown
Collaborator

Objectif

Fix tests

Why

Tests are broken, could be related to changes from !269

How

Fix 4 tests

Release

Release fix version

…dependent failures

Replace hardcoded past dates (2025-12-31) with time.Now().AddDate() so
remaining days are always positive regardless of when tests run.

Signed-off-by: Vincent Mercier <vmercier@gmail.com>
Return an error from DescribeDBMajorEngineVersions when both output and
error are nil, preventing the AWS SDK paginator from panicking on nil
pointer dereference inside NextPage().

Signed-off-by: Vincent Mercier <vmercier@gmail.com>
…ation tests

Add CollectEngineSupport: true to all test configurations that expect
engine support metrics. Fix expectedAPICallCount for mixed engine test
to 3 since the API is called once per unique engine type.

Signed-off-by: Vincent Mercier <vmercier@gmail.com>
…ns in exporter unit tests

Add CollectEngineSupport: true to test configurations. Fix
MajorEngineVersion values to use major-only versions (e.g. '14' not
'14.9') matching extractMajorVersion behavior. Correct API call
expectation in MetricsDisabled test and engine filtering for
non-PostgreSQL engines.

Signed-off-by: Vincent Mercier <vmercier@gmail.com>
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.

1 participant