Skip to content

Conversation

@subkanthi
Copy link
Collaborator

Integration test using template

@xieandrew
Copy link
Collaborator

The testcontainers version we have is too old, I'm getting a Docker client version error Could not find a valid Docker environment. Please check configuration. Attempted configurations were: UnixSocketClientProviderStrategy: failed with exception BadRequestException (Status 400: {"message":"client version 1.32 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version"} ). Upgrading testcontainers.version to 1.21.4 seems to work.

@xieandrew xieandrew self-requested a review January 27, 2026 21:33
Copy link
Collaborator

@xieandrew xieandrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial comments from a first look


assert hasSepalLength
: "Scan output should contain sepal length column data. Output: "
+ combinedOutput.substring(0, Math.min(500, combinedOutput.length()));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This result could be stored in a variable and reused

assert createNsExitCode == 0 : "Create namespace command should succeed";

// Use existing iris parquet file
String testParquetPath = "examples/localfileio/iris.parquet";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it's ideal to have tests depend on files in the examples folder, maybe we should copy this to the test resources.

echo "✓ Created namespace: ${NAMESPACE_NAME}"

# List namespaces to verify
{{ICE_CLI}} --config {{CLI_CONFIG}} list-namespaces
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command doesn't work:

Unmatched argument at index 2: 'list-namespaces'
Did you mean: ice delete-namespace or ice describe?

*
* <p>This class uses Jackson/SnakeYAML annotations for YAML deserialization.
*/
public class ScenarioConfig {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to use records for Jackson ObjectMapper? Would reduce boilerplate

}

/** Result of executing a single script. */
public static class ScriptExecutionResult {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a record

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.

3 participants