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

TestAccDatasourceConnection_basic failing intermittently #619

Open
bobbyiliev opened this issue Jul 29, 2024 · 0 comments
Open

TestAccDatasourceConnection_basic failing intermittently #619

bobbyiliev opened this issue Jul 29, 2024 · 0 comments

Comments

@bobbyiliev
Copy link
Contributor

bobbyiliev commented Jul 29, 2024

We have an init container that creates a PrivateLink connection on start. So we have an acceptance test that tests the data source using that PrivateLink connection ID:

// TODO: Test intermittently fails
// resource.TestCheckResourceAttr("data.materialize_connection.specific", "connection_id", "u1"),
// resource.TestCheckResourceAttr("data.materialize_connection.specific", "connections.#", "1"),
// resource.TestCheckResourceAttr("data.materialize_connection.specific", "connections.0.id", "u1"),
// resource.TestCheckResourceAttr("data.materialize_connection.specific", "connections.0.name", "privatelink_conn"),
// Cannot ensure the exact number of objects with parallel tests

# data "materialize_connection" "specific" {
# connection_id = "u1"
# }

However, in CI this test would fail intermittently with a no results found error. Locally this works as expected each time.

The test is disabled for the moment to prevent the intermittent failing, but will be nice to have it re-enabled once we know why it fails intermittently in CI.

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

No branches or pull requests

1 participant