Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(datasource-controller): replace flaky e2e test for secureJsonData with a unit test #1544

Merged
merged 1 commit into from
May 21, 2024

Conversation

weisdd
Copy link
Collaborator

@weisdd weisdd commented May 20, 2024

secureJsonDatasource e2e-test is known to frequently fail.

The test was introduced in #1496 to make sure secureJsonData is not dropped during marshal/unmarshal process in (r *GrafanaDatasourceReconciler) getDatasourceContent (missing secureJsonData itself was fixed in #1500).

I think it should be enough for us to just check the contents of SecureJSONData field in a datasource model returned by getDatasourceContent, so flaky e2e-test can be replaced with a stable unit test.

Fixes: #1510

@weisdd weisdd merged commit a81ab68 into master May 21, 2024
10 checks passed
@weisdd weisdd deleted the fix/secure-json-test branch May 21, 2024 07:21
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.

[Bug] Flaky E2E Test
2 participants